Max number of files per folder

Discussion in 'Site & Server Administration' started by deriklogov, Aug 22, 2009.

  1. #1
    What would be the max number of files per folder in Centos ? without loosing performance. I got a site with 100,000 files per 1 folder, and I am thinking to divide that folder in couple small ones, does it speed up processes a lot ?
     
    deriklogov, Aug 22, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    It doesnt affect performance a lot but its better to have separate folders. You may only problems if you are listing all the folders together . Also are u on 32 bit or 64 bit and whats the ram all that also plays a role
     
    Bohra, Aug 22, 2009 IP
  3. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,078
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #3
    it is 64bit OS with 8Gig Ram
     
    deriklogov, Aug 22, 2009 IP
  4. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #4
    You shouldnt face any big issues then
     
    Bohra, Aug 22, 2009 IP
  5. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #5
    The only issue is, they may face problem if they do directory listing via FTP.
     
    kailash, Aug 23, 2009 IP
  6. bulkemailpp

    bulkemailpp Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Max number of files per folder depends on used file system, not the operating system. ReiserFS is the best choice for quick work with thousands small files.
     
    bulkemailpp, Aug 24, 2009 IP
  7. awesometbn

    awesometbn Peon

    Messages:
    268
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Did you find an answer? Maybe ask the CentOS discussion forums and reply back with some specific details for 64-bit systems. To your point about performance, check out hxxp://linuxgazette.net/122/TWDT.html#piszcz for some benchmarking tests for filesystems.

    After a quick and meaningless search I found a similar question asked over at SitePoint in 2007, hxxp://www.sitepoint.com/forums/showthread.php?t=481257

    Here is an excerpt of an updated response in 2009,
     
    awesometbn, Aug 31, 2009 IP