On Wednesday 11 January 2006 7:06 pm, jdow wrote: > From: "Chris" <[EMAIL PROTECTED]> > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > I run SA 3.1 on a home system which gets about 200 - 250 msgs a day, > > the majority being spam of course. I have 768mb of ram with a swap of > > 612mb, an AMD Sempron 1.6GHz processor. This is how spamd is started > > from the /etc/rc.d/init.d/spamassassin script: > > > > OPTIONS="-d -c -H -m 2 --max-conn-per-child=100 --min-children=2" > > > > Does this look like an optimum setting or can it be tweaked better? > > For 3.0x this is not right. But 3.1 may have added --min-children. > I'd use --max-children=2 anyway. You absolutely positively do not > want to run into swapping. If you have anything else running, like > an X session, you're toast with more than a couple children. Besides, > for 200 - 250 messages a day you probably don't really need more than > one child floating around at any given time. Also the affect on your > machine of a --max-conn-per-child of say 15 or so is rather minimal. > That's what I use here for 1000 to 1500 emails a day here. > > "-d -c -m3 -Hi -A 192.168.X.,127. --max-conn-per-child=15"
I have --max-children set to two, but I'm wondering if max-conn-per-child=100 is too many? The way I read the manpage is that after x number of connections on that particular child process it will be respawned. Or am I lost here? I see it as the lower the number the more often a child will die and be respawned. > The -A restricts the addresses from which spamd will accept connections. > It's probably not needed. But it adds a little depth to the system's > security. Machines on the other 192.168.Y. subnets are blocked. > Thanks Joanne, what has me wondering about the setup is that in GKrellm it will show 257mb of ram free and 537mb of swap free, I do a service spamassassin restart and free ram jumps up to 350mb and free swap jumps to 595. I used to have a cron job I ran that daily would restart SA, that was I think with 2.63 or 2.64. I also notice that sometimes once an hour and sometimes 5 or 6 times an hour my syslog shows: spamd[1061]: prefork: child states: II I may have not read the correct manpage but I can't find an explanation for prefork. Is it respawning the child processes at that time? -- Chris Registered Linux User 283774 http://counter.li.org 20:15:02 up 2 days, 2:01, 1 user, load average: 0.44, 0.30, 0.16 Mandriva Linux 10.1 Official, kernel 2.6.8.1-12mdk
pgpK7nDM4JmUJ.pgp
Description: PGP signature