LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-16-2011, 01:26 PM   #1
k-gun12
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
NFS I/O slows client to a crawl


I've got two Ubuntu machines, an NFS server running Ubuntu 10.10 2.6.32-25 and a client running 10.04 2.6.32-24. The server is exporting a 12tb RAID-6 locally attached array (it's a Dell PE R515). It's got nfs-common and nfs-kernel-server 1.2.0-4 installed, along with portmap-6.0.0-1.

/etc/exports is thus:
/data/nfs xxx.xxx.xxx.xxx/26(rw,sync,no_root_squash,no_subtree_check)

fstab on the client is thus:
nfsserver:/data/nfs /mnt/nfs nfs rw,hard,intr 0 0

The mount works fine, but when copying data to/from the NFS share from the client, my shell just grinds to a halt. If I open a new window on the client and try to navigate directories on the nfs server and do something simple like an ls, it takes minutes to execute. I've got other nfs installs that work just fine. I tried switching to nfs4, with the same behavior. I've ruled out network problems (duplexing, etc).. ftp transfers are speedy.. even if the throughput was slow, my shell shouldn't hang like this so I'm tempted to blame software. If I copy more than 1 file concurrently, forget it- I might as well go get coffee.

Any ideas?

Other relevant info:

root:~# cat /etc/services |grep 111
sunrpc 111/tcp portmapper # RPC 4.0 portmapper
sunrpc 111/udp portmapper
kx 2111/tcp # X over Kerberos
root:~# cat /etc/services |grep 2049
nfs 2049/tcp # Network File System
nfs 2049/udp # Network File System
root:~# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 36732 status
100024 1 tcp 55080 status
100021 1 udp 43335 nlockmgr
100021 3 udp 43335 nlockmgr
100021 4 udp 43335 nlockmgr
100021 1 tcp 44712 nlockmgr
100021 3 tcp 44712 nlockmgr
100021 4 tcp 44712 nlockmgr
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 46312 mountd
100005 1 tcp 51940 mountd
100005 2 udp 46312 mountd
100005 2 tcp 51940 mountd
100005 3 udp 46312 mountd
100005 3 tcp 51940 mountd
 
Old 03-16-2011, 02:11 PM   #2
Omnicronos
Member
 
Registered: Oct 2010
Location: N. VA
Distribution: Redhat, CentOS, Solaris
Posts: 40

Rep: Reputation: 12
You could try adding rsize and wsize options in your NFS exports. The defaults might not be optimal for your data. You would need to experiment with the sizes to see if you notice a performance difference. Additional, you could take out the sync option, which would increase performance at the cost of data validation (which increases read/write overhead). Of course that is not advisable, if you are concerned about data corruption (not common, but still possible).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/sbin/udevd -d running many times over, slows system to a crawl Blackhawkckc Linux - Newbie 2 04-08-2010 11:53 PM
NFS Transfers Bring Everything to a Crawl... sancho Linux - Networking 0 04-12-2008 02:59 PM
dial up connection slows to a useless crawl itschaotic Fedora - Installation 5 03-16-2007 12:11 AM
suse 9.3 slows down to a crawl jf.vdbosch SUSE / openSUSE 5 03-22-2006 11:02 AM
Squid Problem? Slows to crawl requires reboot. butters Linux - Software 2 05-07-2005 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration