GNOME Bugzilla – Bug 268852
starts spamd and never stops it
Last modified: 2013-07-08 11:25:27 UTC
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=278447 here my originial bugreport today i've upgrade from 1.5.x and evolution's spamassasin managing behaviour changed. On incoming mail, evolution starts __spamd__. Evo1.5 used to start a new spamassassin. The problem is that spamd is not stopped when there no longer any mail to scan. Spamd eats up to 20MB of memory. But the worst thing : it's started regardless of system-wide settings -> spamd is started with 5 childs ! (default) 6803 benoit 15 0 31360 24m 8512 S 9.7 4.9 0:00.50 spamd 6802 benoit 16 0 31160 24m 8512 S 1.0 4.8 0:00.28 spamd 6794 benoit 22 0 31100 24m 8512 S 0.0 4.8 0:01.22 spamd 6801 benoit 19 0 31100 24m 8512 S 0.0 4.8 0:00.00 spamd 6804 benoit 18 0 31100 24m 8512 S 0.0 4.8 0:00.00 spamd 6805 benoit 22 0 31100 24m 8512 S 0.0 4.8 0:00.00 spamd this make evolution+spamassassin totaly unusable because it's too much memory. i'm using evolution on my laptop which is obviously not a mail server. this is a total regression.
I'm not so sure this is a bug... we can't be sure that other processes aren't using the daemon. and it *is* a daemon...
yes, it's a daemon. But if evolution takes the responsability to start it, i think evolution should also shut it down
JP says not a regression so punting from 2.1 also, I've been told that you can disable spamd from being spawned and haave evo just use the spamassassin command by unchecking a prefs checkbox for it.
ahaha My spamd is 16MB. I receive about 20 mails/day. So this means that i have to run a daemon eating 16MB only for these few emails. Evo itself is 30MB. -> 46MB = 17% of RAM on a 256MB desktop computer. Thunderbird doesn't require this and doesn't that much memory. See http://bugzilla.gnome.org/show_bug.cgi?id=272411. I use spamd because evolution requires it. A mailer without spam checking is useless. I wish i was able to run the spam client without running a daemon, juste like bogofilter. Thanks.
You can use spamassassin without using the daemon. Make sure that you configure evolution to not use the daemon, and it will use the "spamassassin" command directly.
How ? Why does evolution starts spamd if it can use spamassassin ?
you may set /apps/evolution/mail/junk/sa/use_daemon to false in gconf-editor. evolution terminates spamd on exit
Well, but the problem is also that evolution starts spamd with default options and it spams 5 children. So much childred isn't needed at all, they used for multiuser processing. You _must_ pass -m1 option to spamd otherwise evolution with spam checking is completely unusable.
quoting from my comment at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=169903 -- 'FWIW, I agree -- 5 children makes sense in a multi-user, lots of mail delivered in parallel, environment, which does not describe the Evolution use-case. BTW SA 3.1.0 is better about scaling the number of children to fit the load.' (I'm one of the SA pmc btw, so I'm reasonably authoritative on spamd issues.)
committed the fix to CVS head.
this isn't fixed at all in 2.7.92.
*** Bug 354169 has been marked as a duplicate of this bug. ***
This bug has to be fixed as soon as possible. Varadhan: Bug is already there in novell bugzilla with duplicate reports as well. In my system I generally see more then 15 spamd running.
poornima: novell bugzilla id?
https://bugzilla.novell.com/show_bug.cgi?id=168705 run 'ps -ux | grep evolution'. see the list of spamd running. pnayak 494 0.0 0.1 27988 3496 ? Ss Apr18 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-Seq8G6 --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-HwVdSU pnayak 2469 0.0 0.1 27996 3496 ? Ss Apr18 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-3P7i0t --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-nd5Qev pnayak 2960 0.0 1.2 27980 25100 ? Ss Apr18 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-q9q3AO --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-VJUf9k pnayak 5552 0.0 0.1 27980 3492 ? Ss Apr18 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-CCw021 --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-hFUy0f pnayak 6223 0.0 0.1 27980 3496 ? Ss Apr18 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-Hxh3nf --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-NA7Q7c pnayak 8855 0.0 0.5 27980 10628 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-lm2UAM --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-fSBfpT pnayak 19745 0.0 0.6 27996 13736 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-ert7LH --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-1tBr9I pnayak 22722 0.0 1.2 27988 25124 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-Kkn88o --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-TTb5sU pnayak 22867 0.0 1.2 27996 25124 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-BEdizQ --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-uIgfL4 pnayak 22972 0.0 1.2 28004 25132 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-fs85A0 --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-eOsGvz pnayak 23092 0.0 1.2 27996 25116 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-e6xPj5 --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-9Ezfpx pnayak 23173 0.0 1.0 27996 21432 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-7LcqaS --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-tOa9Iv pnayak 23225 0.0 0.1 28004 3508 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-55Tz1d --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-1pNNmw pnayak 23286 0.0 0.8 27996 16812 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-8reeBK --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-JS6Gzm pnayak 23339 0.0 0.5 28004 11052 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-uo3tax --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-DSE84n pnayak 23420 0.0 0.1 27996 3504 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-PxLkNG --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-cY8d3v pnayak 23480 0.0 0.1 27996 3504 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-HQ1G2L --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-aYpGUH pnayak 23541 0.0 0.8 27996 18660 ? Ss Apr19 0:02 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-j3pJjL --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-wuUH0G pnayak 28023 0.0 1.1 27996 24656 ? Ss Apr19 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-icKgK1 --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-A3HhEB pnayak 760 0.0 0.5 27996 12436 ? Ss Apr20 0:04 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-LMt9f5 --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-wdnlIW pnayak 14011 0.0 1.2 28000 25132 ? Ss Apr21 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-nMhx8v --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-mNGAEI pnayak 16269 0.0 1.2 27992 25128 ? Ss Apr21 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-ZTrgji --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-snXygR pnayak 16444 0.0 1.1 27988 24868 ? Ss Apr21 0:01 /usr/bin/perl -T -w /usr/sbin/spamd --socketpath /home/pnayak/.evolution/cache/tmp/spamd-socket-path-qsf0tr --local --max-children=1 --pidfile /home/pnayak/.evolution/cache/tmp/spamd-pid-file-7HESWS Valid in OpenSUSE 10.3 also.
Bumping version to a stable release.
*** Bug 502239 has been marked as a duplicate of this bug. ***
Dunno if this is even still an issue, but I removed the code that spawns spamd for Evolution 3.9.5. See bug 703490. Closing as OBSOLETE.