Re:A faster way to delete millions of files in a directory
by protomyth on Saturday June 01, 2013 @12:22PM
(#5804586)
As I remember it, HP-UX had some very poor performance characteristics once a single directory started to get into the thousands of files. It slow down for all read / write operations in that directory. We are talking multiple seconds to read a small 1K file much less write.
Re:A faster way to delete millions of files in a directory
by justincormack on Saturday June 01, 2013 @05:48AM
(#5803398)
This has got much better over time. A filesystem should be a database (for larger blobs of data) so it should work, but scalability is limited still. Newer fs may be better.
BTW, having millions of files in an ext3 directory in the first place is probably a bad idea. Instead, layer the files into two or three directory levels. See here:
http://www.redhat.com/archives/ext3-users/2007-August/msg000...
(Git for example places its objects under 1 of 256 directories based on the first hex byte representation of the object's SHA-1.)