http://qs321.pair.com?node_id=1211164


in reply to Perl Program to efficiently process 500000 small files in a Directory (AIX)

What filesystem is being used? JFS? How long does it take to merely ls those 1/2 million directory entries? Have you tried processing the files in particular order, like reverse list order (last entry first), or maybe reverse chronological order (newest entry first)?