HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Maximum number of files under a directory
Operating System - HP-UX
1833189
Members
2535
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
11-27-2006 01:42 PM
11-27-2006 01:42 PM
Does anyone knows Maximum number of files under a directory? Any document mentioned about this . Thanks.
OS 11.11 and 11.23
OS 11.11 and 11.23
Hero
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 02:35 PM
11-27-2006 02:35 PM
Solution
For VxFS filesystems, there is no limit as long as there is disk space. The VxFS filesystem adds inodes as needed, so millions of files can be created.
That said, it is an unbelievably BAD idea to create even thousands of files in a single directory. The usual directory query tools such as ls and ll will be almost useless: a million files will take several minutes to list with ls, and pattern matching using * will almost ALWAYS report LINE TOO LONG. And using grep to find something in some of those millions of files will take 10's of minutes depending on the size of each file.
Whenever I see this type of a request, it is almost always a request to get around using a real database. Save yourself a lot of wasted effort and use a real database.
Bill Hassell, sysadmin
That said, it is an unbelievably BAD idea to create even thousands of files in a single directory. The usual directory query tools such as ls and ll will be almost useless: a million files will take several minutes to list with ls, and pattern matching using * will almost ALWAYS report LINE TOO LONG. And using grep to find something in some of those millions of files will take 10's of minutes depending on the size of each file.
Whenever I see this type of a request, it is almost always a request to get around using a real database. Save yourself a lot of wasted effort and use a real database.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 02:48 PM
11-27-2006 02:48 PM
Re: Maximum number of files under a directory
There is one more limit imposed upon vxfs filesystems unless largefiles are enabled. The underlying data structures within the filesystem cannot exceed 2GiB unless largefiles are enabled and that can limit the number of files before the actual filesystem space is actually exhausted. In any event, it's a state of the art stupid design that comtemplates the need for your question. While the filesystem can support millions of files in a directory, it's never a good idea.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2006 02:54 PM
11-27-2006 02:54 PM
Re: Maximum number of files under a directory
Thanks, I got it.
Hero
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP