LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

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


Hello

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
/documentation1
other 250 on
/documentation2
and so on ... ?


Thank you
Graziano
 
Old 08-09-2006, 11:02 PM   #2
J.W.
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
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Original Poster
Rep: Reputation: 30
ok thank you!
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:47 AM.

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