Welcome! Log In Create A New Profile

Advanced

directio not working

Richard Kearsley
June 15, 2011 12:38PM
Hi, from nginx wiki:

directio
syntax: directio [size|off]
default: directio off
context: http, server, location
The directive enables use of flags O_DIRECT (FreeBSD, Linux), F_NOCACHE (Mac OS X) or directio() function (Solaris) for reading files with size greater than specified. This directive disables use of sendfile<http://wiki.nginx..org/HttpCoreModule#sendfile> for this request. This directive may be useful for big files:
directio 4m;

I have in my config:
directio 0;

(I do not want to cache anything in ram)

But ater 5 mins of nginx running:

free -m
total used free shared buffers cached
Mem: 7994 1980 6014 0 255 1033
-/+ buffers/cache: 691 7303

(cached is going up and up)

Is something else needed or is it just not working?

OS:
2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux

Many thanks as always

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

directio not working

Richard Kearsley June 15, 2011 12:38PM

Re: directio not working

Ensiferous June 15, 2011 02:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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