You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Andy Smith <an...@strugglers.net> on 2005/10/13 11:48:09 UTC
Individual timings of spamassassin rules?
Hi,
On one of my machines I'm running v3.0.3 under spamd with a fairly default
config for debian sarge. This is a reasonable spec machine, a 3GHz P4 that is
not swapping, but I'm seeing that each message seems to take quite a while to
check, between 3.5 and 15 seconds each (I'd say averaging at about 5 seconds per
message)
I have read:
http://wiki.apache.org/spamassassin/FasterPerformance
but I'm wondering if there is any easier way to get an overview of which rules
are taking the longest period of time to complete, other than removing the
rulesets one by one?
I'm sure there is some timeout somewhere that will be easy to fix.
Thanks,
Andy
Re: Individual timings of spamassassin rules?
Posted by jdow <jd...@earthlink.net>.
From: "Andy Smith" <an...@strugglers.net>
> I was hoping to be able to get a list of DNS/URIBLs and other
> external checks (razor2, pyzor, dcc) along with their timings to see
> where the problems lie. Possibly there is something for me to fix,
> or DNLSlists I could locally host, etc.
Manually run "spamassassin -D -t <email" and look for time out messages
for the various external checks.
{^_^}
Re: Individual timings of spamassassin rules?
Posted by Andy Smith <an...@strugglers.net>.
On Thu, Oct 13, 2005 at 05:17:49AM -0700, Loren Wilton wrote:
> > On one of my machines I'm running v3.0.3 under spamd with a
> > fairly default config for debian sarge. This is a reasonable
> > spec machine, a 3GHz P4 that is not swapping, but I'm seeing
> > that each message seems to take quite a while to check, between
> > 3.5 and 15 seconds each (I'd say averaging at about 5 seconds
> > per message)
>
> You don't mention if you are CPU bound.
This doesn't appear to be the case: low load average, mostly idle
cpu, no significant iowait.
> If you aren't swapping, then generally slow processing for a given
> email is more likely related to the time it takes to get the
> responses for network checks than actual CPU time required to scan
> the mail. Often the correct solution is a local caching name
> server.
I'm sorry I didn't specify that there is a local caching server too,
and network access is otherwise snappy.
I was hoping to be able to get a list of DNS/URIBLs and other
external checks (razor2, pyzor, dcc) along with their timings to see
where the problems lie. Possibly there is something for me to fix,
or DNLSlists I could locally host, etc.
But I realise the parallel nature of the checks makes this more
difficult.
Re: Individual timings of spamassassin rules?
Posted by Loren Wilton <lw...@earthlink.net>.
> On one of my machines I'm running v3.0.3 under spamd with a fairly default
> config for debian sarge. This is a reasonable spec machine, a 3GHz P4
that is
> not swapping, but I'm seeing that each message seems to take quite a while
to
> check, between 3.5 and 15 seconds each (I'd say averaging at about 5
seconds per
> message)
You don't mention if you are CPU bound. If you aren't swapping, then
generally slow processing for a given email is more likely related to the
time it takes to get the responses for network checks than actual CPU time
required to scan the mail. Often the correct solution is a local caching
name server.
Loren
Re: Individual timings of spamassassin rules?
Posted by jdow <jd...@earthlink.net>.
From: "Andy Smith" <an...@strugglers.net>
> Hi,
>
> On one of my machines I'm running v3.0.3 under spamd with a fairly default
> config for debian sarge. This is a reasonable spec machine, a 3GHz P4
> that is
> not swapping, but I'm seeing that each message seems to take quite a while
> to
> check, between 3.5 and 15 seconds each (I'd say averaging at about 5
> seconds per
> message)
>
> I have read:
>
> http://wiki.apache.org/spamassassin/FasterPerformance
>
> but I'm wondering if there is any easier way to get an overview of which
> rules
> are taking the longest period of time to complete, other than removing the
> rulesets one by one?
>
> I'm sure there is some timeout somewhere that will be easy to fix.
If you have a BigEvil rule installed jettison it. They are generally the
"hungry" rule sets, both in terms of memory use and CPU cycles.
I'd also change to 3.0.4 if I were you. 3.0.0 - 3.0.3 had nice built in
denial of service attack vulnerabilities.
{^_^}