Thread (4 messages) flat view 4 messages, 3 authors, 2012-02-14

Re: [PATCH net-next] epoll: add EPOLLEXCLUSIVE support

From: Eric Dumazet <hidden>
Date: 2012-02-14 21:06:22
Also in: lkml

Le mardi 14 février 2012 à 21:48 +0100, Hagen Paul Pfeifer a écrit :
High performance server sometimes create one listening socket (e.g. port
80), create a epoll file descriptor and add the socket. Afterwards
create SC_NPROCESSORS_ONLN threads and wait for events. This often
result in a thundering herd problem because all CPUs are scheduled.

This patch add an additional flag to epoll_ctl(2) called EPOLLEXCLUSIVE.
If a descriptor is added with this flag only one CPU is scheduled in.

Signed-off-by: Hagen Paul Pfeifer <redacted>
Reported-by: Li Yu <redacted>
Cc: Davide Libenzi <redacted>
Cc: Eric Dumazet <redacted>
---
Seems pretty good to me.

Do you have some performance numbers to share ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help