Welcome! Log In Create A New Profile

Advanced

Re: Cancelling aio operations on Linux

November 15, 2016 04:41PM
Hi,

An update on this - we found the problem happens when the number of aio contexts (defaults to 32) is exceeded. When that happens nginx falls back to using regular (synchronous) io, and for some reason this makes the kernel not send completion notification for some pending aio requests. Increasing worker_aio_requests to a larger value (we use 1024) solved the problem for us.
IMHO, it would have been better if nginx would have failed the request in this case instead of falling back to regular io. Or, at least, output some message to the error log.

Thanks

Eran
Subject Author Posted

Cancelling aio operations on Linux

erankor September 02, 2016 02:30PM

Re: Cancelling aio operations on Linux

erankor November 15, 2016 04:41PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 317
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready