File transfer by NFS very slow in Slackware client
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The desktop/server has an ext3 drive and 2GB RAM. It is connected directly to a BT homehub router
The laptop has ext3, 1GB RAM connects to the HomeHub by wireless
The Asus has an ext2 flash drive, 500MB and connects by wireless
I have the same issue, so I'm definitely interested in your results.
BTW, I have a Ralink chip on the laptop to connect to the wifi router. Just to see if it could be similar to your settings.
I should add, if I had not made it clear that wireless access to the Internet from the laptop is not slow. I will try and get some proper figures when I have the opportunity. The situation is that with the laptop it is much quicker downloading a file off the Internet than it is downloading a file from my desktop/server. For the Asus downloading from either the Intenet or my desktop is fast.
Also this could depend on hard drive speeds. Most laptops are equipped with a 5400 RPM drive, the Asus Flash Drive could be that much faster to write, etc.
Also I see faster responses when I have DNS with proper resolution setup. You could add each host in your setup to each /etc/hosts with IP address to see if that resolves faster access and file transfer times.
I find it difficult to understand why hard drive speeds should make a difference.
I have just tried downloading a 7Mb file from the Internet to my laptop. That took 15 seconds. Downloading the same file from my desktop took 3 minutes 15 seconds.
If you are using NFS over UDP, read and write sizes have a significant impact, as lossy links will cause retransmissions of very large packets. For anyone wanting maximum performance from NFS, learning to use the various diagnostic tools is critical, as are comprehensive benchmarks with various permutations of NFS parameters.
It seems that tdos20 had it right. The same transfer takes 5 seconds with rsize=2048,wsize=2048.
Thanks
I don't know how you transferred that file, but for instance, if you
rsynced it (why would you transfer files any other way?) to and from the
same location, then that 5 second speed might be erroneous. An example:
Code:
eduardo@darkstar:~$ mount -t nfs
192.168.1.11:/backup2 on /server2 type nfs (rw,rsize=8192,wsize=8192,hard,intr,addr=192.168.1.11,nfsvers=3,proto=udp)
eduardo@darkstar:~$ cat /etc/fstab | grep server2
192.168.1.11:/backup2 /server2 nfs auto,rsize=8192,wsize=8192,hard,intr 0 0
eduardo@darkstar:~$ /sbin/iwconfig ath0
ath0 IEEE 802.11g ESSID:"philemon" Nickname:""
Mode:Managed Frequency:2.457 GHz Access Point: <munged>
Bit Rate:24 Mb/s Tx-Power:20 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=58/70 Signal level=-32 dBm Noise level=-90 dBm
Rx invalid nwid:4 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eduardo@darkstar:~$ rsync -va --progress /server2/kernel_source/linux-2.6.25.10.tar.bz2 .
sending incremental file list
linux-2.6.25.10.tar.bz2
48614990 100% 1.48MB/s 0:00:31 (xfer#1, to-check=0/1)
sent 48621030 bytes received 31 bytes 1543525.75 bytes/sec
total size is 48614990 speedup is 1.00
eduardo@darkstar:~$ rm linux-2.6.25.10.tar.bz2
eduardo@darkstar:~$ rsync -va --progress /server2/kernel_source/linux-2.6.25.10.tar.bz2 .
sending incremental file list
linux-2.6.25.10.tar.bz2
48614990 100% 31.24MB/s 0:00:01 (xfer#1, to-check=0/1)
sent 48621030 bytes received 31 bytes 19448424.40 bytes/sec
total size is 48614990 speedup is 1.00
I don't know why, but I do know that "rm" obviously leaves something cached.
Perhaps your results are from different tests and improved by changing mount
parameters, then unmounting and remounting your NFS share. I hope so.
Also, all wireless connections are not created equal. The laptop darkstar with user
eduardo is 50cm from the router. On the other hand, the laptop titus is in another
room, 6 meters from the router. And it's results:
Code:
mingdao@titus:~/kernel$ mount -t nfs
192.168.1.11:/backup2 on /server2 type nfs (rw,rsize=8192,wsize=8192,hard,intr,addr=192.168.1.11)
mingdao@titus:~/kernel$ cat /etc/fstab | grep server2
192.168.1.11:/backup2 /server2 nfs auto,rsize=8192,wsize=8192,hard,intr 0 0
mingdao@titus:~/kernel$ /sbin/iwconfig ath0
ath0 IEEE 802.11g ESSID:"philemon" Nickname:"titus"
Mode:Managed Frequency:2.457 GHz Access Point: <munged>
Bit Rate:36 Mb/s Tx-Power:16 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=39/70 Signal level=-57 dBm Noise level=-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
mingdao@titus:~/kernel$ rsync -va --progress /server2/kernel_source/linux-2.6.25.10.tar.bz2 .
sending incremental file list
linux-2.6.25.10.tar.bz2
48614990 100% 2.21MB/s 0:00:20 (xfer#1, to-check=0/1)
sent 48621030 bytes received 31 bytes 2261444.70 bytes/sec
total size is 48614990 speedup is 1.00
mingdao@titus:~/kernel$ rm linux-2.6.25.10.tar.bz2
mingdao@titus:~/kernel$ rsync -va --progress /server2/kernel_source/linux-2.6.25.10.tar.bz2 .
sending incremental file list
linux-2.6.25.10.tar.bz2
48614990 100% 19.04MB/s 0:00:02 (xfer#1, to-check=0/1)
sent 48621030 bytes received 31 bytes 19448424.40 bytes/sec
total size is 48614990 speedup is 1.00
Perhaps someone more knowledgeable, such as Mr. C., will address this.
I do see that darkstar is at 24Mb/s; titus at 36Mb/s -- atm I'm testing wicd on
darkstar, so there are no special parameters in /etc/rc.d/rc.inet1.conf.
In fact, afaict wicd is not yet ready for use by those who cannot edit
/etc/rc.d/rc.inet1.conf for particular APs. At least wicd does not work as
efficiently as the similar software used by Windows XP.
From reading some more about NFS, and optimizing settings, it seems that the
2.4.31 kernel on my server should be updated to 2.6.x.y.
Use a more reliable set of tests to benchmark file transfers. Use iozone, bonnie, or bonnie++, a set of tests that are designed to defeat buffer cache issues.
Here's a good paper which discusses NFS performance and measurements.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.