RSIZE / WSIZE

Discussion about using NAS on Linux and Unix OS.
BOLLE
Starting out
Posts: 21
Joined: Fri Sep 25, 2009 9:12 pm

Re: RSIZE / WSIZE

Post by BOLLE »

ok the export were wrong

" * i didn't remove...
BOLLE
Starting out
Posts: 21
Joined: Fri Sep 25, 2009 9:12 pm

Re: RSIZE / WSIZE

Post by BOLLE »

ok but how it works with the sartup script i don't undertsand...
Sparkss
Getting the hang of things
Posts: 99
Joined: Sat Sep 26, 2009 7:50 am

Re: RSIZE / WSIZE

Post by Sparkss »

ok, so it sounds like you got it working now ? and showmount lists your mounts as you intended from your exports ?

For the startup script, are you referring to the S56unfsd in the init.d dir ? or the autorun that gets run when the QNAP reboots ?

If it is the on in init.d, and you want to change it to use your exports file in a dir other than /opt/etc, then just update the last line of the script to add the -e <exports> file arg that you used to launch it via command line. If you keep your exports file in /opt/etc then you don't need to edit anything. Just don't run the S56nfs-utils startup script in the init.d dir and then make any changes to the builtin NFS service. If you don't perform both of those actions in that order, then you can safely store your exports file in /opt/etc and just run unfsd "normally" :). But me eing paranoid and all I would recommend keeping a copy of it somewhere else, just to be safe :).

If you are asking about the autorun, there are lots of posts here about how best to update and config that. To be honest I haven't even touched mine yet, so I am not a great person to ask. I did read in some posts a while back about mounting the flashmemory that holds that file to edit it. You're best bet for that would be to search for autorun here (I am *pretty sure* that is what it is called). There were some pretty detailed posts outlining how to update it.

HTH
BOLLE
Starting out
Posts: 21
Joined: Fri Sep 25, 2009 9:12 pm

Re: RSIZE / WSIZE

Post by BOLLE »

It works fine ..the autostart too!!!
THX @all
BOLLE
Starting out
Posts: 21
Joined: Fri Sep 25, 2009 9:12 pm

Re: RSIZE / WSIZE

Post by BOLLE »

But this speed i didn't get:
SMB : 9.6 MB/s
NFS (native QNAP) : 8.8 MB/s
UNFS (ipkg) : 16 MB/s

is it gigabit lan?
User avatar
Q
Experience counts
Posts: 1436
Joined: Wed Sep 05, 2007 4:18 pm
Location: Switzerland
Contact:

Re: RSIZE / WSIZE

Post by Q »

thx a lot sparkss :D will try it also later today

@bolle: 16 MB/s surely is only possible on a gigabit lan. and note it's between a TS-509 and Dune player, so your results will be different.

what speed do you get anyway? how much difference compared to before?
I am Q
www.qnap.ch

I don't work at QNAP.
And RAID is really NO backup!
BOLLE
Starting out
Posts: 21
Joined: Fri Sep 25, 2009 9:12 pm

Re: RSIZE / WSIZE

Post by BOLLE »

Here are my results...much more better than before. Read now 8bmit ..before changeing nfs Server it was 4mbit...COOOOOLLLLL!!

Code: Select all

Results for write throughput:
38.347 Mbit/s or 4.793 Mb/s with udp,sync,wsize=8192
38.347 Mbit/s or 4.793 Mb/s with udp,sync,wsize=32768
38.347 Mbit/s or 4.793 Mb/s with udp,sync,wsize=16384
38.347 Mbit/s or 4.793 Mb/s with udp,async,wsize=65536
38.347 Mbit/s or 4.793 Mb/s with tcp,sync,wsize=8192
38.347 Mbit/s or 4.793 Mb/s with tcp,sync,wsize=32768
38.347 Mbit/s or 4.793 Mb/s with tcp,sync,wsize=16384
38.347 Mbit/s or 4.793 Mb/s with tcp,async,wsize=65536
35.791 Mbit/s or 4.473 Mb/s with udp,sync,wsize=65536
35.791 Mbit/s or 4.473 Mb/s with udp,sync,wsize=49152
35.791 Mbit/s or 4.473 Mb/s with udp,async,wsize=8192
35.791 Mbit/s or 4.473 Mb/s with udp,async,wsize=49152
35.791 Mbit/s or 4.473 Mb/s with udp,async,wsize=4096
35.791 Mbit/s or 4.473 Mb/s with udp,async,wsize=32768
35.791 Mbit/s or 4.473 Mb/s with udp,async,wsize=16384
35.791 Mbit/s or 4.473 Mb/s with tcp,sync,wsize=65536
35.791 Mbit/s or 4.473 Mb/s with tcp,sync,wsize=49152
35.791 Mbit/s or 4.473 Mb/s with tcp,sync,wsize=4096
35.791 Mbit/s or 4.473 Mb/s with tcp,async,wsize=8192
35.791 Mbit/s or 4.473 Mb/s with tcp,async,wsize=49152
35.791 Mbit/s or 4.473 Mb/s with tcp,async,wsize=4096
35.791 Mbit/s or 4.473 Mb/s with tcp,async,wsize=32768
35.791 Mbit/s or 4.473 Mb/s with tcp,async,wsize=16384
33.554 Mbit/s or 4.194 Mb/s with udp,sync,wsize=4096

