files/directory limit?

Ask a Question related to AIX, Design and Development.

  1. #1

    Default files/directory limit?


    Is there a limit on the number of files that can be in a directory in
    AIX? If so, what is it? For bonus points, if anyone can point to
    where they document such goodies, I'd be most appreciative.

    --
    Todd H.
    [url]http://www.toddh.net/[/url]
    Todd H. Guest

  2. Similar Questions and Discussions

    1. limit editing to individual files
      Greetings, I have the home page and a few others at the site's root level, with other sections in their own folders. I want to limit the...
    2. listing a Directory files
      hello community i want to make a directory list i have pdf documents in a list 101_4326.pdf 101_4325.pdf 201_4324.pdf 201_4328.pdf but i only...
    3. limit directory size
      Hi, perhaps someone knows how to limit the size of a certain directory within a partition. On the certain partition disk qoutation is active for...
    4. limit web application access to local directory?
      I'm trying to convince a web systems administrator to install ASP.NET on his web server so I can host a dynamic departmental web site on it. Does...
    5. whats limit of include files ?
      Hi All Is there any limit to include files (<!--#include file="xyz.asp"-->). I have developed an application where I am including different...
  3. #2

    Default Re: files/directory limit?

    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?" [url]http://www.aglami.com/tpfaq.html[/url]
    "Meanings are another story." [url]http://www.ifas.org/wa/glossolalia.html[/url]
    Nicholas Dronen Guest

  4. #3

    Default Re: files/directory limit?

    Am 15 Sep 2003 23:24:22 GMT hat Nicholas Dronen <ndronen@io.frii.com>
    geschrieben:
    > 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
    >
    Generally spoken, I agree with Nicolas' statement regarding poor style, but
    sometimes that application is forcing us to use many files in a single
    directory. The problems start when using simple commands like ls *.nsf with
    the shell expanding *.nsf. Beyond a certain number of files, the input lis
    for ls will become too large. You need to work with e.g. find than.

    We are currently using directories with +2000 files.

    Regards,

    Jörg


    The Swordsman Guest

  5. #4

    Default Re: files/directory limit?

    The Swordsman <the_swordsman@web.de> writes:
    > Am 15 Sep 2003 23:24:22 GMT hat Nicholas Dronen <ndronen@io.frii.com>
    > geschrieben:
    >
    > > Todd H. <comphelp@toddh.net> wrote:
    > >
    > > TH> Is there a limit on the number of files that can be in a
    > > TH> directory in AIX? If so, what is it? For bonus points, if
    > > TH> anyone can point to where they document such goodies, I'd be
    > > TH> most appreciative.
    > >
    > > 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.
    >
    > Generally spoken, I agree with Nicolas' statement regarding poor
    > style, but sometimes that application is forcing us to use many files
    > in a single directory.
    Yes. That is the case that has me asking the question. :-)
    > We are currently using directories with +2000 files.
    That's helpful to know thanks!

    Best Regards,
    --
    Todd H.
    [url]http://www.toddh.net/[/url]
    Todd H. Guest

  6. #5

    Default Re: files/directory limit?

    Just an addition, you have to know that within a filesystem the number of
    inodes is limited (each file/directory use an inode), so you may run out
    of inodes if too much files are stored. But not worry you can tune the FS to
    add inodes as needed.

    "Todd H." <comphelp@toddh.net> a écrit dans le message de news:
    [email]m04qzcu4ae.fsf@rcn.com[/email]...
    > The Swordsman <the_swordsman@web.de> writes:
    > > Am 15 Sep 2003 23:24:22 GMT hat Nicholas Dronen <ndronen@io.frii.com>
    > > geschrieben:
    > >
    > > > Todd H. <comphelp@toddh.net> wrote:
    > > >
    > > > TH> Is there a limit on the number of files that can be in a
    > > > TH> directory in AIX? If so, what is it? For bonus points, if
    > > > TH> anyone can point to where they document such goodies, I'd be
    > > > TH> most appreciative.
    > > >
    > > > 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.
    > >
    > > Generally spoken, I agree with Nicolas' statement regarding poor
    > > style, but sometimes that application is forcing us to use many files
    > > in a single directory.
    >
    > Yes. That is the case that has me asking the question. :-)
    >
    > > We are currently using directories with +2000 files.
    >
    > That's helpful to know thanks!
    >
    > Best Regards,
    > --
    > Todd H.
    > [url]http://www.toddh.net/[/url]

    M. Bouherrou Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139