Date: Sun, 15 Aug 2004 08:31:43 +0930 From: "Paul A. Hoadley" <paulh@logicsquad.net> To: freebsd-questions@freebsd.org Subject: find -exec surprisingly slow Message-ID: <20040814230143.GB8610@grover.logicsquad.net>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hello,
I'm in the process of cleaning a Maildir full of spam. It has
somewhere in the vicinity of 400K files in it. I started running
this yesterday:
find . -atime +1 -exec mv {} /home/paulh/tmp/spam/sne/ \;
It's been running for well over 12 hours. It certainly is
working---the spams are slowly moving to their new home---but it is
taking a long time. It's a very modest system, running 4.8-R on a
P2-350. I assume this is all overhead for spawning a shell and
running mv 400K times. Is there a better way to move all files based
on some characteristic of their date stamp? Maybe separating the find
and the move, piping it through xargs? It's mostly done now, but I
will know better for next time.
--
Paul.
w http://logicsquad.net/
h http://paul.hoadley.name/
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFBHpnW730Z/jysbzIRAvwuAJ4mfuqtHaqKQGDKtcZrwpTKir5t5gCff8rR
NM5fF8v7qgT8CS2delXdruE=
=MZw2
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040814230143.GB8610>
