- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Nfs Slow
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 03:04 AM
08-10-2010 03:04 AM
This is a scenario:
Server nfs with 350Gb file system exported to clients. This file system contains 550000 file of 1kb anyone.Nfs work fine also that
The problem is from ll from the client. If i do "ll command" in the nfs imported file system from the client it work in 9 minutes.
How Can i improve nfs performance for the "ll" from the client?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 04:00 AM
08-10-2010 04:00 AM
SolutionYou might want to look at Dave's replies about READDIR:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1376095
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1081327
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 04:06 AM
08-10-2010 04:06 AM
Re: Nfs Slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 05:11 AM
08-10-2010 05:11 AM
Re: Nfs Slow
"Doctor, it hurts when I do this."
"Don't do that."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 05:29 AM
08-10-2010 05:29 AM
Re: Nfs Slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 05:53 AM
08-10-2010 05:53 AM
Re: Nfs Slow
Physician, heal thyself.
Keeping many thousands of files in one
directory is simply asking for poor
performance (for many different OS and
file-system combinations).
There may be some directory cache parameters
which you could adjust in the NFS client or
server (about which I know nothing), but I'd
expect that a real solution to this problem
would involve re-designing your data storage
architecture to avoid having so many files in
one directory.
A few bad decisions can overcome a great deal
of computing power.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 07:23 AM
08-10-2010 07:23 AM
Re: Nfs Slow
eh eh !! :-)
i have find this scenario from my customer.
I agree with you but i must improve the performance.
Help me
I tested the server file system and
the ll in server is very slow:
time ll
real 7:50.1
user 19.1
sys 1:22.9
I think that a problem is the file system and not nfs !!
any idea ?!!?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 10:07 AM
08-10-2010 10:07 AM
Re: Nfs Slow
> the ll in server is very slow:
> [...]
Do you find this amazing? (I don't.)
> Keeping many thousands of files in one
> directory is simply asking for poor
> performance (for many different OS and
> file-system combinations).
I believe that that's still true.
> I think that a problem is the file system
> and not nfs !!
> any idea ?!!?
Only the same idea: "Don't do that."
> i have find this scenario from my customer.
Advise _him_ not to do that.
You're not the first person to observe this
effect. A Forum search for keywords like,
say:
many files directory slow
might find threads like these:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1331134
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1120029
[...]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 03:14 PM
08-10-2010 03:14 PM
Re: Nfs Slow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 09:03 PM
08-10-2010 09:03 PM
Re: Nfs Slow
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 12:31 AM
08-11-2010 12:31 AM
Re: Nfs Slow
In my nfs Server :
In my nfs Client :
The problem could be a file system exported from a Server and not NFS?
The file system in the nfs server are degraded from export or no ?
I still check READDIR and READDIR+?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 01:18 AM
08-11-2010 01:18 AM
Re: Nfs Slow
last test on my server :
time ll|wc -l
real 6:39.5
user 18.6
sys 1:18.7
522511
last test from my client :
time ll|wc -l
real 13:17.6
user 18.6
sys 38.5
522487
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 01:39 AM
08-11-2010 01:39 AM
Re: Nfs Slow
The problem is caused by collecting all info on the files and translating things like userid's and groupid's to the end-user-readable form with usernames and group names.
You might try something like 'ls -nl' to see if it's faster. If that is faster, tools like pwgr and nscd might help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 02:30 AM
08-11-2010 02:30 AM
Re: Nfs Slow
but :-( same result :
from a server
ls -nl|wc -l
real 6:32.2
user 18.1
sys 1:18.9
522709
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 03:24 AM
08-11-2010 03:24 AM
Re: Nfs Slow
But with 522000 files being questioned within 400 seconds, with date-conversion and all, your system isn't as slow as you suspect...
If you calculate the time per directory entry, it is comparable with the times I need on a local filesystem per file...
The only difference is the caching on local filesystems: when running the same time ll command again, the directory information is cached, resulting in a really quick response. Since NFS is not really cachable, that doesn't work. You might look at the ac* mount options, but I don't think they really help with this number of files.
If you really need it faster, and the storage is only used on this server, you might think about using different protocols for accessing the data, for instance iSCSI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 03:55 AM
08-11-2010 03:55 AM
Re: Nfs Slow
1. DON'T use ll. Instead, create your own hash table or file index and look at the index to find the matches. Convenient? Probably not, but this is a side effect of a bad design.
2. Change your network to 10 Gbit links, switches and routers. Also, change the storage for the 550k files to a RAMdisk appliance. And if necessary, upgrade your computer to more and faster processors.
Either of these should improve performance. Did I mention that these choices are the result of a bad directory design?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010 03:59 AM
08-11-2010 03:59 AM
Re: Nfs Slow
SERVER
real 5:44.8
user 18.1
sys 1:14.9
521782
CLIENT
real 7:50.1
user 19.1
sys 1:22.9
uhhmm ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 07:36 AM
11-09-2017 07:36 AM
Re: Nfs Slow
Hello Bill,
What would be a good directory design?
I'm facing a situation at customer site, where thousands of files in several directories.
Can you please advice me about NFS directory tree design for better performance.
Thank you.