Take the 2-minute tour ×
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 stackoverflow.com 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

Your Answer

 
discard

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