On 6/19/12 10:57 PM, Eric Sandeen wrote: > On Jun 19, 2012, at 10:38 PM, Norbert Preining <preining@xxxxxxxx> wrote: > >> Hi Ted, hi Eric, >> >> thanks for the answers, here some remarks. >> > ... > >> On Di, 19 Jun 2012, Eric Sandeen wrote: >>> As Ted said, the targets might be far-flung. If you do /bin/ls -l instead >>> of maybe an aliased ls which stats everything to make pretty colors, >>> is that faster? >> >> Might be the problem, but I saw the same with a program doing >> opendir readdir etc, so no allias or external program involved. >> > Of course ls -l must stat anyway. I shouldn't compose emails so late. :). Oh, but Zach Brown reminds me that if we stat the entries in getdents/hash order, it's roughly random w.r.t. disk location. Newer utils will sort into inode order, I think(?) Might be interesting to strace the ls -l and see if it's doing it in inode order, or not. -Eric -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html