On Tue, 2005-07-19 at 10:55 -0700, Ed Walker wrote: > I've got a lot of small maildir files stored on a reiser-fs > partition. Currently we expire out the old stuff using > find /mail -mtime +7 -type f -print0 | xargs -0 rm -rf > > this is pretty slow on reiser, at least compared with ext2/3, and I > understand that it may be because the find command returns the names > in a non-optimal order (ie readdir order?). > > Is there something we can do to speed it up? Any suggestions? > > Thanks- > > Ed I think Reiser3 is slow more because with mtime, find has to stat each file. I did a couple ad-hoc tests and it seems to be about 40x slower on directory list with stat than just plain directory lists. I didn't try ext2/3. I believe the reiser3 directory order problems with maildir are related to something else, like not finding new mail at the end of the readdir()? -- Jonathan Briggs eSoft, Inc.