lkml.org 
[lkml]   [2012]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: The thundering herd like problem when multi epolls on one fd
* Eric Dumazet | 2012-01-14 14:20:47 [+0100]:
>What happens if the awaken thread does not consume the event, and prefer
>to exit ?
>
>If several threads are doing select()/poll()/epoll() on a shared fd,
>they _all_ must be notified the fd is ready, as manpages claim.
>

And if it is intended? Signaled via a new epoll_ctl() epoll_event flag? E.g.
EPOLLEXCLUSIVE

>Doing otherwise would require the prior consent of the user, using a
>special flag for example, and documentation.

Oops, yes. A fanout like mechanism _may be_ superior, but I think tests will
show some improvements anyway.

Hagen


\
 
 \ /
  Last update: 2012-01-14 16:59    [from the cache]
©2003-2011 Jasper Spaans