Eric Shubert escribió:
On 03/02/2011 12:04 PM, Sergio M wrote:

#!/bin/sh
exec /usr/bin/spamd -x -m 8 -u vpopmail -s stderr 2>&1

That's a good start.

What are your load number looking like? Pretty low I expect.

I'd open that puppy up. You can handle way more than 25 connections.

I'd go back to the default value of 100 for starters, and double the
number of spamd children. Then keep an eye on things. You don't want
to get so many spamd instances running that you start swapping ram.

Find a good comfortable number for spamd children (this is what will
eat your ram and cpu), then adjust your total smtp sessions to fit.
You should have many more (2-4x) smtp sessions available as spamd
children.

With that many domains and users, there is probably a good deal of
mail queued up in other servers, which is why you're getting pounded
so hard. You might need to turn off spamassassin temporarily to get
past the wave, but I'd only do that as a last resort. What you have
here is a good opportunity to do some serious tuning. :)



Well Eric, thanks for your reply.
Load>
# top
top - 16:01:49 up 4 days, 19:13, 1 user, load average: 0.18, 0.33, 0.42
Tasks: 264 total, 1 running, 263 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.1%us, 0.5%sy, 0.0%ni, 93.1%id, 4.3%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 1026432k total, 987040k used, 39392k free, 18456k buffers
Swap: 2064376k total, 36592k used, 2027784k free, 275032k cached


Would you suggest stepping spamd childs from 8 to 16 and incoming
connections to 64?

Serious tuning (or tuning at all) its the hardest part!

thanks!

---------------------------------------------------------------------------------

I'm presuming you have nothing else on this host besides QMT, right?

I'd go with 20 spamd children and 100 incoming connections for a start, and see what happens. I expect more adjustments will be needed, but let's see what happens with that. Need to look at what (if anything, like smtp sessions, spamd children) is maxing out at that point, what cpu and ram use looks like, and load.

Server only has QMT and is a NS

well I started as i said with 64 concurrencyincoming and 16 spamd childs.
Look:
2011-03-02 16:22:12.031650500 tcpserver: status: 0/64
2011-03-02 16:22:12.390714500 tcpserver: status: 1/64
2011-03-02 16:22:12.390922500 tcpserver: pid 27873 from 189.62.183.77
2011-03-02 16:22:12.391015500 tcpserver: ok 27873 mail.srv.com:11.22.33.44:25 :189.62.183.77::52708
(...)
2011-03-02 16:23:18.311763500 tcpserver: status: 62/64
2011-03-02 16:23:18.311765500 tcpserver: pid 29682 from 190.228.129.235
2011-03-02 16:23:18.311766500 tcpserver: ok 29682 mail.srv.com:11.22.33.44:25 :190.228.129.235::36885
2011-03-02 16:23:18.333234500 tcpserver: status: 63/64
2011-03-02 16:23:18.333424500 tcpserver: pid 29683 from 190.228.129.235
2011-03-02 16:23:18.333495500 tcpserver: ok 29683 mail.srv.com:11.22.33.44:25 :190.228.129.235::36888
2011-03-02 16:23:18.344837500 tcpserver: status: 64/64
2011-03-02 16:23:18.345021500 tcpserver: pid 29684 from 190.228.129.235
(...)
2011-03-02 16:29:55.588523500 tcpserver: status: 63/64
2011-03-02 16:29:55.588524500 tcpserver: status: 64/64
2011-03-02 16:29:55.588641500 tcpserver: pid 31540 from 201.3.48.146
2011-03-02 16:29:55.588727500 tcpserver: ok 31540 mail.netkey.com.ar:200.80.35.42:25 :201.3.48.146::43940
2011-03-02 16:29:57.377222500 tcpserver: end 29432 status 0
2011-03-02 16:29:57.377225500 tcpserver: status: 63/64
2011-03-02 16:29:57.377249500 tcpserver: status: 64/64
2011-03-02 16:29:57.377445500 tcpserver: pid 31551 from 200.69.10.175
2011-03-02 16:29:57.377530500 tcpserver: ok 31551 mail.netkey.com.ar:200.80.35.42:25 :200.69.10.175::47860

# top
top - 16:31:33 up 4 days, 19:43,  1 user,  load average: 0.51, 0.77, 0.67
Tasks: 348 total,   1 running, 347 sleeping,   0 stopped,   0 zombie
Cpu(s): 6.1%us, 1.0%sy, 0.0%ni, 84.9%id, 7.7%wa, 0.0%hi, 0.2%si, 0.0%st
Mem:   1026432k total,  1018164k used,     8268k free,    16096k buffers
Swap:  2064376k total,    36592k used,  2027784k free,   265360k cached


So, should I increase to 100 and 20 childs anyway?

Thanks Eric.


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
    For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


Reply via email to