1

Now, I have any 20,000 files in single directory. How many maximum files per directory on CentOS 64bit ext3?

2 Answers2

6

The number of files in a directory is limited primarily by the maximum file size, divided by the size of a directory entry. As the maximum file size is in the terabytes range, there is no practical limit on a directory size. Depending on what ext3 features you use, performance may degenerate as the directory grows larger.

There is a limit of 32000 subdirectories.

Martin v. Löwis
  • 580
  • 4
  • 15
  • In redhat 5 using ext3 with the limit of ((32K - 2)) on centos 7 with ext3 I don't see this problem – c4f4t0r Sep 09 '15 at 13:01
2

https://stackoverflow.com/questions/466521/how-many-files-in-a-directory-is-too-many

Vladislav Rastrusny
  • 2,581
  • 12
  • 39
  • 56