netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/1] net: lls select poll support
@ 2013-06-18  8:57 Eliezer Tamir
  2013-06-18  8:58 ` [PATCH v2 net-next] net: poll/select low latency socket support Eliezer Tamir
  0 siblings, 1 reply; 10+ messages in thread
From: Eliezer Tamir @ 2013-06-18  8:57 UTC (permalink / raw)
  To: David Miller
  Cc: linux-kernel, netdev, Jesse Brandeburg, Don Skidmore, e1000-devel,
	Willem de Bruijn, Eric Dumazet, Ben Hutchings, Andi Kleen, HPA,
	Eilon Greenstien, Or Gerlitz, Amir Vadai, Alex Rosenbaum,
	Avner Ben Hanoch, Or Kehati, sockperf-dev, Eliezer Tamir

David,

Here is a rework of the select/poll patch.
(I called this a v2 but we are continuing where we left off in v9
of the original series.)

One question: do we need in sock_poll() to test that sock->sk is not null?
(Thanks to Willem de Bruijn for pointing this out.) 

When select or poll are used on a lot of sockets the sysctl value
needs to be set higher than 50. For 300 sockets a setting of 100 works
for me. For 1000 sockets a setting of 200 works well but the gain is
very small, probably not worth it.

I should mention that unlike the version we had in v9, with this version
of the patch, LLS always performs better than no LLS. 

-Eliezer

Change log:
v2
- added POLL_LL flag, used to signal between the syscalls and sock_poll().
- add a separate ll_end_time() function to be used from poll.
- slight reorder of sk_poll_ll so the timing primitives are not used
  when called from sock_poll().
- select/poll stop busy polling as soon as there is something to return
  to the user.

Change log from the original LLS patch series:
v9
- better mask testing in sock_poll(), reported by Eric Dumazet.

v8
- split out udp and select/poll into separate patches.
  what used to be patch 2/5 is now three patches.

v5
- added simple poll/select support

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-06-18 14:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-18  8:57 [PATCH v2 net-next 0/1] net: lls select poll support Eliezer Tamir
2013-06-18  8:58 ` [PATCH v2 net-next] net: poll/select low latency socket support Eliezer Tamir
2013-06-18  9:08   ` Eric Dumazet
2013-06-18  9:12     ` Eliezer Tamir
2013-06-18 10:25   ` Eric Dumazet
2013-06-18 10:37     ` Eliezer Tamir
2013-06-18 13:25     ` Eliezer Tamir
2013-06-18 14:35       ` Eric Dumazet
2013-06-18 14:45         ` Eliezer Tamir
2013-06-18 14:50           ` Eliezer Tamir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).