unknown directive "aio" in Nginx 0.8.14

Maxim Dounin mdounin at mdounin.ru
Thu Sep 10 13:54:20 MSD 2009


Hello!

On Thu, Sep 10, 2009 at 01:40:35PM +0400, Igor Sysoev wrote:

> On Thu, Sep 10, 2009 at 11:26:14AM +0200, Dinh Pham wrote:
> 
> > Hi all,
> > 
> > I installed Nginx 0.8.14 to try out a new feature: AIO support. Also, I
> > compiled Nginx with --with-file-aio
> > 
> > However, Nginx show warnings that it does not support AIO:
> > 
> > Starting nginx: [emerg]: unknown directive "aio" in
> > /usr/local/nginx/nginx.conf:46
> > 
> > Here is my configuration
> > 
> >         location ~* ^\/files\/(.+) {
> >             alias /home/files/$1;
> >             internal;
> >             aio on;
> >             # sendfile off;
> >             directio 512;
> >         }
> > 
> > Is this feature experimental and withdrawn?
> 
> Could you show this ./configure line:
> checking for Linux AIO support ...
> ?
> 
> Probabaly, your kernel does not support eventfd(), it's available since
> 2.6.22 only.

Oops, looking at configure code - it doesn't fail when it's unable 
to find any AIO support with --with-file-aio.

I think it should.

Maxim Dounin





More information about the nginx mailing list