The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cut too slow pukars4u Shell Programming and Scripting 3 05-11-2008 04:04 AM
scp is slow tomstone_98 UNIX for Dummies Questions & Answers 1 07-26-2007 06:33 AM
Slow FTP & SMB rockboles UNIX for Dummies Questions & Answers 4 12-11-2005 04:52 PM
CPU slow down Henrik UNIX for Dummies Questions & Answers 4 11-21-2002 02:26 AM
slow ftp suntan UNIX for Dummies Questions & Answers 3 07-16-2001 06:42 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-20-2004
Registered User
 

Join Date: Apr 2002
Location: Dallas, TX
Posts: 53
ls -l over NFS slow

I have an HP-UX server with a Network Appliance Filer attached over Gigabit Ethernet. I am noticing very slow response time when using "ls -l" on one directory on one of the several NFS mounted filesystems. The "ls" command by itself does not seem to be a problem. Typically I get a response within 30 seconds on this directory but sometimes it has taken as much as 12 minutes to respond!! There are less than 50 files in this directory and it is only nested a few directories deep. I have not noticed this with any directories in any of the other filesystems mounted in the same manner. All other directories will give me a file listing in less than 1 second. If I use the command twice in succession then the second time responds very quickly. I am assuming this is coming from cache.

I even tried mounting the same filesystem over NFS to another similar system and I do not experience this problem.

We do seem to be experiencing some sort of slow down in our database and I am not sure if it is related to this particular symptom or not.

I was not able to find anything on HP's knowledgebase nor Netapp's. Has anyone else experienced anything like this?
Forum Sponsor
  #2  
Old 01-20-2004
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
i have, though possibly not related to your problem.

i have a webserver which i run and have installed a perl module to stream mp3s. so all my mp3s are on my computer upstairs in my room. instead of moving everything, i set up an NFS export from my desktop computer. now, lazy person that i am i just dont feel like giving my desktop a static IP. when the lease on the ip from my router expires and i get a new, the NFS mount on the server goes stale.

when i try to do a directory listing inside the parent directory of the NFS mount, the shell locks up.

so have you checked to see if the NFS service is still running on the server-end ?

ps- my fix for the dynamic ip problem:

generally the ip address on my desktop only changes from 192.168.1.102 to 192.168.1.103 and back.

so, i have an NFS mount from BOTH ip address to the same place on the NFS client. i didnt know that would work and i actually dont know WHY that works...but it does
  #3  
Old 01-21-2004
jsilva's Avatar
Registered User
 

Join Date: Apr 2003
Posts: 169
Re: ls -l over NFS slow

Quote:
Originally posted by keelba
Has anyone else experienced anything like this?
Yes... there're many causes for slow NFS performance...
Are your nameservice working well on your client ? Can it resolve hostnames with no problem ? Are you using the hostname or the IP address to mount the share ? Try to use the IP address...
Are the machines on the same network ? Check for errors on both the server and the client... use a tool like tcpdump to check for NFS traffic...
  #4  
Old 01-21-2004
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,061
also check if the directory is automounted. This can slow things
down quite a bit the first time you access the directory.

- Finnbarr
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0