aio vs non-blocking-io

double nginx-forum at nginx.us
Sun Dec 11 23:58:57 UTC 2011


Hello,

Is there a chance to use non-blocking-io with nginx?
AIO is quite broken on Linux, but "O_NONBLOCK" is not.
I know, AIO would be better because you don't have to wait
until the buffer is copied to the kernel-space, but what should
we do...

The problem, nginx is quite often in "uninterruptible sleep" (D), 
so the whole process is blocked.

Thanks a lot
Marcus

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,219886,219886#msg-219886



More information about the nginx mailing list