Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-09-2006, 04:34 AM   #1
Registered: Sep 2004
Posts: 223

Rep: Reputation: 30
how many files on a subdir ?


I have to place about 4000 files on a subdir of my domain (/documentation) .

I have centos with ext3 filesystem.

Talking about filesytem and IO performance, it's better to place all these 4000 files on /documentation , or it is better to place 250 files on
other 250 on
and so on ... ?

Thank you
Old 08-09-2006, 11:02 PM   #2
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Having 4K files in a single directory in an ext3 filesystem should not result in any performance issues. Technically, I believe that there are no hard limits as to how many files you can put into a single directory, but once you get to 5 digits (eg, >10,000 files) regardless of whether the computer can handle it not, the human cannot.

With 4000 files, you may want to break things up into alphabetical order, eg, A-G, H-M, N-S, T-Z. Not for the computer's sake, but to make it easier for your users
Old 08-09-2006, 11:18 PM   #3
Registered: Sep 2004
Posts: 223

Original Poster
Rep: Reputation: 30
ok thank you!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 11:42 AM
Why does sudo mkdir -m766 0/subdir deny? suguru Debian 1 11-08-2004 05:07 AM
deleting all *.m3u files in a directory+subdir? minm Linux - Newbie 5 10-12-2004 03:31 PM
How to change owner and group in a directory to include subdir and all files Lakota Linux - General 2 07-15-2004 09:35 AM
How to filter files in files and files which are in a sub-directory with "grep"? Piero Linux - Newbie 9 08-29-2003 02:38 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration