SA Bugzilla – Bug 3857
Spamd repeatedly causing unacceptably high system load
Last modified: 2005-01-21 03:18:32 UTC
I keep seeing logcheck emails telling me system load is too high and on investigation, it appears its spamd causing the problem. This is a relatively low load server in terms of mail volume. It's a 1.7Ghz P4 with 256MB RAM. This is happening regularly and was also an issue with 2.63 before I upgraded to 3.0.0. Most recently it caused system load to remain at 30-34 for seven or eight hours till I noticed the problem this morning. Even on start up, each thread/child appears to be using 10-15% mem, with four-six threads/childs.
Subject: Re: New: Spamd repeatedly causing unacceptably high system load On Sat, Oct 02, 2004 at 02:13:21AM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote: > Component: spamc/spamd > > is happening regularly and was also an issue with 2.63 before I upgraded to > 3.0.0. Most recently it caused system load to remain at 30-34 for seven or > eight hours till I noticed the problem this morning. Even on start up, each > thread/child appears to be using 10-15% mem, with four-six threads/childs. Hrm. First, there is no threading involved running spamd -- it's all process based. Second, there's no way SA can generate a load of 30+ if there's only 4-6 spamd processes running. The issue you describe sounds like you are resource strapped, thereby causing other processes to sit waiting for swap, driving the load up, etc. The easy fixes are: put more memory in the machine, turn off other processes on the machine you don't use, cut back on the number of spamd children, disable SA features you don't use, disable third-party rulesets if installed...
I didn't mean threads, I meant the child processes in 3.0.0. The system may indeed have become resource strapped, resulting in the high load, but killing SA solves the problem, at least until it happens again. There's not much running on the box and resources have never really been a problem, but it seems to have gotten gradually worse as the I upgraded each version of SA, with 3.0 being the worst.
can you look at bug 3776 and see if that patch fixes your problem?
patch applied. Now to monitor and wait and see...
Seeing some Oct 15 02:30:14 Socrates spamd[28424]: server hit by SIGCHLD Oct 15 02:30:14 Socrates spamd[28424]: handled cleanup of child pid 29000 Oct 15 02:30:14 Socrates spamd[28424]: server successfully spawned child process, pid 16738 Oct 15 02:30:19 Socrates spamd[28424]: server hit by SIGCHLD Oct 15 02:30:19 Socrates spamd[28424]: handled cleanup of child pid 30344 Oct 15 02:30:19 Socrates spamd[28424]: server successfully spawned child process, pid 16768 Oct 15 02:40:13 Socrates spamd[28424]: server hit by SIGCHLD Oct 15 02:40:13 Socrates spamd[28424]: handled cleanup of child pid 30379 Oct 15 02:40:13 Socrates spamd[28424]: server successfully spawned child process, pid 17378 Oct 15 02:50:09 Socrates spamd[28424]: server hit by SIGCHLD Oct 15 02:50:09 Socrates spamd[28424]: handled cleanup of child pid 29766 Oct 15 02:50:09 Socrates spamd[28424]: server successfully spawned child process, pid 18148 in syslog. I've seen a spot of high load here and there, but not like it was.
those messages are entirely normal. marking FIXED