LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 05-08-2007, 02:57 PM   #1
m27315
LQ Newbie
 
Registered: May 2007
Location: IRQ 16
Distribution: Gentoo
Posts: 4

Rep: Reputation: 0
troubleshooting slow NFS (or network) performance


Hi,

As background, I have a CentOS 5 workstation accessing data on an NFS server in a different internal domain (VLAN?) with traffic passing through multiple firewalls, and the "disk" access is painful. One job is taking 4x longer, just because the data is on the NFS server instead of local disk.

However, we have other CentOS 4 workstations that are in a different domain, and they do not show the same slowdown.

So, I am thinking the problem is either the firewall latency, slow switch for my internal domain, bad match between ethernet driver and local hardware that's too new, or bad NFS client configuration.

My question is, "How would you troubleshoot this networking problem and converge on the problematic link?"

Thanks!
 
Old 05-08-2007, 05:00 PM   #2
rahulk
Member
 
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
NFS uses the RPC daemon and is not reliable over the busy network. It has the tendency of getting hanged up and is pretty slow. Try to use samba instead. Export the same share through samba and check if the performance improves.

I have had issues with NFS over WAN and hence have replaced all the NFS mounts to Samba. However, NFS works nicely on LAN. Try increasing the rsize and wsize options for NFS and also the timeout value.

Hope this helps!!
Rahul Khare
 
Old 05-08-2007, 06:44 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
I cannot remember it quite clearly, but something was said that NFS works better in congestion if one uses Udp instead of Tcp. Something about tcp getting hung up on retransmissions. Sorry I could not be clearer.

Hope it helps

Lazlow
 
Old 05-09-2007, 12:08 AM   #4
rahulk
Member
 
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
Quote:
Originally Posted by lazlow
I cannot remember it quite clearly, but something was said that NFS works better in congestion if one uses Udp instead of Tcp. Something about tcp getting hung up on retransmissions. Sorry I could not be clearer.

Hope it helps

Lazlow
Even with UDP I have faced issues. The problem lies with portmapper which is used to assign ports for NFS data transfer dynamically. You can try udp instead but I dont think it would rectify the issue.

Rahul Khare
 
Old 05-09-2007, 12:41 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
I have NFS locked down to specific ports. Part of FC5 NFS setup. I could not get selinux,iptables and NFS happy any other way

Last edited by lazlow; 05-09-2007 at 12:43 AM.
 
  


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
Slow performance!!! System using a lot of Physical Memory SLOW HELP! badgerbox76 Linux - Newbie 31 07-19-2007 11:23 AM
dump file locking state for troubleshooting NFS/SMB ahz10 Linux - Networking 0 01-05-2007 04:31 PM
Help troubleshooting ICH6M and poor drive performance Timshel Linux - Hardware 1 02-09-2006 10:31 PM
troubleshooting NFS following minimal install - pls help James007Bond Debian 17 08-13-2005 01:45 AM
troubleshooting nfs/can't ping local while firewall enabled toastermaker Linux - Newbie 18 11-28-2003 11:34 PM


All times are GMT -5. The time now is 10:35 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration