- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Maximum No. of files per filesystem for best perfo...
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
03-03-2007 09:17 PM
03-03-2007 09:17 PM
I've filesystems with millions of small files, and we are having peformance issue. When I run ll command it takes forever.
Please let me know what is the max number of files per filesystem for best performance and will it help to distribute the files in different directories within the same filesystem.
Thanks
Has
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2007 10:04 PM
03-03-2007 10:04 PM
Re: Maximum No. of files per filesystem for best performance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 01:59 AM
03-04-2007 01:59 AM
Re: Maximum No. of files per filesystem for best performance
maximum. For _acceptable_ performance, a
higher number is normally allowed.
> [...] will it help to distribute the files
> in different directories [...?]
Are all the files in one directory now, or is
your slow "ll" recursive? Depending on what
you're doing, distributing the files into
(many) multiple directories can probably help.
If you have a program which creates this
mess, it should probably be re-designed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 04:07 AM
03-04-2007 04:07 AM
Re: Maximum No. of files per filesystem for best performance
1. Spread it across multiple directories
2. Better if you could put these files across different file systems and
3. Best solution would be to relook at the application that is creating these files.
I know that some manufacturig applications create embedded directories and files....in millions. If you are using backup like TSM for this, then it will be a miss. If you think that the time taken to backup is very long...then try restoring...the same :)
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 07:04 AM
03-04-2007 07:04 AM
Re: Maximum No. of files per filesystem for best performance
You may truly find that rewriting your application as a database is a far better answer but in any event, you need to divide your files into many smaller directories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 09:09 AM
03-04-2007 09:09 AM
SolutionBill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 03:14 PM
03-04-2007 03:14 PM
Re: Maximum No. of files per filesystem for best performance
Just curious... what OS are you running on this system and what filesystem type are you using? VxFS 3.5? 4.1?
Regards,
Dave
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
03-04-2007 04:25 PM
03-04-2007 04:25 PM
Re: Maximum No. of files per filesystem for best performance
I have HP-UX 11.23,
The operation I am doing on the files are: ls ,awk ,perl ,cat ,grep .. etc.
the number of files I have are 3000000 ,on 500 GB filesystem without directories.
What is your recommendation to have acceptable performance.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 04:33 PM
03-04-2007 04:33 PM
Re: Maximum No. of files per filesystem for best performance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 04:33 PM
03-04-2007 04:33 PM
Re: Maximum No. of files per filesystem for best performance
> acceptable performance.
Step 1. Define "acceptable performance".
Step 2. Try some things and see what happens.
Step 3. If satisfied, stop. Otherwise, go
to step 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2007 04:36 PM
03-04-2007 04:36 PM
Re: Maximum No. of files per filesystem for best performance
1. Redesign your application to put the 3M things into a database.
2. As a short term fix design a directory tree structure and put in a couple of hundred files per directory. You can set a script to list the directory and then measure 200, 300, 400, 500 per directory to see where the response time shows a marked increase, then back off 50 or 100 and that sets the max # files per directory for you.
3. Go back to #1. You will save yourself heartburn in the future.
Sorrel Jakins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2007 02:06 AM
03-05-2007 02:06 AM
Re: Maximum No. of files per filesystem for best performance
The reason I was asking about OS version and VxFS version is on 11.23 you have the option of upgrading to VxFS 5.0. VxFS 5.0 has some pretty significant performance enhancements for large directories. I've seen these performance benefits first hand in benchmarks.
For example, one benchmark that creates 40,000 files in a directory, stats them and deletes them, running on VxFS 3.5 took over one minute to complete. When the same test was run on the same system in a filesystem using VxFS 5.0 and disk layout 7 the test completed in under 10 seconds.
Bottom line, you can solve your problem in numerous ways, and there will always be recommendations for how many/few files to put in a single directory. But I wanted to let you know that VxFS 5.0 is strongly recommended by HP for use with large directories and you may find that upgrading your VxFS version and disk layout version might give you enough of a performance relief that you don't need to change your application.
Something to consider...
Dave
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
03-05-2007 10:39 PM
03-05-2007 10:39 PM
Re: Maximum No. of files per filesystem for best performance
From your second question the bottleneck is very evident and it would not be a surprise that you are having performance problems :)
-----------------------------------
The operation I am doing on the files are: ls ,awk ,perl ,cat ,grep .. etc.
the number of files I have are 3000000 ,on 500 GB filesystem without directories.
-----------------------------------------
For better performance, i would suggest that you change your operation/app/what ever you are using...and divide your total no. of files into say 10 directories....then you look at the performance...if you are not satisfied....then refine it further...
Basically..what i am suggesting is...create some directories say 10....and then have 300000 files in each of the directories...and look at the performance...if this doesn't satisfy...refine it further.
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2007 10:43 PM
03-05-2007 10:43 PM
Re: Maximum No. of files per filesystem for best performance
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2007 10:51 PM
03-05-2007 10:51 PM
Re: Maximum No. of files per filesystem for best performance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2007 10:52 PM
03-05-2007 10:52 PM