Page 1 of 1
NFS - Async option

Posted:
Tue Apr 08, 2014 7:33 am
by kevin39
Hi,
First, this firmware is beautiful... I'm rediscovering my Lacie NS. Thanks a lot for you work !
I'm using NFS shares with mac computers.
Due to very poor write performance I had to add the "async" option on the server and manually stop/start from the command line. Using the async option highlighy improve my performance (from 0.1mb/s to 10/20 mb/s).
Is it possible to add this option in the GUI ? Because my option will be overridden by your default "sync" option each time I edit my NFS shares...
Re: NFS - Async option

Posted:
Tue Apr 08, 2014 11:43 am
by Jocko
Hi kevin39,
I understand it and we will add an option in the nfs menu. Rather than adding only this option , I will add the ability to edit the default used options
Re: NFS - Async option

Posted:
Tue Apr 08, 2014 11:46 am
by kevin39
Hi,
Thanks a lot, it will be very useful !
Best regards
Re: NFS - Async option

Posted:
Thu Apr 17, 2014 6:06 pm
by drixon
Hi,
I have the same problem with the NFS performance (I'm using it with Vmware ESXi).
I want to try this trick of the async option but I don't know how to restart manually the nfs service from command line.
Could you help me please?
from the web, it overwrite the option to sync again :-(
Re: NFS - Async option

Posted:
Thu Apr 17, 2014 6:11 pm
by kevin39
There are 2 scripts in /etc to stop & start the NFS Server. Just call the script you want.
To stop NFS Server : /etc/stop-nfs-server
To start NFS Server : /etc/start-nfs-server
Beware that any NFS update on the GUI will override your async option. Jocko sent me an addon to set my own settings, you can ask him if you want it too.
Re: NFS - Async option

Posted:
Thu Apr 17, 2014 9:52 pm
by drixon
Many thanks Kevin39,
Here is what I've done:
I changed a line on the file ‘exports’ from :
(rw,sync,no_root_squash,no_subtree_check)
to
(rw,async,no_root_squash,no_subtree_check)
and then I did as you mentioned above :
/etc/stop-nfs-server
/etc/start-nfs-server
the start command gave me an error :
rpc.nfsd: Setting version failed: errno 22 (Invalid argument)
so I tried this (with -d) :
# /usr/sbin/rpc.nfsd -d
rpc.nfsd: Checking netconfig for visible protocols.
rpc.nfsd: Enabling inet udp.
rpc.nfsd: Enabling inet tcp.
rpc.nfsd: Enabling inet6 udp.
rpc.nfsd: Enabling inet6 tcp.
rpc.nfsd: knfsd is currently up
with the ‘sync’ option I got 2.5Mb/s and with the ‘async’ I can see a 4.5Mb/s which is too little unfortunately
Because with the usual samba (CIFS) I can see more than 10Mb/s.
I did the test by activating NFS services on Windows 7 ultimate (it's on a VM) and transferring a file of 500M to the NAS.
btw, I have a LaCie Cloudbox (white) 4To
Do you think I can get a better speed with any other options?
and is there any risk using the 'async' option in Vmware ESXi environment (I use the NFS as datastore)?
Thank you
Re: NFS - Async option

Posted:
Thu Apr 17, 2014 10:03 pm
by Jocko
Hi drixon,
I sent you a pm to install a patch. With this you can easily change the export options
Re: NFS - Async option

Posted:
Fri Apr 18, 2014 10:41 am
by drixon
Well Received, many Thanks