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 ?
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
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.
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,