Ryan Mikulovsky wrote:
> there happened to be multiple DOS causing sa-learns spawned tonight.  The
> swap was thrashing, things were at a standstill except for basic shell
> operations.  I suggest we avoid this by modifying the script called by
> cron to check if a pid exists for sa-learn, and to die if it does.  I
> haven't tested this, but it might look something like:

I've implemented your idea.  User spamd's crontab will now call
/usr/local/sbin/spamlearn, which you should all be able to take a look at.
 Let me know if any change is appropriate.

> And: this occurred because somehow over 517 messages were dumped into
> SiteSpam.  sa-learn couldn't gobble it up in time before cron spawned
> another sa-learn process.  iirc, 4 processes total were spawned, and at
> one point, 1.3gb of swap was filled.

While of course the thrashing behavior was a bug and not a feature, I
_usually_ dump more than 517 spam messages at a time, because I like to
check over each pass of them in a cursory way before consigning them to
SiteSpam.


_______________________________________________
HCoop-SysAdmin mailing list
[email protected]
http://hcoop.net/cgi-bin/mailman/listinfo/hcoop-sysadmin

Reply via email to