You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by fchan <fc...@molsci.org> on 2008/02/29 00:16:38 UTC

-max-child setting not obeyed?

Hi,
I have set my --max-child to 30 but I look at my logs and it appears 
that this is not obeyed.

Here is my spamd options:
SPAMDOPTIONS="-d -m 30 -H"

Here is what I see in the logs:
Feb 28 10:57:29 s1 spamd[15535]: prefork: child states: BBBBB
Feb 28 10:57:29 s1 spamd[15535]: prefork: server reached 
--max-children setting, consider raising it
Feb 28 10:57:29 s1 spamd[15740]: spamd: connection from 
localhost.localdomain [127.0.0.1] at port 45480
Feb 28 10:57:29 s1 spamd[15740]: spamd: checking message 
<0c...@pcj> for qscand:510
Feb 28 10:57:31 s1 spamd[15740]: spamd: identified spam (106.3/8.0) 
for qscand:510 in 2.8 seconds, 862 bytes.
Feb 28 10:57:31 s1 spamd[15740]: spamd: result: Y 106 - 
BAYES_99,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,BOTNET,DATE_IN_PAST_06_12,DIGEST_MULTIPLE,DOS_OE_TO_MX,FORGED_MUA_OUTLOOK,INVALID_MSGID,PYZOR_CHECK,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,STOX_REPLY_TYPEURIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL 
scantime=2.8,size=862,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45480,mid=<0c...@pcj>,bayes=1.000000,autolearn=spam
Feb 28 10:57:32 s1 spamd[15535]: prefork: child states: BBBBB
Feb 28 10:57:32 s1 spamd[15535]: prefork: server reached 
--max-children setting, consider raising it
Feb 28 10:57:32 s1 spamd[15740]: spamd: connection from 
localhost.localdomain [127.0.0.1] at port 45485
Feb 28 10:57:32 s1 spamd[15740]: spamd: checking message 
<00...@DELLY> for qscand:510
Feb 28 10:57:32 s1 spamd[15592]: spamd: identified spam (27.6/8.0) 
for qscand:510 in 8.3 seconds, 1725 bytes.
Feb 28 10:57:32 s1 spamd[15592]: spamd: result: Y 27 - 
BAYES_99,BOTNET,DATE_IN_PAST_06_12,DNS_FROM_RFC_DSN,DOS_OE_TO_MX,HTML_MESSAGE,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,SUBJ_YOUR_DEBT,URIBL_BLACK,URIBL_JP_SURBL 
scantime=8.3,size=1725,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45475,mid=<1e...@equipo3>,bayes=1.000000,autolearn=spam
Feb 28 10:57:33 s1 spamd[15535]: prefork: child states: BBBBB
Feb 28 10:57:33 s1 spamd[15535]: prefork: server reached 
--max-children setting, consider raising it
Feb 28 10:57:33 s1 spamd[15592]: spamd: connection from 
localhost.localdomain [127.0.0.1] at port 45491
Feb 28 10:57:33 s1 spamd[15592]: spamd: checking message (unknown) 
for qscand:510
Feb 28 10:57:33 s1 spamd[15742]: spamd: identified spam (34.2/8.0) 
for qscand:510 in 8.0 seconds, 2605 bytes.
Feb 28 10:57:33 s1 spamd[15742]: spamd: result: Y 34 - 
AWL,BAYES_50,MANHOOD,MISSING_MID,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL 
scantime=8.0,size=2605,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45477,mid=(unknown),bayes=0.499999,autolearn=spam
Feb 28 10:57:33 s1 spamd[15535]: prefork: child states: BBBBB
Feb 28 10:57:33 s1 spamd[15535]: prefork: server reached 
--max-children setting, consider raising it
Feb 28 10:57:33 s1 spamd[15742]: spamd: connection from 
localhost.localdomain [127.0.0.1] at port 45492
Feb 28 10:57:33 s1 spamd[15742]: spamd: checking message 
<19...@Abigail> for qscand:510
Feb 28 10:57:34 s1 spamd[15739]: spamd: identified spam (26.1/8.0) 
for qscand:510 in 9.9 seconds, 1642 bytes.
Feb 28 10:57:34 s1 spamd[15739]: spamd: result: Y 26 - 
BAYES_99,BOTNET,DATE_IN_PAST_06_12,DOS_OE_TO_MX,HTML_MESSAGE,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,SUBJ_YOUR_DEBT,URIBL_BLACK,URIBL_JP_SURBL 
scantime=9.9,size=1642,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45476,mid=<1e...@equipo3>,bayes=1.000000,autolearn=spam
Feb 28 10:57:35 s1 spamd[15535]: prefork: child states: BBBBB
Feb 28 10:57:35 s1 spamd[15535]: prefork: server reached 
--max-children setting, consider raising it
Feb 28 10:57:35 s1 spamd[15739]: spamd: connection from 
localhost.localdomain [127.0.0.1] at port 45493
Feb 28 10:57:35 s1 spamd[15739]: spamd: checking message 
<19...@Abigail> for qscand:510
Feb 28 10:57:35 s1 spamd[15591]: spamd: identified spam (102.3/8.0) 
for qscand:510 in 8.1 seconds, 784 bytes.
Feb 28 10:57:35 s1 spamd[15591]: spamd: result: Y 102 - 
BAYES_99,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,BOTNET,DATE_IN_PAST_06_12,DOS_OE_TO_MX,FORGED_MUA_OUTLOOK,INVALID_MSGID,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,STOX_REPLY_TYPE,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL 
scantime=8.1,size=784,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45479,mid=<0c...@pcj>,bayes=1.000000,autolearn=unavailable

It appears I hit 5 child processes as shown "child states: BBBBB "but 
it doesn't want to go higher for some reason.  Why is it stopping at 
5 child processes when in spamd I specify 30.

Thank you,
Frank

Re: -max-child setting not obeyed?

Posted by Gene Heskett <ge...@verizon.net>.
On Thursday 28 February 2008, fchan wrote:
>Hi,
>I have set my --max-child to 30 but I look at my logs and it appears
>that this is not obeyed.
>
>Here is my spamd options:
>SPAMDOPTIONS="-d -m 30 -H"
>
>Here is what I see in the logs:
>Feb 28 10:57:29 s1 spamd[15535]: prefork: child states: BBBBB
>Feb 28 10:57:29 s1 spamd[15535]: prefork: server reached
>--max-children setting, consider raising it
>Feb 28 10:57:29 s1 spamd[15740]: spamd: connection from
>localhost.localdomain [127.0.0.1] at port 45480
>Feb 28 10:57:29 s1 spamd[15740]: spamd: checking message
><0c...@pcj> for qscand:510
>Feb 28 10:57:31 s1 spamd[15740]: spamd: identified spam (106.3/8.0)
>for qscand:510 in 2.8 seconds, 862 bytes.
>Feb 28 10:57:31 s1 spamd[15740]: spamd: result: Y 106 -
>BAYES_99,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,BOTNET,DATE_IN_PAST_06_12,DIGEST
>_MULTIPLE,DOS_OE_TO_MX,FORGED_MUA_OUTLOOK,INVALID_MSGID,PYZOR_CHECK,RAZOR2_C
>F_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CH
>ECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,STOX_REPLY_TYPEURIBL_BLACK,URIBL_JP_SU
>RBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL
> scantime=2.8,size=862,user=qscand,uid=510,required_score=8.0,rhost=localhos
>t.localdomain,raddr=127.0.0.1,rport=45480,mid=<0cc401c87a3a$d4d54e60$1501a8c
>0@pcj>,bayes=1.000000,autolearn=spam Feb 28 10:57:32 s1 spamd[15535]:
> prefork: child states: BBBBB
>Feb 28 10:57:32 s1 spamd[15535]: prefork: server reached
>--max-children setting, consider raising it
>Feb 28 10:57:32 s1 spamd[15740]: spamd: connection from
>localhost.localdomain [127.0.0.1] at port 45485
>Feb 28 10:57:32 s1 spamd[15740]: spamd: checking message
><00...@DELLY> for qscand:510
>Feb 28 10:57:32 s1 spamd[15592]: spamd: identified spam (27.6/8.0)
>for qscand:510 in 8.3 seconds, 1725 bytes.
>Feb 28 10:57:32 s1 spamd[15592]: spamd: result: Y 27 -
>BAYES_99,BOTNET,DATE_IN_PAST_06_12,DNS_FROM_RFC_DSN,DOS_OE_TO_MX,HTML_MESSAG
>E,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,SUBJ_YOUR_DEBT,URIBL_BLACK,U
>RIBL_JP_SURBL
> scantime=8.3,size=1725,user=qscand,uid=510,required_score=8.0,rhost=localho
>st.localdomain,raddr=127.0.0.1,rport=45475,mid=<1ec901c87a3a$d2527410$bd3680
>be@equipo3>,bayes=1.000000,autolearn=spam Feb 28 10:57:33 s1 spamd[15535]:
> prefork: child states: BBBBB
>Feb 28 10:57:33 s1 spamd[15535]: prefork: server reached
>--max-children setting, consider raising it
>Feb 28 10:57:33 s1 spamd[15592]: spamd: connection from
>localhost.localdomain [127.0.0.1] at port 45491
>Feb 28 10:57:33 s1 spamd[15592]: spamd: checking message (unknown)
>for qscand:510
>Feb 28 10:57:33 s1 spamd[15742]: spamd: identified spam (34.2/8.0)
>for qscand:510 in 8.0 seconds, 2605 bytes.
>Feb 28 10:57:33 s1 spamd[15742]: spamd: result: Y 34 -
>AWL,BAYES_50,MANHOOD,MISSING_MID,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_5
>1_100,RAZOR2_CHECK,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL
>_SC_SURBL
> scantime=8.0,size=2605,user=qscand,uid=510,required_score=8.0,rhost=localho
>st.localdomain,raddr=127.0.0.1,rport=45477,mid=(unknown),bayes=0.499999,auto
>learn=spam Feb 28 10:57:33 s1 spamd[15535]: prefork: child states: BBBBB
>Feb 28 10:57:33 s1 spamd[15535]: prefork: server reached
>--max-children setting, consider raising it
>Feb 28 10:57:33 s1 spamd[15742]: spamd: connection from
>localhost.localdomain [127.0.0.1] at port 45492
>Feb 28 10:57:33 s1 spamd[15742]: spamd: checking message
><19...@Abigail> for qscand:510
>Feb 28 10:57:34 s1 spamd[15739]: spamd: identified spam (26.1/8.0)
>for qscand:510 in 9.9 seconds, 1642 bytes.
>Feb 28 10:57:34 s1 spamd[15739]: spamd: result: Y 26 -
>BAYES_99,BOTNET,DATE_IN_PAST_06_12,DOS_OE_TO_MX,HTML_MESSAGE,PYZOR_CHECK,RCV
>D_IN_PBL,RCVD_IN_XBL,RDNS_NONE,SUBJ_YOUR_DEBT,URIBL_BLACK,URIBL_JP_SURBL
> scantime=9.9,size=1642,user=qscand,uid=510,required_score=8.0,rhost=localho
>st.localdomain,raddr=127.0.0.1,rport=45476,mid=<1ed001c87a3a$d2527410$bd3680
>be@equipo3>,bayes=1.000000,autolearn=spam Feb 28 10:57:35 s1 spamd[15535]:
> prefork: child states: BBBBB
>Feb 28 10:57:35 s1 spamd[15535]: prefork: server reached
>--max-children setting, consider raising it
>Feb 28 10:57:35 s1 spamd[15739]: spamd: connection from
>localhost.localdomain [127.0.0.1] at port 45493
>Feb 28 10:57:35 s1 spamd[15739]: spamd: checking message
><19...@Abigail> for qscand:510
>Feb 28 10:57:35 s1 spamd[15591]: spamd: identified spam (102.3/8.0)
>for qscand:510 in 8.1 seconds, 784 bytes.
>Feb 28 10:57:35 s1 spamd[15591]: spamd: result: Y 102 -
>BAYES_99,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,BOTNET,DATE_IN_PAST_06_12,DOS_OE
>_TO_MX,FORGED_MUA_OUTLOOK,INVALID_MSGID,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,
>RDNS_NONE,STOX_REPLY_TYPE,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SB
>L,URIBL_SC_SURBL
> scantime=8.1,size=784,user=qscand,uid=510,required_score=8.0,rhost=localhos
>t.localdomain,raddr=127.0.0.1,rport=45479,mid=<0cbd01c87a3a$d4d0ba80$1501a8c
>0@pcj>,bayes=1.000000,autolearn=unavailable
>
>It appears I hit 5 child processes as shown "child states: BBBBB "but
>it doesn't want to go higher for some reason.  Why is it stopping at
>5 child processes when in spamd I specify 30.
>
>Thank you,
>Frank

You are lucky, despite a setting of 5, I have never seen more than 3.  I tried 
15 once, no effect.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Advertising is the rattling of a stick inside a swill bucket.
		-- George Orwell

Re: -max-child setting not obeyed?

Posted by "Daryl C. W. O'Shea" <sp...@dostech.ca>.
On 28/02/2008 6:16 PM, fchan wrote:
> Hi,
> I have set my --max-child to 30 but I look at my logs and it appears
> that this is not obeyed.
> 
> Here is my spamd options:
> SPAMDOPTIONS="-d -m 30 -H"

Does whatever you start spamd with actually use those options?  Are you
sure (check the command line of the running spamd using top, etc)?

> It appears I hit 5 child processes as shown "child states: BBBBB "but it
> doesn't want to go higher for some reason.  Why is it stopping at 5
> child processes when in spamd I specify 30.

I would be extremely surprised to find that spamd is actually being
started with an "-m 30" option (unless an "-m 5" option follows it).

Daryl


Re: -max-child setting not obeyed?

Posted by Steven Stern <su...@sterndata.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/28/2008 05:16 PM, fchan wrote:
| Hi,
| I have set my --max-child to 30 but I look at my logs and it appears
| that this is not obeyed.
|
| Here is my spamd options:
| SPAMDOPTIONS="-d -m 30 -H"
|
| Here is what I see in the logs:
| Feb 28 10:57:29 s1 spamd[15535]: prefork: child states: BBBBB
| Feb 28 10:57:29 s1 spamd[15535]: prefork: server reached --max-children
| setting, consider raising it
| Feb 28 10:57:29 s1 spamd[15740]: spamd: connection from
| localhost.localdomain [127.0.0.1] at port 45480
| Feb 28 10:57:29 s1 spamd[15740]: spamd: checking message
| <0c...@pcj> for qscand:510
| Feb 28 10:57:31 s1 spamd[15740]: spamd: identified spam (106.3/8.0) for
| qscand:510 in 2.8 seconds, 862 bytes.
| Feb 28 10:57:31 s1 spamd[15740]: spamd: result: Y 106 -
|
BAYES_99,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,BOTNET,DATE_IN_PAST_06_12,DIGEST_MULTIPLE,DOS_OE_TO_MX,FORGED_MUA_OUTLOOK,INVALID_MSGID,PYZOR_CHECK,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,STOX_REPLY_TYPEURIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL

|
scantime=2.8,size=862,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45480,mid=<0c...@pcj>,bayes=1.000000,autolearn=spam

|
| Feb 28 10:57:32 s1 spamd[15535]: prefork: child states: BBBBB
| Feb 28 10:57:32 s1 spamd[15535]: prefork: server reached --max-children
| setting, consider raising it
| Feb 28 10:57:32 s1 spamd[15740]: spamd: connection from
| localhost.localdomain [127.0.0.1] at port 45485
| Feb 28 10:57:32 s1 spamd[15740]: spamd: checking message
| <00...@DELLY> for qscand:510
| Feb 28 10:57:32 s1 spamd[15592]: spamd: identified spam (27.6/8.0) for
| qscand:510 in 8.3 seconds, 1725 bytes.
| Feb 28 10:57:32 s1 spamd[15592]: spamd: result: Y 27 -
|
BAYES_99,BOTNET,DATE_IN_PAST_06_12,DNS_FROM_RFC_DSN,DOS_OE_TO_MX,HTML_MESSAGE,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,SUBJ_YOUR_DEBT,URIBL_BLACK,URIBL_JP_SURBL

|
scantime=8.3,size=1725,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45475,mid=<1e...@equipo3>,bayes=1.000000,autolearn=spam

|
| Feb 28 10:57:33 s1 spamd[15535]: prefork: child states: BBBBB
| Feb 28 10:57:33 s1 spamd[15535]: prefork: server reached --max-children
| setting, consider raising it
| Feb 28 10:57:33 s1 spamd[15592]: spamd: connection from
| localhost.localdomain [127.0.0.1] at port 45491
| Feb 28 10:57:33 s1 spamd[15592]: spamd: checking message (unknown) for
| qscand:510
| Feb 28 10:57:33 s1 spamd[15742]: spamd: identified spam (34.2/8.0) for
| qscand:510 in 8.0 seconds, 2605 bytes.
| Feb 28 10:57:33 s1 spamd[15742]: spamd: result: Y 34 -
|
AWL,BAYES_50,MANHOOD,MISSING_MID,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL

|
scantime=8.0,size=2605,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45477,mid=(unknown),bayes=0.499999,autolearn=spam

|
| Feb 28 10:57:33 s1 spamd[15535]: prefork: child states: BBBBB
| Feb 28 10:57:33 s1 spamd[15535]: prefork: server reached --max-children
| setting, consider raising it
| Feb 28 10:57:33 s1 spamd[15742]: spamd: connection from
| localhost.localdomain [127.0.0.1] at port 45492
| Feb 28 10:57:33 s1 spamd[15742]: spamd: checking message
| <19...@Abigail> for qscand:510
| Feb 28 10:57:34 s1 spamd[15739]: spamd: identified spam (26.1/8.0) for
| qscand:510 in 9.9 seconds, 1642 bytes.
| Feb 28 10:57:34 s1 spamd[15739]: spamd: result: Y 26 -
|
BAYES_99,BOTNET,DATE_IN_PAST_06_12,DOS_OE_TO_MX,HTML_MESSAGE,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,SUBJ_YOUR_DEBT,URIBL_BLACK,URIBL_JP_SURBL

|
scantime=9.9,size=1642,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45476,mid=<1e...@equipo3>,bayes=1.000000,autolearn=spam

|
| Feb 28 10:57:35 s1 spamd[15535]: prefork: child states: BBBBB
| Feb 28 10:57:35 s1 spamd[15535]: prefork: server reached --max-children
| setting, consider raising it
| Feb 28 10:57:35 s1 spamd[15739]: spamd: connection from
| localhost.localdomain [127.0.0.1] at port 45493
| Feb 28 10:57:35 s1 spamd[15739]: spamd: checking message
| <19...@Abigail> for qscand:510
| Feb 28 10:57:35 s1 spamd[15591]: spamd: identified spam (102.3/8.0) for
| qscand:510 in 8.1 seconds, 784 bytes.
| Feb 28 10:57:35 s1 spamd[15591]: spamd: result: Y 102 -
|
BAYES_99,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,BOTNET,DATE_IN_PAST_06_12,DOS_OE_TO_MX,FORGED_MUA_OUTLOOK,INVALID_MSGID,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,STOX_REPLY_TYPE,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL

|
scantime=8.1,size=784,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45479,mid=<0c...@pcj>,bayes=1.000000,autolearn=unavailable

|
|
| It appears I hit 5 child processes as shown "child states: BBBBB "but it
| doesn't want to go higher for some reason.  Why is it stopping at 5
| child processes when in spamd I specify 30.
|
| Thank you,
| Frank
|

Also, try setting max-spare to something above the max children setting.

My settings are:

SPAMDOPTIONS="-d -c --max-children=20 -H --min-children=6 --max-spare=8"

- --

~  Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHx0sdeERILVgMyvARAoQ7AJ9qfrt81Qv1GZUnbxIt88qqlLkUYwCfUw0O
fQP7IeFJBA31KLptY94HaMQ=
=b4K3
-----END PGP SIGNATURE-----

Re: -max-child setting not obeyed?

Posted by fchan <fc...@molsci.org>.
Hi,
Thank you Steve for this. I found that /etc/sysconfig/spamassassin 
had the other SPAMOPTIONS so I updated my -m 20 there and it appears 
to take. Here is my current ps auwxf|grep spam:
root     27678  0.9  2.0  43672 39268 ?        Ss   16:08   0:03 
/usr/bin/spamd -x -u spamd -m 20 -H /home/spamd -d -r /var/run/spamd.p
id
spamd    27709  5.4  2.2  48564 44000 ?        S    16:08   0:16  \_ 
spamd child
spamd    27710  1.1  2.1  45416 40852 ?        S    16:08   0:03  \_ 
spamd child

Before -m 20 or any other settings will not appear after spamd.
I see these "server reached --max-children setting, consider raising 
it" during spam attacks.

Thank you,
Frank

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On 02/28/2008 05:16 PM, fchan wrote:
>| Hi,
>| I have set my --max-child to 30 but I look at my logs and it appears
>| that this is not obeyed.
>|
>| Here is my spamd options:
>| SPAMDOPTIONS="-d -m 30 -H"
>|
>| Here is what I see in the logs:
>| Feb 28 10:57:29 s1 spamd[15535]: prefork: child states: BBBBB
>| Feb 28 10:57:29 s1 spamd[15535]: prefork: server reached --max-children
>| setting, consider raising it
>| Feb 28 10:57:29 s1 spamd[15740]: spamd: connection from
>| localhost.localdomain [127.0.0.1] at port 45480
>| Feb 28 10:57:29 s1 spamd[15740]: spamd: checking message
>| <0c...@pcj> for qscand:510
>| Feb 28 10:57:31 s1 spamd[15740]: spamd: identified spam (106.3/8.0) for
>| qscand:510 in 2.8 seconds, 862 bytes.
>| Feb 28 10:57:31 s1 spamd[15740]: spamd: result: Y 106 -
>|
>BAYES_99,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,BOTNET,DATE_IN_PAST_06_12,DIGEST_MULTIPLE,DOS_OE_TO_MX,FORGED_MUA_OUTLOOK,INVALID_MSGID,PYZOR_CHECK,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,STOX_REPLY_TYPEURIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL
>
>|
>scantime=2.8,size=862,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45480,mid=<0c...@pcj>,bayes=1.000000,autolearn=spam
>
>|
>| Feb 28 10:57:32 s1 spamd[15535]: prefork: child states: BBBBB
>| Feb 28 10:57:32 s1 spamd[15535]: prefork: server reached --max-children
>| setting, consider raising it
>| Feb 28 10:57:32 s1 spamd[15740]: spamd: connection from
>| localhost.localdomain [127.0.0.1] at port 45485
>| Feb 28 10:57:32 s1 spamd[15740]: spamd: checking message
>| <00...@DELLY> for qscand:510
>| Feb 28 10:57:32 s1 spamd[15592]: spamd: identified spam (27.6/8.0) for
>| qscand:510 in 8.3 seconds, 1725 bytes.
>| Feb 28 10:57:32 s1 spamd[15592]: spamd: result: Y 27 -
>|
>BAYES_99,BOTNET,DATE_IN_PAST_06_12,DNS_FROM_RFC_DSN,DOS_OE_TO_MX,HTML_MESSAGE,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,SUBJ_YOUR_DEBT,URIBL_BLACK,URIBL_JP_SURBL
>
>|
>scantime=8.3,size=1725,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45475,mid=<1e...@equipo3>,bayes=1.000000,autolearn=spam
>
>|
>| Feb 28 10:57:33 s1 spamd[15535]: prefork: child states: BBBBB
>| Feb 28 10:57:33 s1 spamd[15535]: prefork: server reached --max-children
>| setting, consider raising it
>| Feb 28 10:57:33 s1 spamd[15592]: spamd: connection from
>| localhost.localdomain [127.0.0.1] at port 45491
>| Feb 28 10:57:33 s1 spamd[15592]: spamd: checking message (unknown) for
>| qscand:510
>| Feb 28 10:57:33 s1 spamd[15742]: spamd: identified spam (34.2/8.0) for
>| qscand:510 in 8.0 seconds, 2605 bytes.
>| Feb 28 10:57:33 s1 spamd[15742]: spamd: result: Y 34 -
>|
>AWL,BAYES_50,MANHOOD,MISSING_MID,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL
>
>|
>scantime=8.0,size=2605,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45477,mid=(unknown),bayes=0.499999,autolearn=spam
>
>|
>| Feb 28 10:57:33 s1 spamd[15535]: prefork: child states: BBBBB
>| Feb 28 10:57:33 s1 spamd[15535]: prefork: server reached --max-children
>| setting, consider raising it
>| Feb 28 10:57:33 s1 spamd[15742]: spamd: connection from
>| localhost.localdomain [127.0.0.1] at port 45492
>| Feb 28 10:57:33 s1 spamd[15742]: spamd: checking message
>| <19...@Abigail> for qscand:510
>| Feb 28 10:57:34 s1 spamd[15739]: spamd: identified spam (26.1/8.0) for
>| qscand:510 in 9.9 seconds, 1642 bytes.
>| Feb 28 10:57:34 s1 spamd[15739]: spamd: result: Y 26 -
>|
>BAYES_99,BOTNET,DATE_IN_PAST_06_12,DOS_OE_TO_MX,HTML_MESSAGE,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,SUBJ_YOUR_DEBT,URIBL_BLACK,URIBL_JP_SURBL
>
>|
>scantime=9.9,size=1642,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45476,mid=<1e...@equipo3>,bayes=1.000000,autolearn=spam
>
>|
>| Feb 28 10:57:35 s1 spamd[15535]: prefork: child states: BBBBB
>| Feb 28 10:57:35 s1 spamd[15535]: prefork: server reached --max-children
>| setting, consider raising it
>| Feb 28 10:57:35 s1 spamd[15739]: spamd: connection from
>| localhost.localdomain [127.0.0.1] at port 45493
>| Feb 28 10:57:35 s1 spamd[15739]: spamd: checking message
>| <19...@Abigail> for qscand:510
>| Feb 28 10:57:35 s1 spamd[15591]: spamd: identified spam (102.3/8.0) for
>| qscand:510 in 8.1 seconds, 784 bytes.
>| Feb 28 10:57:35 s1 spamd[15591]: spamd: result: Y 102 -
>|
>BAYES_99,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,BOTNET,DATE_IN_PAST_06_12,DOS_OE_TO_MX,FORGED_MUA_OUTLOOK,INVALID_MSGID,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,STOX_REPLY_TYPE,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL
>
>|
>scantime=8.1,size=784,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45479,mid=<0c...@pcj>,bayes=1.000000,autolearn=unavailable
>
>|
>|
>| It appears I hit 5 child processes as shown "child states: BBBBB "but it
>| doesn't want to go higher for some reason.  Why is it stopping at 5
>| child processes when in spamd I specify 30.
>|
>| Thank you,
>| Frank
>|
>
>If you do "ps -ef |grep spam", is that what you see as the command line?
>~  What you have in /etc/init.d/spammassassin might be overruled by
>/etc/sysconfig/spamassassin.
>
>- --
>
>~  Steve
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.7 (GNU/Linux)
>Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
>
>iD8DBQFHx0kmeERILVgMyvARAmjPAJ4h4u4onkpUaAhGoVqhUIfDLFyu+wCdH38G
>hWtyG2I8j5raOWXd2NNA3dg=
>=ezq8
>-----END PGP SIGNATURE-----


Re: -max-child setting not obeyed?

Posted by Steven Stern <su...@sterndata.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/28/2008 05:16 PM, fchan wrote:
| Hi,
| I have set my --max-child to 30 but I look at my logs and it appears
| that this is not obeyed.
|
| Here is my spamd options:
| SPAMDOPTIONS="-d -m 30 -H"
|
| Here is what I see in the logs:
| Feb 28 10:57:29 s1 spamd[15535]: prefork: child states: BBBBB
| Feb 28 10:57:29 s1 spamd[15535]: prefork: server reached --max-children
| setting, consider raising it
| Feb 28 10:57:29 s1 spamd[15740]: spamd: connection from
| localhost.localdomain [127.0.0.1] at port 45480
| Feb 28 10:57:29 s1 spamd[15740]: spamd: checking message
| <0c...@pcj> for qscand:510
| Feb 28 10:57:31 s1 spamd[15740]: spamd: identified spam (106.3/8.0) for
| qscand:510 in 2.8 seconds, 862 bytes.
| Feb 28 10:57:31 s1 spamd[15740]: spamd: result: Y 106 -
|
BAYES_99,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,BOTNET,DATE_IN_PAST_06_12,DIGEST_MULTIPLE,DOS_OE_TO_MX,FORGED_MUA_OUTLOOK,INVALID_MSGID,PYZOR_CHECK,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,STOX_REPLY_TYPEURIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL

|
scantime=2.8,size=862,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45480,mid=<0c...@pcj>,bayes=1.000000,autolearn=spam

|
| Feb 28 10:57:32 s1 spamd[15535]: prefork: child states: BBBBB
| Feb 28 10:57:32 s1 spamd[15535]: prefork: server reached --max-children
| setting, consider raising it
| Feb 28 10:57:32 s1 spamd[15740]: spamd: connection from
| localhost.localdomain [127.0.0.1] at port 45485
| Feb 28 10:57:32 s1 spamd[15740]: spamd: checking message
| <00...@DELLY> for qscand:510
| Feb 28 10:57:32 s1 spamd[15592]: spamd: identified spam (27.6/8.0) for
| qscand:510 in 8.3 seconds, 1725 bytes.
| Feb 28 10:57:32 s1 spamd[15592]: spamd: result: Y 27 -
|
BAYES_99,BOTNET,DATE_IN_PAST_06_12,DNS_FROM_RFC_DSN,DOS_OE_TO_MX,HTML_MESSAGE,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,SUBJ_YOUR_DEBT,URIBL_BLACK,URIBL_JP_SURBL

