Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

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

what can happen?
1,The apache will be very slowly.
2,the apache can't work.
3,the apache will work normal.
 thanks.
   
0
ymq8328
Asked:
ymq8328
  • 2
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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
 
ymq8328Author Commented:
Using red hat linux.
0
 
ravenplCommented:
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
 
ymq8328Author Commented:
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
 
ravenplCommented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now