Re: files/directory limit?

From: Nicholas Dronen (ndronen_at_io.frii.com)
Date: 09/16/03


Date: 15 Sep 2003 23:24:22 GMT

Todd H. <comphelp@toddh.net> 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.

Regards,

Nicholas

-- 
"Why shouldn't I top-post?"    http://www.aglami.com/tpfaq.html
"Meanings are another story."  http://www.ifas.org/wa/glossolalia.html


Relevant Pages

  • Re: Converting JFS to JFS2
    ... So IBM must be supporting it on AIX 6.1 now. ... Subject: Converting JFS to JFS2 ...
    (AIX-L)
  • Re: rootvg and AIX V6 - JFS or JFS2
    ... The last time I did a fresh install of 5.3 on a p5, it defaulted to jfs2 ... for all rootvg filesystems. ... rootvg and AIX V6 - JFS or JFS2 ...
    (AIX-L)
  • AIX JFS question
    ... I have seen quite a few procedures in the AIX world where it still calls for running the fsck command on JFS and JFS2 filesystems in AIX. ...
    (AIX-L)
  • Re: rootvg and AIX V6 - JFS or JFS2
    ... You can shrink filesystems just fine in AIX 5.3. ... rootvg and AIX V6 - JFS or JFS2 ... rootvg and AIX V6 - JFS or JFS2 ...
    (AIX-L)
  • Re: difference in lsfs and lsvg
    ... 0xF10000E30AC3B958 is not a valid JFS2 xnode address. ... Address not in jfs inode cache: ... difference in lsfs and lsvg ... jfslog, not a jfs2log and any/all filesystems using it as a log are really jfs, ...
    (AIX-L)