GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Huge flat directories in HPUX 11i
Operating System - HP-UX
1850458
Members
3179
Online
104054
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
07-11-2003 01:59 AM
07-11-2003 01:59 AM
Huge flat directories in HPUX 11i
I understand that HP-UX has troubles with *really* *big* directories that containing 100,000 files which is limit by the maximum arguments size that the shell will handle.
I heard that there are some patches released that fixed this outrageous problem.
Does anyone know what these patches number for HPUX 11i and if it is effective in fixing the problem.
tyl
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 02:21 AM
07-11-2003 02:21 AM
Re: Huge flat directories in HPUX 11i
HPUX doesnt have a problem with really big directories. Its all a matter of tuning your filesystem if you do have really big dirs with a lot of files. There have been comments on this forum from customers with millions of files in a dir without problems.
Read these threads;
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe87a42308663d611abdb0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe87a42308663d611abdb0090277a778c,00.html
As long as you have the latest VXFS/JFS/LVM patches and take note of some tuning options as in the threads above you will be fine.
Read these threads;
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe87a42308663d611abdb0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe87a42308663d611abdb0090277a778c,00.html
As long as you have the latest VXFS/JFS/LVM patches and take note of some tuning options as in the threads above you will be fine.
Im from Palmerston North, New Zealand, but somehow ended up in London...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 03:54 AM
07-11-2003 03:54 AM
Re: Huge flat directories in HPUX 11i
Massive flat directories is a system design flaw, not an HP-UX problem. It's not an outrageous problem, it's a msunderstanding of how the shell works. For instance, consider these two commands:
ls
ls *
They seem to perform the same task, yet the first works just fine with millions of file names, but the second fails with an arg list too long message. The key is understanding what * means. It is NOT interpreted by the ls command! The shell sees the * and automatically translates * into the names of every visible file in the current directory and that is passed to the ls command. As you might expect, the resultant command line may be millions of characters long.
Now there was a patch to extend the maximum command line (known as ARG_MAX) from about 20,000 chars to over 2 million. One could argue that ARG_MAX should be billions, but the reality is that it is simply impractical to continue extending the maximum line length for a command. Besides, that's why the xargs command was created.
As every Unix system administrator has discovered, flat filesystems with thousands of files are a nightmare to manage and users must be taught how to work with this unusual configuration. Every task that requires looking at every filename (like ls and ll and find, etc) will take a long time to process, and most important: lots of directory (system) overhead which affects other programs on the system.
Bill Hassell, sysadmin
ls
ls *
They seem to perform the same task, yet the first works just fine with millions of file names, but the second fails with an arg list too long message. The key is understanding what * means. It is NOT interpreted by the ls command! The shell sees the * and automatically translates * into the names of every visible file in the current directory and that is passed to the ls command. As you might expect, the resultant command line may be millions of characters long.
Now there was a patch to extend the maximum command line (known as ARG_MAX) from about 20,000 chars to over 2 million. One could argue that ARG_MAX should be billions, but the reality is that it is simply impractical to continue extending the maximum line length for a command. Besides, that's why the xargs command was created.
As every Unix system administrator has discovered, flat filesystems with thousands of files are a nightmare to manage and users must be taught how to work with this unusual configuration. Every task that requires looking at every filename (like ls and ll and find, etc) will take a long time to process, and most important: lots of directory (system) overhead which affects other programs on the system.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 04:14 AM
07-11-2003 04:14 AM
Re: Huge flat directories in HPUX 11i
1) Keep up with any JFS/vxfs patches.
2) This is a management problem. There is a reason why there is a command mkdir. Its to make subdirectories. These huge directories should be reorganized in some logical way.
SEP
2) This is a management problem. There is a reason why there is a command mkdir. Its to make subdirectories. These huge directories should be reorganized in some logical way.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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 2026 Hewlett Packard Enterprise Development LP