Operating System - HP-UX
1827286 Members
3253 Online
109717 Solutions
New Discussion

Re: MAx size of a directory

 
SOLVED
Go to solution
PVR
Valued Contributor

MAx size of a directory

What is the maximum size of a directory in HP Unix and soalris ?

Which parameter is controlling the same?

Thanks in advance !!
Don't give up. Try till success...
5 REPLIES 5
Simon Hargrave
Honored Contributor
Solution

Re: MAx size of a directory

There is no limit to the number of files in any one particular subdirectory on a filesystem. The only limits are the number of inodes on the filesystem.

df -i will show inode usage.

the only thing to note is that if you have a single directory with many (thousands) of files in, you may see a slight performance hit.
G. Vrijhoeven
Honored Contributor

Re: MAx size of a directory

I think the limit is the limit in the number of inodes that can be created on a filesystem. Thus this depends on the filesytstem you use. On HPUX changes are this is VXFS and there is no limit in number of inodes.

For performance and surveyability it is not wise to have to many files in a dir.

HTH,

Gideon
Robert-Jan Goossens
Honored Contributor

Re: MAx size of a directory

Hi,

There are no limits beyond the filesystem size and max inode for a directory for both Solaris as HPUX.

Regards,
Robert-Jan
Simon Hargrave
Honored Contributor

Re: MAx size of a directory

Yes as has been said, on VxFS filesystems, inode count is, by default, unlimited.

It can however be explicitly limited at filesystem create time by passing the -o ninode=XXXX parameter to mkfs -F vxfs.
Franky_1
Respected Contributor

Re: MAx size of a directory

Hi,

normally the only limit is the amount of available i-nodes (show it with df -i). Otherwise there are no restrictions.

Regards

Franky
Don't worry be happy