Re: [Ocfs2-users] ls taking ages on a directory containing 900000 files

2012-12-04 Thread Sunil Mushran
strace -p PID -ttt -T Attach and get some timings. The simplest guess is that the system lacks memory to cache all the inodes and thus has to hit disk (and more importantly take cluster locks) for the same inode repeatedly. The user guide has a section in NOTES explaining this. On Tue, Dec 4,

Re: [Ocfs2-users] ls taking ages on a directory containing 900000 files

2012-12-04 Thread Sunil Mushran
1.5 ms per inode. Times 900K files equals 22 mins. Large dirs are a problem is all file systems. The degree of problem depends on the overhead. An easy solution around is to shard the files into multilevel dirs. Like a 2 level structure of a 1000 files in 1000 dirs. Or, a 3 level structure with

Re: [Ocfs2-users] ls taking ages on a directory containing 900000 files

2012-12-04 Thread Amaury Francois
Thank you very much for your answers ! [Description : Description : Description : cid:image001.png@01CD01F3.35091200] Amaury FRANCOIS * Ingénieur Mobile +33 (0)6 88 12 62 54 amaury.franc...@digora.commailto:amaury.franc...@digora.com Siège Social - 66 rue du Marché Gare - 67200 STRASBOURG