LWN.net Logo

One billion files on Linux

One billion files on Linux

Posted Aug 19, 2010 20:16 UTC (Thu) by ricwheeler (subscriber, #4980)
In reply to: One billion files on Linux by bcopeland
Parent article: One billion files on Linux

One thing you can do (and upstream, tools like rm do this now) is to get a bunch of entries back from readdir and then sort them by inode number.

That removes the random, seeky nature of the list for file systems that suffer from this (ext3/4, reiserfs, other?).

For the more advanced layouts, you should look to btrfs.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds