the limitation for ext3 is 32k is the number of subdirectories in one directory proof
ext2 — the theoretical limit of 256k files in the directory.
in ext3 — it is possible to calculate almost razmatrali/8192 proof
and the idea spread across the subdirectories is IMHO correct, but not hash content,
but, for example if the index (which file in which path is) in the DBMS or a separate file, then you can smear on the content of the subdirectory count of files or the total size of the directory, round robin,
or even hash, but not the contents of the file and the file name.
he kept a log of gentechnik disfiles about 60tys files on ext3: of course the list of files in the directory took a lot of time, despite dir_index. but the choice was not: filipovica was on RHEL4, and there is nothing but ext3 is not supported.
on the other machine was able to build the module for xfs, moved the caching to it: the number has increased to 300 thousands of files flying General (particularly pleased with the shadow defragmentation and quick removing large files from ext3 with that ass, but sometimes the module fails)