Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.7.7

May 16, 2009 11:57AM
On Fri, May 15, 2009 at 05:59:02PM +0200, Joe Bofh wrote:

> Why would one use directio vs sendfile? Why would/should they be
> mutually exclusive?

The main sendfile advantage is that it uses pages of cached files.
directio disables file caching. This example should be corrected as

sendfile on;
directio 4m;

Then files up to 4M would have good chances to be cached in VM.

> --J
>
> Igor Sysoev wrote:
>
> >
> > directio [off|size]
> > http/server/location level
> > default off
> >
> > The directive enables O_DIRECT or F_NOCACHE (Mac OS X) options for
> > files open for reading if their size is bigger than specified in
> > directive.
> >
> > Example:
> >
> > directio 4m;
> > sendfile off;
>
> --
> Posted via http://www.ruby-forum.com/.

--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Re: nginx-0.7.7

Joe Bofh May 15, 2009 11:59AM

Re: nginx-0.7.7

Igor Sysoev May 16, 2009 11:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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