Bug 198081

Summary: spamd is SO slow
Product: [Fedora] Fedora Reporter: Need Real Name <lsof>
Component: spamassassinAssignee: Warren Togami <wtogami>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: jm, parkerm, perl-devel, reg+redhat, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-13 16:24:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2006-07-09 09:43:59 UTC
downloading e-mail with evolution is REALLY slow.
It takes about two minutes over a fast line to download 150 e-mails.

top shows spamd hogging the cpu.

Comment 1 Warren Togami 2006-07-10 01:15:20 UTC
This is not enough information to possibly diagnose the problem.

Are you having long DNS timeouts by chance?


Comment 2 Need Real Name 2006-07-10 06:23:29 UTC
I doubt it, but I'll check.

In the meantime:
Time to download 100 test e-mails without spamd: about 1 second.
With spamd: about 10 seconds.

Each mail seems to be passed to spamd before the next one is downloaded, which
is a bit bizarre.

Comment 3 Jeroen van Meeuwen 2006-07-10 11:18:07 UTC
Wouldn't you consider this undesirable behaviour by evolution, instead of
unsuspected behaviour by spamassassin?

Comment 4 Need Real Name 2006-07-10 11:59:13 UTC
Good point, yes, but it was more of a side comment.

spamd is still hogging the cpu, the db is only ten megs.

Comment 5 Need Real Name 2006-07-11 16:04:19 UTC
It's not a dns problem. I added the mail server to /etc/hosts before checking
e-mail, and it's not any faster.

Comment 6 Steven Pritchard 2006-07-11 16:36:58 UTC
(In reply to comment #5)
> It's not a dns problem. I added the mail server to /etc/hosts before checking
> e-mail, and it's not any faster.

Which won't help a bit with spamassassin's DNSBL checks...

Comment 7 Need Real Name 2006-07-11 16:43:51 UTC
Okay, so six comments in we're at where comment number 2 should have been.

"Have you tried turning off DNS checks by adding -L to SPAMDOPTIONS in
/etc/sysconfig/spamassassin ?"

And the answer is no, I haven't, but I'll try it.

Comment 8 Need Real Name 2006-07-13 13:14:40 UTC
Hurrah! Disabling non-local checks, did make spamd eat less CPU - MUCH less CPU.
Which makes me wonder what on earth it was doing..

I have filed a separate bug 198767 about evolution seeming to pass each
individual mail to spamd before downloading the next.

Comment 9 Warren Togami 2006-07-13 16:24:13 UTC
There is something wrong with your network, it is not slow on a properly
configured network.