Re: files/directory limit?
From: Nicholas Dronen (ndronen_at_io.frii.com)
Date: 15 Sep 2003 23:24:22 GMT
Todd H. <firstname.lastname@example.org> wrote:
TH> Is there a limit on the number of files that can be in a directory in
TH> AIX? If so, what is it? For bonus points, if anyone can point to
TH> where they document such goodies, I'd be most appreciative.
Since a directory is just a file with a certain bit set in its inode,
and with directory names and inodes stored in it as a table, I believe
the only limit on the number of directory entries is the limit on the
side of a file. May be wrong.
The real downside to having lots and lots of files in a directory is
the long time it takes to find files. A directory in JFS is nothing
but a stream of name/inode records. In JFS2, it's a b-tree, which
makes look-ups much faster.
Whether you use JFS or JFS2, it's generally poor style not to partition
a large directory into a number of smaller subdirectories.
-- "Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html "Meanings are another story." http://www.ifas.org/wa/glossolalia.html