Welcome! Log In Create A New Profile

Advanced

Re: Help with AIO

Maxim Dounin
September 06, 2011 03:34AM
Hello!

On Tue, Sep 06, 2011 at 01:21:00AM +0300, Hagai Avrahami wrote:

> Hi
>
> I configured Nginx with *aio *mode *on *and 1 *worker process*
> In benchmarking I saw limit of 1024 concurrent sessions even configured to
> 4096 *worker connections*

Sure it's not limitation of the benchmarking tool you use? Most
tools out there use select() and hence limited to 1024
concurrent connections.

> When I looked in the source code I could see that io_setup is called with
> fix value of 1024 max events
> can anyone please explain me the hard coded limit
> Is it OK to change it or it is derived from other limit I am not aware of
> any help will be appreciated

io_setup() maxevents is a limit on number of aio requests allowed
to be submitted simulteneously; if nginx hits this limit, it will
fallback to normal blocking read.

If you are going to change it, make sure to keep total for all
processes lower than /proc/sys/fs/aio-max-nr.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Help with AIO

Hagai Avrahami September 05, 2011 06:22PM

Re: Help with AIO

Maxim Dounin September 06, 2011 03:34AM

Re: Help with AIO

Hagai Avrahami September 06, 2011 03:48AM

Re: Help with AIO

Hagai Avrahami September 15, 2011 10:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
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