| 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.
thanks for the tip, commented into the conf.d file that gets installed post-emerge.
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.
Created an attachment (id=99903) [details]
spamd init script that adds --nicelevel to the start-stop-daemon call.
Attached as requested.