Gentoo Forums
Gentoo Forums
Quick Search: in
Slowing transfer speed for copying files to a NFS share.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hardtarget
n00b
n00b


Joined: 05 Jan 2008
Posts: 15
Location: Seattle, WA

PostPosted: Thu May 08, 2008 12:31 am    Post subject: Slowing transfer speed for copying files to a NFS share. Reply with quote

Hello,

First a little history. I have a NFS server (Dual Pentium 3, 1.5GB RAM, 1 x Intel Gigabit NIC) connected to another file server (Dual 2.8Ghz Xeon, 1GB RAM, 2 x Intel Gigabit NICs) via a crossover cable, with Jumbo Frames enabled (MTU 9000). The other NIC in the file server is connected to a 100Mb Switch, standard MTU. The Xeon fileserver is Gentoo, and the NFS server is FreeBSD 6.2.

NFS Server Exported Share = /mnt/shared
File Server NFS Mounted Share = /home/shared

When I SCP a file from a desktop machine (also running Gentoo, and connected to the same switch as the file server) to /home/shared on the file server, I get an initial speed of ~10MB/sec, but it then quickly (within about 10-15 seconds) steadily drops off to 8MB, 6MB, 4MB, 2MB, 600KB, and then eventually stalls. The actual mounted directory (/home/shared) stays "alive", and I can repro this every time I SCP (or even FTP) a file to the NFS mounted directory (/home/shared) on the file server. If I change the MTU from 9000 to 1500 on both ends of the links between the NFS server and file server, I see no difference in behaviour.

The Xeon File Server is using the following options to mount the remote NFS share:
rw,nfsvers=3,rsize=8192,wsize=8192,timeo=14,intr,async,hard

Has anybody seen anything like this before? I would greatly appreciate any assistance. I've done several tcpdumps and don't see any excessive packet fragmentation happening, specific network slowdowns (or anything else that looks abnormal) on the 100MB or 1GB links.
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 943
Location: Bash$

PostPosted: Thu May 08, 2008 4:59 am    Post subject: Reply with quote

Hmm. Puzzling. Have you made sure the drop-off is not actually abrupt? If you cut the link somehow, most transfer apps will show a slowly decreasing transfer speed, just because they do a regular averaging calculation.

Also strange that it happens in both scp and ftp. Can you copy a big file to /home/shared from e.g. a CD? It could be a problem with all writing to that partition.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
hardtarget
n00b
n00b


Joined: 05 Jan 2008
Posts: 15
Location: Seattle, WA

PostPosted: Thu May 08, 2008 5:37 am    Post subject: Reply with quote

Cuber wrote:
Can you copy a big file to /home/shared from e.g. a CD? It could be a problem with all writing to that partition.


Thanks for the reply. I've tried a local copy on the File Server (just using "cp /path/to/bigfile.tgz /home/shared/"), and that works fine. It's only when SCP'ing or FTP'ing (or any other type of network transfer) to the file server's mounted NFS share that the problem happens.

I don't think it's anything hardware related either, since I can copy via SCP or FTP to another account on the file server, as long as it isn't to /home/shared.
Back to top
View user's profile Send private message
hardtarget
n00b
n00b


Joined: 05 Jan 2008
Posts: 15
Location: Seattle, WA

PostPosted: Thu May 08, 2008 11:31 pm    Post subject: Reply with quote

hardtarget wrote:
I've tried a local copy on the File Server (just using "cp /path/to/bigfile.tgz /home/shared/"), and that works fine.


I retract that statement above. I did some additional testing, and noticed even with a "cp /path/to/bigfile.tgz /home/shared/", I am getting at most ~15Mb across the gigabit link. To me, that sounds entirely too slow. Does anybody know some common tunables I can try to help improve the performance?
Back to top
View user's profile Send private message
hardtarget
n00b
n00b


Joined: 05 Jan 2008
Posts: 15
Location: Seattle, WA

PostPosted: Sun May 11, 2008 1:23 am    Post subject: Reply with quote

*bump*

Sorry to bump this thread again, but I am at a loss here. Any NFS gurus out there willing to assist?
Back to top
View user's profile Send private message
SeaTiger
l33t
l33t


Joined: 22 Nov 2007
Posts: 603
Location: Toronto, Ontario, Canada

PostPosted: Tue May 13, 2008 12:43 am    Post subject: Reply with quote

try
Code:
rw,nfsvers=3,rsize=32768,wsize=32768,timeo=14,intr,async,hard

Did you test copying from fileserver (instead of from a desktop machine) into the share folder? Problem may be between fileserver and nfs server link.
Back to top
View user's profile Send private message
hardtarget
n00b
n00b


Joined: 05 Jan 2008
Posts: 15
Location: Seattle, WA

PostPosted: Tue May 13, 2008 3:57 pm    Post subject: Reply with quote

For those that are interested, I was able to resolve this by increasing (by 10 times) the number of NFSd servers that get started on the NFS Server. It's now @ 40 NFS servers, and I can run about 75Mb consistently between the Linux fileserver and the NFS server, with spikes to 120-130Mb.

My /etc/fstab looks like this for my NFS mounts on the Linux fileserver:
Code:
10.99.18.254:/mnt/vmware  /home/vmware    nfs          rw,nfsvers=3,rsize=32768,wsize=32768,timeo=10,intr,hard,udp,async            0    0
10.99.18.254:/mnt/shared  /home/shared    nfs          rw,nfsvers=3,rsize=32768,wsize=32768,timeo=10,intr,hard,udp,async            0    0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum