Help with AIO
hagaia at qwilt.com
Tue Sep 6 07:46:56 UTC 2011
Thanks a lot
I will try it
On Tue, Sep 6, 2011 at 9:33 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> 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
> > 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
> > 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 at nginx.org
Qwilt | Work: +972-72-2221644| Mobile: +972-54-4895656 |
hagaia at qwilt.com<yoav at qwilt.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx