Re: Max no of files in a directory



On 2008-05-30, Dances With Crows <danceswithcrows@xxxxxxx> wrote:
Smeeta staggered into the Black Sun and said:
I want to find out the max number of files possible in a directory.

On which filesystem? If ReiserFS, which hash is being used? The
answers to these questions will determine the answer to your question.

doesn't seem to be the number in /proc/sys/fs/file-max coz I've been
able to create [more] files than that.

file-max is the maximum number of file handles that the kernel will
allocate at one time, not the number of files you can have in one
directory.

At some point in history (several years ago), I ran into
problems when there were more than 4096 files in a directory on
an EXT2 system. But, IIRC the problem was in certain
application-space libraries not with the actual filesystem.

--
Grant Edwards grante Yow! I'm having a
at tax-deductible experience!
visi.com I need an energy crunch!!
.



Relevant Pages

  • Re: Max no of files in a directory
    ... Smeeta staggered into the Black Sun and said: ... On which filesystem? ... If ReiserFS, which hash is being used? ...
    (comp.os.linux.misc)
  • Re: Max no of files in a directory
    ... On May 30, 10:35 pm, Dances With Crows ... On which filesystem? ... If ReiserFS, which hash is being used? ...
    (comp.os.linux.misc)
  • Re: If not readdir() then what?
    ... Unfortunately, in the NFS case if there are hash collisions, under the ... I think that can be easily avoided by the filesystem by simply ... limited size cookie as a fundamental part of their protocol.... ... I wasn't suggesting that ext3 use internal chaining. ...
    (Linux-Kernel)
  • Re: UTF-8 and case-insensitivity
    ... characters have a upper/lower mapping. ... the filesystem makes sense. ... use a filesystem provided case-insensitive hash in the dcache. ...
    (Linux-Kernel)
  • Re: If not readdir() then what?
    ... I could argue that nfs came before ext3+dirindex, ... I have a non-ext3 filesystem I care about too..... ... Each bit going from hash strength to collision chain length ...
    (Linux-Kernel)