NFS - Async option

NFS - Async option

Postby kevin39 » Tue Apr 08, 2014 7:33 am

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...
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France

Re: NFS - Async option

Postby Jocko » Tue Apr 08, 2014 11:43 am

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
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: NFS - Async option

Postby kevin39 » Tue Apr 08, 2014 11:46 am

Hi,
Thanks a lot, it will be very useful !

Best regards
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France

Re: NFS - Async option

Postby drixon » Thu Apr 17, 2014 6:06 pm

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 :-(
drixon
Donator VIP
Donator VIP
 
Posts: 11
Joined: Tue Apr 15, 2014 10:05 am

Re: NFS - Async option

Postby kevin39 » Thu Apr 17, 2014 6:11 pm

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.
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France

Re: NFS - Async option

Postby drixon » Thu Apr 17, 2014 9:52 pm

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
drixon
Donator VIP
Donator VIP
 
Posts: 11
Joined: Tue Apr 15, 2014 10:05 am

Re: NFS - Async option

Postby Jocko » Thu Apr 17, 2014 10:03 pm

Hi drixon,

I sent you a pm to install a patch. With this you can easily change the export options
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: NFS - Async option

Postby drixon » Fri Apr 18, 2014 10:41 am

Well Received, many Thanks
drixon
Donator VIP
Donator VIP
 
Posts: 11
Joined: Tue Apr 15, 2014 10:05 am


Return to Development

Who is online

Users browsing this forum: No registered users and 5 guests