You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Obantec Support <su...@obantec.net> on 2007/09/29 11:58:30 UTC

prefork: child states: II

Hi

just upgraded to 3.2.3 from 3.1.3

now using spamd seeing this in maillog

Sep 29 10:37:18 proteus2 spamd[6801]: rules: meta test FM_DDDD_TIMES_2 has 
dependency 'FH_HOST_EQ_D_D_D_D' with a zero score
Sep 29 10:37:18 proteus2 spamd[6801]: rules: meta test FM_SEX_HOSTDDDD has 
dependency 'FH_HOST_EQ_D_D_D_D' with a zero score
Sep 29 10:37:20 proteus2 spamd[6801]: spamd: server started on port 783/tcp 
(running version 3.2.3)
Sep 29 10:37:20 proteus2 spamd[6801]: spamd: server pid: 6801
Sep 29 10:37:20 proteus2 spamd[6801]: spamd: server successfully spawned 
child process, pid 6812
Sep 29 10:37:20 proteus2 spamd[6801]: spamd: server successfully spawned 
child process, pid 6813
Sep 29 10:37:20 proteus2 spamd[6801]: prefork: child states: IS
Sep 29 10:37:20 proteus2 spamd[6801]: prefork: child states: II

then when mail comes in it seems to handle spam and normal mail ok but 
should i worry about this

Sep 29 10:43:01 proteus2 spamd[6812]: spamd: connection from 
localhost.localdomain [127.0.0.1] at port 41968
Sep 29 10:43:01 proteus2 spamd[6812]: spamd: setuid to obantec_support 
succeeded
Sep 29 10:43:01 proteus2 spamd[6812]: spamd: processing message 
<20...@mail.larocque-craftsman.com> for 
obantec_support:817
Sep 29 10:43:08 proteus2 spamd[6812]: spamd: identified spam (12.1/4.5) for 
obantec_support:817 in 6.2 seconds, 1262 bytes.
Sep 29 10:43:08 proteus2 spamd[6812]: spamd: result: Y 12 - 
DATE_IN_PAST_24_48,FH_HOST_EQ_PACBELL_D,HTML_MESSAGE,MIME_HEADER_CTYPE_ONLY,MIME_HTML_ONLY,NORMAL_HTTP_TO_IP,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_PBL,RDNS_DYNAMIC,WHOIS_DMNBYPROXY 
scantime=6.2,size=1262,user=obantec_support,uid=817,required_score=4.5,rhost=localhost.localdomain,raddr=127.0.0.1,rport=41968,mid=<20...@mail.larocque-craftsman.com>,autolearn=failed
Sep 29 10:43:08 proteus2 spamd[6801]: prefork: child states: II

seems to crash? prefork: child states: II

Mark 


Re: prefork: child states: II

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Sat, 2007-09-29 at 10:58 +0100, Obantec Support wrote:

> now using spamd seeing this in maillog
> 
> Sep 29 10:37:18 proteus2 spamd[6801]: rules: meta test FM_DDDD_TIMES_2 has 
> dependency 'FH_HOST_EQ_D_D_D_D' with a zero score
> Sep 29 10:37:18 proteus2 spamd[6801]: rules: meta test FM_SEX_HOSTDDDD has 
> dependency 'FH_HOST_EQ_D_D_D_D' with a zero score
> Sep 29 10:37:20 proteus2 spamd[6801]: spamd: server started on port 783/tcp 
> (running version 3.2.3)
> Sep 29 10:37:20 proteus2 spamd[6801]: spamd: server pid: 6801
> Sep 29 10:37:20 proteus2 spamd[6801]: spamd: server successfully spawned 
> child process, pid 6812
> Sep 29 10:37:20 proteus2 spamd[6801]: spamd: server successfully spawned 
> child process, pid 6813
> Sep 29 10:37:20 proteus2 spamd[6801]: prefork: child states: IS
> Sep 29 10:37:20 proteus2 spamd[6801]: prefork: child states: II
> 
> then when mail comes in it seems to handle spam and normal mail ok but 
> should i worry about this
[...]
> Sep 29 10:43:08 proteus2 spamd[6801]: prefork: child states: II
> 
> seems to crash? prefork: child states: II

Nope, this does not indicate a crash. In fact, it is perfectly normal.

Prefork is an efficient default algorithm for spawning children, before
they are needed, thus having spare ones available. The II means, that at
this point (right after the last scan has been done), both children are
idle (state I).

The S you quoted above means, one children still is being spawned. B
indicates a busy child.

The states are being reported per child. With the default of 2 children
at startup, seeing only one letter here would indicate a crashed child.
More than 2 can be reached, if your SA is really busy.


FYI, these log message (usually right next to each other in your mail
log) would indicate a crashed child:

  spamd: handled cleanup of child pid 11309 due to SIGCHLD
  prefork: child states: I


HTH

  guenther


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}