]> git.kaiwu.me - nginx.git/commit
The "worker_aio_requests" directive.
authorIgor Sysoev <igor@sysoev.ru>
Tue, 20 Sep 2011 07:30:09 +0000 (07:30 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 20 Sep 2011 07:30:09 +0000 (07:30 +0000)
commitc8df23cb29146c1dfca82141e19b1049b1fc1011
treeb55c3a854d9d592aae14eecaa9807f5679219dc9
parenta823c550e45bb653c5d660cceaea3f153b3b28e8
The "worker_aio_requests" directive.

The default value is 32 AIO simultaneous requests per worker. Previously
they were hardcoded to 1024, and it was too large, since Linux allocated
them early on io_setup(), but not on request itself. So with default value
of /proc/sys/fs/aio-max-nr equal to 65536 only 64 worker processes could
be run simultaneously. 32 AIO requests are enough for modern disks even if
server runs only 1 worker.
src/event/modules/ngx_epoll_module.c