Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Oct 22 '09 at 6:43

This question came from our site for professional and enthusiast programmers.

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.

share|improve this answer
In redhat 5 using ext3 with the limit of ((32K - 2)) on centos 7 with ext3 I don't see this problem – c4f4t0r Sep 9 '15 at 13:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.