Solved

If I put 50,000,000 html files in the root dir,what will happen?

Posted on 2006-06-26
5
225 Views
Last Modified: 2010-08-05
what can happen?
1,The apache will be very slowly.
2,the apache can't work.
3,the apache will work normal.
 thanks.
   
0
Comment
Question by:ymq8328
  • 2
  • 2
5 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 16983058
all depends on which os you are, how they handle that many files. as Apache will only request the file from the OS, the answer has to asked to the OS guys.
I would guess 1)
0
 

Author Comment

by:ymq8328
ID: 16983117
Using red hat linux.
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 16983147
Putting this many fiiles in directory makes it slow in file searching.
Listing directory would be sluggish
Accessing file should work in logaritm shorter time.

Using reiserfs over the ext3 would speed it up - confirmed.
0
 

Author Comment

by:ymq8328
ID: 16983222
what is the most  acceptable file number when using linux and ext3.(I need to access them fast ,at the same time I need put more files in the apache root dir.)
1,000?
10,000?
100,000?
0
 
LVL 43

Accepted Solution

by:
ravenpl earned 100 total points
ID: 16983281
Unfortunatelly it depends on Your RAM(cache) and CPU(especially in case of sorting) and disks speed.
Just do the tests, but I would put the limit somewhere about 10K.
Try creating many files in same dir, check the number where You think the delay is too big.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question