aio on nfs

Jim Ohlstein jim at ohlste.in
Wed Jul 20 14:03:32 UTC 2011


On 7/20/11 4:50 AM, Juergen Gotteswinter wrote:
> Am 19.07.11 20:43, schrieb Igor Sysoev:
>> On Tue, Jul 19, 2011 at 02:10:20PM -0400, Jim Ohlstein wrote:
>>> Hello,
>>>
>>> I'm using aio on FreeBSD 8.2 with the following in my nginx.conf:
>>>
>>>
>>> http {
>>>
>>>     ...
>>>
>>>     sendfile       on;
>>>     aio            sendfile;
>>>     tcp_nopush     on;
>>>     read_ahead     512k;
>>>     output_buffers 1 128k;
>>>
>>>     ...
>>>
>>> }
>>>
>>> I'm serving some content via NFS mounted drives in a private network,
>>> those boxes are also running FreeBSD 8.2.
>>>
>>> I've read in a couple of locations that sendfile() doesn't work in such
>>> situations. Is their a better configuration to use for those specific
>>> locations?
>>
>> It should work.
>>
>>
> 
> i can confirm that it works fine.

Thank you both.


-- 
Jim Ohlstein



More information about the nginx mailing list