Dermot Paikkos wrote:
Hi
Spamassassin 3.02 running from SA-Exim (exim 4.5).
OPTIONS="--nouser-config --max-children 6 --helper-home-
dir=/var/spool/spamassassin/ -s /var/log/spamd.log --username=nobody"
I recently went live with the above system and am noticing some very
heavy memory usage. Each spamd is using near or over 200MB. The
machine (Debian Alpha 1.2GB RAM) soon eat up all the swap space
(4GB). To stablise the system for now I have added more swap and
reduced the number of SA children ( was 10) and exim processes.
Are there any performance tweaks I can make?
I can't see what all my memory is going and I suspect that it's not
being recycled properly.
Any thoughts?
TIA.
Dp.
Faster processors and lots of ram always help. Once you start hitting
swap you slow down. The more you slow down the more it backs up, the
more it backs up the more it slows down. So - first and foremost - buy
more ram.
Also - you can offload things to different computers. Adding a separare
computer running MySQL for the bays database helps a lot. Use a
dedicated SA computer and have it hand off the good email to a separate
computer running your POP and IMAP server. More computers, more memory,
faster processors.
Also - if you are running Exim or some other advanced MTA there are
tricks you can do at connect time to reject email BEFORE SA sees it and
therefore reduce the number of messages going into SA.