Re: [PATCH v8 net-next 5/7] net: simple poll/select low latency socket poll

2013-06-04 Thread Eliezer Tamir
On 03/06/2013 16:59, Eliezer Tamir wrote: On 03/06/2013 16:15, Eric Dumazet wrote: On Mon, 2013-06-03 at 11:02 +0300, Eliezer Tamir wrote: sock = file->private_data; -return sock->ops->poll(file, sock, wait); + +poll_result = sock->ops->poll(file, sock, wait); + +if (!(poll_re

Re: [PATCH v8 net-next 5/7] net: simple poll/select low latency socket poll

2013-06-03 Thread Eliezer Tamir
On 03/06/2013 16:15, Eric Dumazet wrote: On Mon, 2013-06-03 at 11:02 +0300, Eliezer Tamir wrote: sock = file->private_data; - return sock->ops->poll(file, sock, wait); + + poll_result = sock->ops->poll(file, sock, wait); + + if (!(poll_result & (POLLRDNORM | POLLERR | P

Re: [PATCH v8 net-next 5/7] net: simple poll/select low latency socket poll

2013-06-03 Thread Eric Dumazet
On Mon, 2013-06-03 at 11:02 +0300, Eliezer Tamir wrote: > A very naive select/poll busy-poll support. > Add busy-polling to sock_poll(). > When poll/select have nothing to report, call the low-level > sock_poll() again untill we are out of time or we find something. > Rigth now we poll every socket

[PATCH v8 net-next 5/7] net: simple poll/select low latency socket poll

2013-06-03 Thread Eliezer Tamir
A very naive select/poll busy-poll support. Add busy-polling to sock_poll(). When poll/select have nothing to report, call the low-level sock_poll() again untill we are out of time or we find something. Rigth now we poll every socket once, this is subpotimal but impoves latency when the number of s