[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
find -exec surprisingly slow
- Subject: find -exec surprisingly slow
- From: paulh at logicsquad.net (Paul A. Hoadley)
- Date: Sat Aug 14 18:40:03 2004
On Sun, Aug 15, 2004 at 01:32:35AM +0200, Erik Trulsson wrote:
> You seem to have missed the fact that operations on very large
> directories (which a directory with 400K files in it certainly
> qualifies as) simply are slow.
Good point. I had overlooked that.
> Reducing the number of processes spawned will certainly help some,
> but a better idea is to not have so many files in a single directory
> - that is just asking for trouble.
I'm not sure that I can make qmail do anything else. These are spams
sent to non-existent addresses at my domain, being caught by
.qmail-default. What I am going to do is clear out the Maildir daily
instead of monthly, though. Collecting them has become a significant
drain on disk space---the 400K spams are the result of about a month
and a half of collection.
Visit your host, monkey.org