On Fri, Sep 25, 2009 at 09:17:50PM +0200, Harrell wrote:

> Hi list,
> 
> Is there any limit in the number of files that I can put in a directory?
> I know that the number of inodes is a limit for the whole file system, but I
> don't know if there's another limit for directories inside a file system.
> 
> Thanks in advance!
> 
> joakinen


There's no system imposed limit to the numebr of files in a dir, but
there is a limit to the number of subdirs in a dir, which is 32k,
including the . and .. link. 

For practical purposes, you do want to limit the number of files in a
dir, since things will slow than if you have too many. The limit
depends on the speed of your system and the usage pattern, but I'd
suggest to not put more than a couple of thousands files in a dir.

        -Otto

Reply via email to