Welcome! Log In Create A New Profile

Advanced

Re: aio info

May 06, 2011 06:52AM
On Fri, May 06, 2011 at 09:37:12AM +0000, Richard Kearsley wrote:
> Is aio used while reading files from proxy_cache?

Yes, it works. For FreeBSD I recommend this settings:

sendfile on;
aio sendfile;
tcp_nopush on;
read_ahead 512k;

> I test aio on a file every 1s (it should be in ram buffers, so no disk io needed)
> Usually it takes 1ms (or lower), but sometimes it spikes to over a second if disks are really busy
> The max_aio_queue doesn't go above 3-4 during test
> Any ideas the cause of spikes?

May be locks on VFS level. You can try this:

open_file_cache max=5000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 3;


--
Igor Sysoev

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

aio info

Richard Kearsley May 05, 2011 01:06AM

Re: aio info

Igor Sysoev May 05, 2011 03:14AM

RE: aio info

Richard Kearsley May 06, 2011 05:38AM

Re: aio info

Igor Sysoev May 06, 2011 06:52AM

RE: aio info

Richard Kearsley May 06, 2011 08:54AM

Re: aio info

Igor Sysoev May 06, 2011 09:02AM

RE: aio info

Richard Kearsley May 06, 2011 09:52AM

RE: aio info

Richard Kearsley May 09, 2011 05:34AM

Re: aio info

Maxim Dounin May 09, 2011 07:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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