# Aio on nfs

**URL:** <https://www.ruby-forum.com/t/aio-on-nfs/209663>\
**Category:** NGINX\
**Created:** [July 19, 2011, 8:11pm UTC](https://www.ruby-forum.com/t/aio-on-nfs/209663 "2011-07-19T20:11:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [July 19, 2011, 8:11pm UTC](https://www.ruby-forum.com/t/aio-on-nfs/209663/1 "2011-07-19T20:11:08Z")

</div>

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?

–  
Jim O.

---

<div class="post-metadata">

**Author:** ![joviyach](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Post date:** [July 19, 2011, 8:43pm UTC](https://www.ruby-forum.com/t/aio-on-nfs/209663/2 "2011-07-19T20:43:59Z")

</div>

On Tue, Jul 19, 2011 at 02:10:20PM -0400, Jim O. wrote:

> aio sendfile;
> 
> 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.

–  
Igor S.

---

<div class="post-metadata">

**Author:** ![joviyach](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Post date:** [July 20, 2011, 10:51am UTC](https://www.ruby-forum.com/t/aio-on-nfs/209663/3 "2011-07-20T10:51:17Z")

</div>

Am 19.07.11 20:43, schrieb Igor S.:

> > sendfile on;  
> > 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.

---

<div class="post-metadata">

**Author:** ![joviyach](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Post date:** [July 20, 2011, 4:04pm UTC](https://www.ruby-forum.com/t/aio-on-nfs/209663/4 "2011-07-20T16:04:07Z")

</div>

On 7/20/11 4:50 AM, Juergen G. wrote:

> > > I’m serving some content via NFS mounted drives in a private network,  
> > > i can confirm that it works fine.  
> > > Thank you both.

–  
Jim O.
