On Sun, 2007-07-22 at 22:38 -0700, Michael Tinsay wrote:
> I have a 40GB HDD mounted as /home.  It is used for holding emails for
> about 100+ users.  One of the occasional tasks I do with this is to
> prune it out of unwanted emails, like chain letters.
> 
> I usually run something like:
> 
> find -size +500k -print0 | xargs -0 grep -H "search string"
> 
> to search the Maildir mailboxes for a certain subject.
> 
> The disk is about 98% full, and running the about line takes time for
> one search.
> 
> I was wondering if there's a better way to search.  Or if I should be
> using a different fs that would make searches faster.  Btw, I'm using
> the xfs filesystem.

Using find and grep don't allow you to maximize the use of indices. You
could investigate the use of something like mairix to provide you with
an indexed database, but I'm not sure if mairix works well as a pruning
tool for administrators.

Also be warned that most (all?) filesystems suffer from performance
degradation when disk space starts running low, so increasing your
storage capacity would also make a difference.

Cheers!

-- 
Federico Sevilla III
F S 3 Consulting Inc.
http://www.fs3.ph

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to