Woaw! This morning I was virtually unable to boot into my system. Obviously this night more emails were sent to me than Spamassassin was able to deal with. When finally 'top' came up, I saw about 30 or so 'spamd' processes and it took about 15 minutes till all mails were processed (but I had to use SysRq to reboot in between because of a lock-up and the second attempt ended with X and mysqld being killed because no memory was left).
Then the bright idea occured to me to rearrange my.procmailrc. Initially it read:
| spamc
* ^X-Spam-Flag: YES
IN.spam
* ^Delivered-to: mailing list perl5-porters@perl.org
p5p
* ^Delivered-to: mailing list beginners@perl.org
beginners
# all other mail-sorting rules followed
By moving some of the mailings-lists that produce a lot of traffic (p5porters, beginners@perl.org etc.) in front of 'spamd', I now hope that those mails are no longer processed by Spamassassin. At least the porters-list is guaranteed to be spam-free. Not sure about beginners@perl.org though.
I think that Spamassassin needs an in-built ressource-limiter like: never spawn more than 30 processed, never use more than 50% of available memory and CPU altogether. I really don't care if I have to wait some time for all my mails to be checked and sorted into the respective mailboxes in the morning. However, what I care about is if my system stands still for 15 minutes and starts killing processes.
Anyway, Nicholas' suggestion to use Spamassassin as a real-world replacement for perlbench is a very good idea!
spambench (Score:1)
Link! Link! My ego demands all the publicity it can get.
The suggestion is in this message to perl5-porters [mpe.mpg.de]. It's a reply to a question from Alan Burlison asking about good perl performance benchmarks [mpe.mpg.de].
Re:spambench (Score:1)
running spamassassin on a slow box (Score:2, Informative)
The other thing that helps is if you mark your local mail delivery as expensive. At least with sendmail you can do this, don't know about others. The effect is that only one mail at a time will be delivered. Doesn't choke your box so much. Means I still don't have to upgrade my 16Mb 486 linux box.
Shouldn't happen (Score:3, Informative)
And turn off network checks. They can be very slow.
And make sure you're using the latest release. There are often a number of timeout (network check related) fixes in each release. And we test the other rules extensively for performance issues.
SpamAssassin is slow, but it really shouldn't kill your box.
Reply to This
Re:Shouldn't happen (Score:1)
Oh, that didn't even occur to me. I'll try to watch spamassassin more carefully and see whether particularly slow runs can be pinned down on certain messages. This morning I had the impression that it was simply due to the fact that about 100 messages were to be processed (in 'top' one spamd process was quickly replaced by a new one; so each single run appeared to be pretty f
Re:Shouldn't happen (Score:2)
I'd list the ones I think you should leave on, but I'm lazy
Re:Shouldn't happen (Score:2, Informative)
Procmail filtering the known-good (or known-bad--support@microsoft.com and big@boss.com) stuff so SpamAssassin has less to deal with is always a good th
Re:Shouldn't happen (Score:2)
Re:Shouldn't happen (Score:1)
Re:Shouldn't happen (Score:2)
ORBS Down (Score:1)
Set:
score RCVD_IN_ORBS 0
in your local.cf file, word is it's dead and probably dead for good.
Processing went from 30+ secs to 1-2secs after I did this.
Re:ORBS Down (Score:1)
Btw: my university also has spamassassin installed so right now my mails effectively get checked twice. Today I learnt that they are increasing some ressources. An official said that currently about 50% of all mails passed through their servers is spam and with the current setup it's