|
scantime=8.3,size=1725,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45475,mid=<1e...@equipo3>,bayes=1.000000,autolearn=spam

|
| Feb 28 10:57:33 s1 spamd[15535]: prefork: child states: BBBBB
| Feb 28 10:57:33 s1 spamd[15535]: prefork: server reached --max-children
| setting, consider raising it
| Feb 28 10:57:33 s1 spamd[15592]: spamd: connection from
| localhost.localdomain [127.0.0.1] at port 45491
| Feb 28 10:57:33 s1 spamd[15592]: spamd: checking message (unknown) for
| qscand:510
| Feb 28 10:57:33 s1 spamd[15742]: spamd: identified spam (34.2/8.0) for
| qscand:510 in 8.0 seconds, 2605 bytes.
| Feb 28 10:57:33 s1 spamd[15742]: spamd: result: Y 34 -
|
AWL,BAYES_50,MANHOOD,MISSING_MID,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL

|
scantime=8.0,size=2605,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45477,mid=(unknown),bayes=0.499999,autolearn=spam

|
| Feb 28 10:57:33 s1 spamd[15535]: prefork: child states: BBBBB
| Feb 28 10:57:33 s1 spamd[15535]: prefork: server reached --max-children
| setting, consider raising it
| Feb 28 10:57:33 s1 spamd[15742]: spamd: connection from
| localhost.localdomain [127.0.0.1] at port 45492
| Feb 28 10:57:33 s1 spamd[15742]: spamd: checking message
| <19...@Abigail> for qscand:510
| Feb 28 10:57:34 s1 spamd[15739]: spamd: identified spam (26.1/8.0) for
| qscand:510 in 9.9 seconds, 1642 bytes.
| Feb 28 10:57:34 s1 spamd[15739]: spamd: result: Y 26 -
|
BAYES_99,BOTNET,DATE_IN_PAST_06_12,DOS_OE_TO_MX,HTML_MESSAGE,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,SUBJ_YOUR_DEBT,URIBL_BLACK,URIBL_JP_SURBL

|
scantime=9.9,size=1642,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45476,mid=<1e...@equipo3>,bayes=1.000000,autolearn=spam

|
| Feb 28 10:57:35 s1 spamd[15535]: prefork: child states: BBBBB
| Feb 28 10:57:35 s1 spamd[15535]: prefork: server reached --max-children
| setting, consider raising it
| Feb 28 10:57:35 s1 spamd[15739]: spamd: connection from
| localhost.localdomain [127.0.0.1] at port 45493
| Feb 28 10:57:35 s1 spamd[15739]: spamd: checking message
| <19...@Abigail> for qscand:510
| Feb 28 10:57:35 s1 spamd[15591]: spamd: identified spam (102.3/8.0) for
| qscand:510 in 8.1 seconds, 784 bytes.
| Feb 28 10:57:35 s1 spamd[15591]: spamd: result: Y 102 -
|
BAYES_99,BODY_ENHANCEMENT,BODY_ENHANCEMENT2,BOTNET,DATE_IN_PAST_06_12,DOS_OE_TO_MX,FORGED_MUA_OUTLOOK,INVALID_MSGID,PYZOR_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_NONE,STOX_REPLY_TYPE,URIBL_BLACK,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SBL,URIBL_SC_SURBL

|
scantime=8.1,size=784,user=qscand,uid=510,required_score=8.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=45479,mid=<0c...@pcj>,bayes=1.000000,autolearn=unavailable

|
|
| It appears I hit 5 child processes as shown "child states: BBBBB "but it
| doesn't want to go higher for some reason.  Why is it stopping at 5
| child processes when in spamd I specify 30.
|
| Thank you,
| Frank
|

If you do "ps -ef |grep spam", is that what you see as the command line?
~  What you have in /etc/init.d/spammassassin might be overruled by
/etc/sysconfig/spamassassin.

- --

~  Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHx0kmeERILVgMyvARAmjPAJ4h4u4onkpUaAhGoVqhUIfDLFyu+wCdH38G
hWtyG2I8j5raOWXd2NNA3dg=
=ezq8
-----END PGP SIGNATURE-----