Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

2 Answers 2

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 at 13:01

Your Answer


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