Bug 118274 - SpamAssassin / spamd nice level
Bug#: 118274 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: perl@gentoo.org Reported By: Andreas.Klauer@metamorpher.de
Component: Applications
URL: 
Summary: SpamAssassin / spamd nice level
Keywords:  
Status Whiteboard: 
Opened: 2006-01-08 03:32 0000
Description:   Opened: 2006-01-08 03:32 0000
I'm using SpamAssassin (spamd/spamc via fetchmail/procmail), and noticed that
even with default config, it can cause quite a heavy cpu load at times. Since I
receive a lot of mails (or rather, spam) but want my system to be responsive
nevertheless, I decided to simply lower the spamd priority using nice.

I "implemented" this by adding a SPAMD_NICELEVEL setting to /etc/conf.d/spamd,
and passing this value to start-stop-daemon --nicelevel in /etc/init.d/spamd.
I'm not attaching a patch because this change is trivial. If you want a patch
nevertheless, please comment.

I think it'd be nice to offer such a configuration setting for all daemons that
are likely to be CPU intensive.

------- Comment #1 From Michael Cummings (RETIRED) 2006-03-12 12:23:05 0000 -------
thanks for the tip, commented into the conf.d file that gets installed
post-emerge.

------- Comment #2 From Rajiv Aaron Manglani 2006-10-17 14:15:49 0000 -------
looks like the conf.d file was updated, but no changes to the init script were
made.

Andreas.Klauer @ metamorpher.de: please attach your patched /etc/init.d/spamd
file. thanks.

------- Comment #3 From Andreas Klauer 2006-10-17 15:07:18 0000 -------
Created an attachment (id=99903) [details]
spamd init script that adds --nicelevel to the start-stop-daemon call.

Attached as requested.

------- Comment #4 From Rajiv Aaron Manglani 2006-10-18 08:57:31 0000 -------
in cvs. thanks.