Welcome! Log In Create A New Profile

Advanced

directio question

Stefan Parvu
March 07, 2010 01:10PM
Hi,

My name is Stefan Parvu, Im working on http://www.systemdatarecorder.org
and I have started to test and consider replacing for our solution
apache over nginx. Im getting to know nginx and I like the server.

Some question reading over http://wiki.nginx.org/NginxHttpCoreModule
about DirectIO:

"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 for this request."

DirectIO in Solaris is a feature, when enabled lets you to bypass entirely the
OS's page cache and read/write directly from/to disk. This has some
benefits where workloads are database servers and you want to avoid
double caching.

Im a bit curious under what situations would like to have DirectIO enabled on
nginx and are we talking about same thing when we refer to directio ?
http://www.solarisinternals.com/wiki/index.php/Direct_I/O

Usually most applications will benefit of having the OS's page cache involved
rather of going to disk.

Thanks,
stefan

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

directio question

Stefan Parvu March 07, 2010 01:10PM

Re: directio question

Igor Sysoev March 07, 2010 01:50PM

Re: directio question

Stefan Parvu March 07, 2010 02:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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