Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
View Bug Activity | Format For Printing | XML | Clone This Bug
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) [edit] spamd init script that adds --nicelevel to the start-stop-daemon call. Attached as requested.
in cvs. thanks.