kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* epoll improvements
@ 2014-10-16 12:09 Nev Ikte
  2014-10-16 12:17 ` Greg KH
  2014-10-16 17:02 ` Valdis.Kletnieks at vt.edu
  0 siblings, 2 replies; 5+ messages in thread
From: Nev Ikte @ 2014-10-16 12:09 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I've a server using epoll and I've noticed that when
the traffic is low, the epoll_wait() latency goes up.

I've tried to reproduce it with a single client
and basically, if ep_poll() is able to find an event or the timeout is 0,
the latency is down to 5usec, otherwise if it enters the waitqueue
the latency goes up to 10-25usec, which impact the application performance.

Looking at the code there is something like a todo ("Is it worth to try to dig for events ?")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/eventpoll.c?id=refs/tags/v3.17#n1650

Anyone knows how the situation can be improved?
in theory having something like a 50usec spin loop 
checking for events before entering in the waitqueue should improve the situation.

suggestion? patches?
thanks!

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

end of thread, other threads:[~2014-10-17 16:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-16 12:09 epoll improvements Nev Ikte
2014-10-16 12:17 ` Greg KH
2014-10-16 12:48   ` Jason Ball
2014-10-16 17:02 ` Valdis.Kletnieks at vt.edu
2014-10-17 16:47   ` michi1 at michaelblizek.twilightparadox.com

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).