You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Ole Nomann Thomsen <on...@uni-c.dk> on 2005/11/02 16:09:03 UTC

info: prefork: child states: ...

Hi, SA 3.1.0 has some new lines in the log, like this:

info: prefork: child states: BBBBBBBBBBBIBBBBBBIBBBBBBBBBB

Does anybody know what they mean?


Re: info: prefork: child states: ...

Posted by Matt Kettler <mk...@evi-inc.com>.
Ole Nomann Thomsen wrote:
> Hi, SA 3.1.0 has some new lines in the log, like this:
> 
> info: prefork: child states: BBBBBBBBBBBIBBBBBBIBBBBBBBBBB
> 
> Does anybody know what they mean?
> 

>From SpamdForkScaling.pm:
----------------------
foreach my $pid (@pids) {
    my $k = $kids->{$pid};
    if ($k == PFSTATE_IDLE) {
      $statestr .= 'I';
      $num_idle++;
    }
    elsif ($k == PFSTATE_BUSY) {
      $statestr .= 'B';
    }
    elsif ($k == PFSTATE_KILLED) {
      $statestr .= 'K';
    }
    elsif ($k == PFSTATE_ERROR) {
      $statestr .= 'E';
    }
    elsif ($k == PFSTATE_STARTING) {
      $statestr .= 'S';
    }
    else {
      $statestr .= '?';
    }

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

So B means a busy child, I means idle, etc.. Looks like you've got a lot of busy
children and 2 idle children.