Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
Need help troubleshooting nfs transfer speeds
Hello,
I have a machine setup as a fileserver running slackware 10 and kernel 2.4.31. Several of the directories on that server, such as my music collection and a directory of kennel club information, are mounted to points in my home directory on my slackware 11.0 desktop machine (kernel 2.6.18) using nfs.
Over the last several months while ripping CDs using grip, I have noticed that although the actual ripping part has gone pretty quickly, the encoding, which requires reading the ripped WAV file off the server and writing back an MP3 file, takes a long time. (Ripping and encoding a CD recently took over eight hours. Subjectively, it also seems that the more CDs I rip, the longer each subsequent CD takes, but I can't prove that. Could just be a sign of my growing frustration.) This last Friday, I sent off an email with a 3.9MB attachment that was stored in one of these nfs-mounted directories. It took over 25 minutes for the file to transfer and the email to be sent.
So, I tested the transfer times, and here is the command I used and the results:
bash-3.2$ time dd if=/dev/zero of=HSV/transfertest bs=16k count=8k && time dd if=HSV/transfertest of=HSV_transfertest bs=16k
8192+0 records in
8192+0 records out
134217728 bytes (134 MB) copied, 1908.7 seconds, 70.3 kB/s
real 31m49.268s
user 0m0.004s
sys 0m0.392s
8192+0 records in
8192+0 records out
134217728 bytes (134 MB) copied, 23659.7 seconds, 5.7 kB/s
real 394m20.464s
user 0m0.016s
sys 0m1.264s
(HSV is my home directory mount point for depot:/srvr/hsv. I was in my home directory at the time, so HSV_transfertest was written to a local, non-nfs mounted directory.)
The network connection is running at 100Mb/s, as shown by `ethtool eth0` run on both machines:
On the desktop machine:
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000001 (1)
Link detected: yes
On the server:
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pumbg
Wake-on: p
Current message level: 0x00000007 (7)
Link detected: yes
I ran tcpdump during the most recent test, and the output looks like this during the transfer from the fileserver (depot) to the desktop (trooper):
19:09:24.989946 IP depot.nuthole.de.nfs > trooper.nuthole.de.413269765: reply ok 1472 read
19:09:24.990003 IP trooper.nuthole.de.430046981 > depot.nuthole.de.nfs: 124 read [|nfs]
19:09:24.990044 IP trooper.nuthole.de.295829253 > depot.nuthole.de.nfs: 124 read [|nfs]
19:09:24.990430 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.990600 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.990738 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.990866 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.990995 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.991124 IP depot.nuthole.de.nfs > trooper.nuthole.de.295829253: reply ok 1472 read
19:09:24.991165 IP trooper.nuthole.de.362938117 > depot.nuthole.de.nfs: 124 read [|nfs]
19:09:24.991200 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.991208 IP trooper.nuthole.de.446824197 > depot.nuthole.de.nfs: 124 read [|nfs]
19:09:24.991329 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.991992 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.992146 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.992276 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.992405 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.992534 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.992661 IP depot.nuthole.de.nfs > trooper.nuthole.de.362938117: reply ok 1472 read
19:09:24.992721 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.992773 IP trooper.nuthole.de.463601413 > depot.nuthole.de.nfs: 124 read [|nfs]
19:09:24.992866 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.992994 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.993829 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.993994 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.994123 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.994252 IP depot.nuthole.de > trooper.nuthole.de: udp
19:09:24.994380 IP depot.nuthole.de > trooper.nuthole.de: udp
There is also a lot of ARP requesting going on, or at least it seems so to me:
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Original Poster
Rep:
The mount settings on the client as show by mount are:
depot:/srvr/music on /home/tschulze/music type nfs (rw,sync,rsize=16384,wsize=16384,intr,addr=192.168.1.13,addr=192.168.1.13)
depot:/srvr/hsv on /home/tschulze/HSV type nfs (rw,addr=192.168.1.13,addr=192.168.1.13)
To see if the rsize and wsize settings have any effect, I am running the same command again, except I am using the directory mounted to depot:/srvr/music. I'll let you know the result.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.