The maximum number of files under a folder

Andreas Dilger adilger at
Thu Mar 13 18:26:31 UTC 2008

On Mar 13, 2008  13:23 -0400, Theodore Ts'o wrote:
> There is no limit to the number of files in a folder, except for the
> fact that the directory itself can't be bigger than 2GB, and the
> number of inodes that the entire filesystem has available to it.  Of
> course, if you don't have directory indexing turned on, you may not
> like the performance of doing directory lookups, but that's a
> different story.

There is also a limit in the current ext3 htree code to be only 2 levels
deep.  Along with the 2GB limit you hit problems around 15M files,
depending on the length of the filenames.

Cheers, Andreas
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

More information about the Ext3-users mailing list