Welcome! Log In Create A New Profile

Advanced

Re: File AIO and multiple nginx instances

May 18, 2011 03:36AM
On Wed, May 18, 2011 at 12:09:34AM -0400, arti wrote:
> Hello.
>
> I need to run two nginx instances on one server (not two workers, but
> two master processes with their own number of workers each). The problem
> is that when nginx is compiled with aio support I can start only one
> instance. When I try to start the second one, only master process starts
> and these lines appear in error log:
>
> [emerg] 12789#0: io_setup() failed (1: Operation not permitted)
> ...
> [alert] 12715#0: worker process 12789 exited with fatal code 2 and can
> not be respawn
> ...
>
> This happens even if aio directive isn't used in configuration.
>
> My system is CentOS 5.5 with kernel 2.6.18-194.32.1.el5, I've tried
> nginx 1.0.0 and nginx 1.0.2
>
> So, is it expected behavior (I don't know nginx and/or aio internals),
> or is it a bug in nginx or aio, and is there a way to start two nginx
> instances, both with aio support?

It's strange, but io_setup(2) man does not even mention EPERM:
http://www.kernel.org/doc/man-pages/online/pages/man2/io_setup.2.html


--
Igor Sysoev

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

File AIO and multiple nginx instances

arti May 18, 2011 12:09AM

Re: File AIO and multiple nginx instances

Igor Sysoev May 18, 2011 03:36AM

Re: File AIO and multiple nginx instances

arti May 20, 2011 02:54AM

Re: File AIO and multiple nginx instances

Igor Sysoev May 20, 2011 02:58AM

Re: File AIO and multiple nginx instances

arti May 20, 2011 02:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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