Results for read throughput:
67.108 Mbit/s or 8.388 Mb/s with udp,sync,rsize=4096
67.108 Mbit/s or 8.388 Mb/s with udp,async,rsize=8192
67.108 Mbit/s or 8.388 Mb/s with udp,async,rsize=65536
67.108 Mbit/s or 8.388 Mb/s with udp,async,rsize=49152
67.108 Mbit/s or 8.388 Mb/s with udp,async,rsize=32768
67.108 Mbit/s or 8.388 Mb/s with udp,async,rsize=16384
67.108 Mbit/s or 8.388 Mb/s with tcp,async,rsize=8192
67.108 Mbit/s or 8.388 Mb/s with tcp,async,rsize=65536
67.108 Mbit/s or 8.388 Mb/s with tcp,async,rsize=49152
67.108 Mbit/s or 8.388 Mb/s with tcp,async,rsize=4096
67.108 Mbit/s or 8.388 Mb/s with tcp,async,rsize=32768
67.108 Mbit/s or 8.388 Mb/s with tcp,async,rsize=16384
59.652 Mbit/s or 7.456 Mb/s with udp,sync,rsize=8192
59.652 Mbit/s or 7.456 Mb/s with udp,sync,rsize=65536
59.652 Mbit/s or 7.456 Mb/s with udp,sync,rsize=49152
59.652 Mbit/s or 7.456 Mb/s with udp,sync,rsize=32768
59.652 Mbit/s or 7.456 Mb/s with udp,sync,rsize=16384
59.652 Mbit/s or 7.456 Mb/s with udp,async,rsize=4096
59.652 Mbit/s or 7.456 Mb/s with tcp,sync,rsize=8192
59.652 Mbit/s or 7.456 Mb/s with tcp,sync,rsize=65536
59.652 Mbit/s or 7.456 Mb/s with tcp,sync,rsize=49152
59.652 Mbit/s or 7.456 Mb/s with tcp,sync,rsize=4096
59.652 Mbit/s or 7.456 Mb/s with tcp,sync,rsize=32768
59.652 Mbit/s or 7.456 Mb/s with tcp,sync,rsize=16384
User avatar
Q
Experience counts
Posts: 1436
Joined: Wed Sep 05, 2007 4:18 pm
Location: Switzerland
Contact:

Re: RSIZE / WSIZE

Post by Q »

awesome :mrgreen:
I am Q
www.qnap.ch

I don't work at QNAP.
And RAID is really NO backup!
BOLLE
Starting out
Posts: 21
Joined: Fri Sep 25, 2009 9:12 pm

Re: RSIZE / WSIZE

Post by BOLLE »

@q
are these nfs results possible in no Gigabit Lan...


Results for smb (cifs)

Code: Select all

Results for write throughput:
35.791 Mbit/s or 4.473 Mb/s with wsize=49152

33.554 Mbit/s or 4.194 Mb/s with wsize=32768
31.580 Mbit/s or 3.947 Mb/s with wsize=16384
28.256 Mbit/s or 3.532 Mb/s with wsize=8192
21.474 Mbit/s or 2.684 Mb/s with wsize=65536
12.485 Mbit/s or 1.560 Mb/s with wsize=4096

Results for read throughput:
44.739 Mbit/s or 5.592 Mb/s with rsize=65536
41.297 Mbit/s or 5.162 Mb/s with rsize=49152
41.297 Mbit/s or 5.162 Mb/s with rsize=32768
33.554 Mbit/s or 4.194 Mb/s with rsize=16384
25.565 Mbit/s or 3.195 Mb/s with rsize=8192
18.512 Mbit/s or 2.314 Mb/s with rsize=4096
Thats the same results as before...
BOLLE
Starting out
Posts: 21
Joined: Fri Sep 25, 2009 9:12 pm

Re: RSIZE / WSIZE

Post by BOLLE »

now I take a look on my Client with the command "mount". I see that the mount is not correct, becaus rsize and wzise is 32768 and TCP. It should be rsize= 4096 und wsize=32768 and UDP!!!! Where is here the Problem?

Do I have to change anything in the Qnap?!

Code: Select all

