Solved

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

Posted on 2006-06-26
5
223 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Forward apache log to Syslog-NG 7 78
Apache server crashes randomly 38 109
Guacamole and browser performance 1 64
Internal wordpress pages 404 5 41
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now