From: Jonathan Briggs <jbriggs@esoft.com>
To: Ed Walker <ewalker@surfcity.net>
Cc: reiserfs-list@namesys.com
Subject: Re: Fastest way to "find / -mtime +7".....
Date: Tue, 19 Jul 2005 12:48:53 -0600 [thread overview]
Message-ID: <1121798933.15596.13.camel@localhost> (raw)
In-Reply-To: <FD5AA849-D432-4881-B70F-E71369520749@surfcity.net>
[-- Attachment #1: Type: text/plain, Size: 971 bytes --]
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 <jbriggs@esoft.com>
eSoft, Inc.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-07-19 18:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-19 17:55 Fastest way to "find / -mtime +7" Ed Walker
2005-07-19 18:48 ` Jonathan Briggs [this message]
2005-07-19 20:09 ` Ragnar Kjørstad
2005-07-19 22:00 ` Jonathan Briggs
2005-07-20 12:33 ` Alexander G. M. Smith
2005-07-20 16:26 ` Andreas Dilger
2005-07-20 20:44 ` Ragnar Kjørstad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1121798933.15596.13.camel@localhost \
--to=jbriggs@esoft.com \
--cc=ewalker@surfcity.net \
--cc=reiserfs-list@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.