192.168.178.40:/share/HDA_DATA/Qmultimedia on /media/net/HOMESTATION type nfs (rw,vers=3,rsize=32768,wsize=32768,hard,nolock,proto=tcp,timeo=70,retrans=3,addr=192.168.178.40)
User avatar
Q
Experience counts
Posts: 1436
Joined: Wed Sep 05, 2007 4:18 pm
Location: Switzerland
Contact:

Re: RSIZE / WSIZE

Post by Q »

in a 100 mbps network you usually can get a transfer rate up to 10 MByte/s, depending on various factors. you have a 109 or 209, right? it should also be possible to reach it by smb without any tweaking at all (at least for normal copy of big files). and in a gigabit network you can get around 20 MByte/s with this model.

of course it always depends on the client too! what's your client anyway?
or do you use powerline, wlan or something?


how do you mount it (nfs)?

example:
mount -o udp,rsize=nnnnn,wsize=nnnnn remoteserver:share /mnt/folder

btw it's also working now on my TS-209 :) i had to clean the exports file as sparkss noted and to edit the S56unfsd script (include the exports location > /opt/sbin/unfsd -e /opt/etc/exports). however in a 100 mbps network i don't get any speed difference with unfs using a 509 as client compared to the builtin nfs server (still around 7 MByte/s as before). will test it between 119 and 509 on a gigabit network later.

surely it depends on various factors if you get double the speed (as you and sparkss) or basically no change (like me). but don't ask me what those factors are because i don't know :mrgreen:
I am Q
www.qnap.ch

I don't work at QNAP.
And RAID is really NO backup!
Sparkss
Getting the hang of things
Posts: 99
Joined: Sat Sep 26, 2009 7:50 am

Re: RSIZE / WSIZE

Post by Sparkss »

@Bolle

Glad it is working out better for you. As Q noted, the rsize adn wsize are set on the client, not the server, so nothing to change on the unfs side. Also as another item that Q noted, I am going from the 509 to our Dune, so your results will be different. In fact, your results should be better if you are going from another Linux based system (or at least one where you appear to be able to configure and specify your mount options). On the Dune I only have the option of UDP or TCP (which I of course choose UDP :)). I am not able to tweak the rsize, etc, which I feel would help to improve my speeds even more.

@Q

I am sorry that it isn't helping your speeds from your 209.

On a general note, NFS *should* always be faster than SMB since it carries none of the overhead that SMB does, for both the server and client. If using SMB to connect between two Linux systems it is even worse (since SMB is really a native Windows service/protocol). And yes, I am running GBit Ethernet here.

HTH :)
BOLLE
Starting out
Posts: 21
Joined: Fri Sep 25, 2009 9:12 pm

Re: RSIZE / WSIZE

Post by BOLLE »

ok now it works...it was a fault by me;)

Yes the client is a linux based Receiver....so Server an Client are based on Linux.
User avatar
Q
Experience counts
Posts: 1436
Joined: Wed Sep 05, 2007 4:18 pm
Location: Switzerland
Contact:

Re: RSIZE / WSIZE

Post by Q »

I am sorry that it isn't helping your speeds from your 209.
no need to be sorry, actually i don't really use it :mrgreen: just playing around for my knowledge and to help other people ^^ and you have been very helpful to get this running which will surely help many people, thx again :)
I am Q
www.qnap.ch

I don't work at QNAP.
And RAID is really NO backup!
Sparkss
Getting the hang of things
Posts: 99
Joined: Sat Sep 26, 2009 7:50 am

Re: RSIZE / WSIZE

Post by Sparkss »

I am glad that my sharing of experiences with our new QNAP have benefited others, and hopefully will continue to help others in the future :).

I still need to setup the autorun script though, so you are a step ahead of me on that one Bolle :).

On a parting, and totally unrelated note, I don't know if either of you use an eSATA or USB mounted external drive at all ? I like to have some good functionality for mounted drives as I use them often for moving data back and forth and even for short term hosting through our NFS "portal". There are several ipkgs that I find extremely useful. They are smartmontools and e2fsprogs. I also like cksfv for generating/validating checksums on transferred files, just to make sure they made it in one piece, but that is getting waay off topic :). The first two opkgs I listed provide the same functionality that the GUI does for accessing the data and functions you can find in the Volume Manager tab (IE: accessing SMART data, deleting and creating Volumes, formatting partitions, file system and surface scan checks, file system general information, etc. All with more flexibility than the GUI allows, I might add :). Anyways, just wanted to throw that out in case you weren't already aware of those, or were interested in the abilities that they provided since there are only a very few functions available through the admin web console for external drives (remove partition and format drive IIRC). I mention them becuase they tie in with NFS in our setup, so they more or less go hand in hand in my mind. :)
Post Reply

Return to “Linux & Unix (NFS)”