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


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

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

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
Old 04-27-2009, 01:56 PM   #2
harry edwards
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
Hope this helps
Old 04-27-2009, 02:26 PM   #3
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
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

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


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

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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration