Eric Wong <[email protected]> wrote: > While a major design factor of this server was based > load-balancing with blocking accept() in a dedicated thread, > non-blocking accept() has become fairer with EPOLLEXCLUSIVE in > Linux 4.5+.
Actually... not sure if it matters, even. EPOLLEXCLUSIVE still seems worse off than a blocking accept4() thread. The process which gets woken from epoll_wait can still be stuck dealing with application processing or other I/O (the kernel has no way of knowing that). Blocking on accept4() is fairer in that regard since it round-robins the processes. On a related note, having a multi_accept parameter (like nginx) should be beneficial to single-process deployments. -- unsubscribe: [email protected] archive: https://yhbt.net/yahns-public/
