[systemd-devel] [PATCH] Experimental socket process pool.

David Strauss david at davidstrauss.net
Mon Oct 21 18:50:28 PDT 2013


On Mon, Oct 21, 2013 at 4:59 AM, David Strauss <david at davidstrauss.net> wrote:
> I've already noticed that it doesn't work so well with multiple processes and EPOLLIN to do
> accept() callbacks (like in systemd-socket-proxyd), but I'm looking for options there.

Thanks to some helpful advice [1] on Stack Overflow and some man page
reading about EPOLLONESHOT + EPOLL_CTL_MOD [2], I've fixed up
EPOLLONESHOT support in the event library (including tests) and
updated socket-proxyd to use it. There's now a much lower rate of
process activation and competition to accept().

[1] http://stackoverflow.com/a/19497265/450218
[2] http://linux.die.net/man/2/epoll_ctl


More information about the systemd-devel mailing list