<div dir="ltr">Thanks a lot<br>I will try it<br><br><div class="gmail_quote">On Tue, Sep 6, 2011 at 9:33 AM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello!<br>
<div class="im"><br>
On Tue, Sep 06, 2011 at 01:21:00AM +0300, Hagai Avrahami wrote:<br>
<br>
> Hi<br>
><br>
> I configured Nginx with *aio *mode *on *and 1 *worker process*<br>
> In benchmarking I saw limit of 1024 concurrent sessions even configured to<br>
</div>> 4096 *worker connections*<br>
<br>
Sure it's not limitation of the benchmarking tool you use? Most<br>
tools out there use select() and hence limited to 1024<br>
concurrent connections.<br>
<div class="im"><br>
> When I looked in the source code I could see that io_setup is called with<br>
> fix value of 1024 max events<br>
> can anyone please explain me the hard coded limit<br>
> Is it OK to change it or it is derived from other limit I am not aware of<br>
> any help will be appreciated<br>
<br>
</div>io_setup() maxevents is a limit on number of aio requests allowed<br>
to be submitted simulteneously; if nginx hits this limit, it will<br>
fallback to normal blocking read.<br>
<br>
If you are going to change it, make sure to keep total for all<br>
processes lower than /proc/sys/fs/aio-max-nr.<br>
<br>
Maxim Dounin<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><p><font color="#000000"><b>Hagai Avrahami</b></font><br>
<font color="#000000">Qwilt | Work: +972-72-2221644| Mobile: +972-54-4895656 | </font><a href="mailto:yoav@qwilt.com" rel="nofollow" target="_blank">hagaia@qwilt.com</a></p></div><br>
</div>