LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 04-27-2009, 01:46 PM   #1
andrew777
LQ Newbie
 
Registered: Feb 2009
Posts: 14

Rep: Reputation: 0
maximum files per directory for optimal access speed when having 13 million files


hello,
i have to upload 13 million html files for an application onto our linux server so that they can be accessed by our staff. i need to know what the optimal maximum number of files should be in a directory so as to ensure a reasonable response time when someone requests a particular file for viewing.
i will write a program to create multiple sub directories and store X number of files per directory so that the access speed is optimal, but what should the maximum number of files in each directory be before it gets too large and slows the system down... 2000, 20000, 200000????
any help would be appreciated
thankx
a
 
Old 04-27-2009, 01:56 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 47
Hope this helps http://episteme.arstechnica.com/eve/...m/199007643931
 
Old 04-27-2009, 02:26 PM   #3
andrew777
LQ Newbie
 
Registered: Feb 2009
Posts: 14

Original Poster
Rep: Reputation: 0
thanks for your reply harry, yes that helps.
 
Old 04-27-2009, 02:30 PM   #4
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
Quote:
Originally Posted by andrew777 View Post
maximum files per directory for optimal access speed when having 13 million files
Damn
 
  


Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of files in a directory neranjana General 14 05-13-2010 01:33 PM
Bash script to access all files in a directory shinni Programming 5 04-24-2009 03:46 PM
I need to change access to over 5000 files in the same directory cdom Linux - Newbie 3 08-29-2007 03:51 PM
Gaining access to directory files jacatone Linux - Newbie 7 04-25-2007 01:20 PM
Limit of maximum files/direstories per directory? sindri Linux - Software 3 11-14-2004 11:56 AM


All times are GMT -5. The time now is 05:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration