Jean-Paul Natola wrote:

> 
> spamd -m 
> 
> and what would be an ideal number to set it  ?
> 
> I came in this morning ,  got a bunch of those swap message , and my VM is at
> 86% right now


As Chris S already said, there's no hard-fast rule here. However, here's a rule
of thumb to start with:

1) Use ps aux or top to find the RSS of your largest spamd instance. This will
likely be somewhere around 30M, unless you're using some really large add-on
sets. If your answer here is over 60M, see my footnotes on reducing memory use.

2) Add an extra 4M to this, to cover extra storage for data. If you're passing
-s to spamc, use 16 times the parameter (default is 250k, *16 = 4M). I'm going
to pretend my total is 34M. (Yes, I know 16* is generous, but this is a rule-of
thumb here)

3) Find out how much free memory you have without spamd running. If you use
linux I'd suggest running "free" and look at the free column next to "-/+
buffers/cache:". I'll pretend we have 512M here.

4) Divide the free memory by your answer from 2. That should give you a good
rough-estimate number to work with.



Footnote on memory usage:

If your spamd instances are huge, review the add-on rulesets you're using. Be
warry of any add-on rule file that is over 128k in size.

In particular, do NOT use sa-blacklist unless you have tons of ram to spare.
This ruleset is nearly 2m in .cf file format and will massively expand your SA's
memory usage.

Reply via email to