[Mimedefang] multiple CPUs, multiple milters!
Fredrik Hansen
fredrik.hansen at nykoping.nu
Mon Sep 8 21:04:07 EDT 2003
On Mon, 8 Sep 2003, Anne Bennett wrote:
>
> Folks,
>
> My hardware has two CPUs, seen by the Linux kernel (2.4.21) as four
> CPUS -- which is apparently normal for these Intel Xeon processors
> with "hyperthreading". Weird, but the system works fine.
>
> But... when I start up mimedefang (the milter process), I get four of
> them! The PID in the pidfile is that of the first one (lowest PID).
>
> I have not yet tested the set-up hard, though initial light testing shows
> MIMEDefang to be working as expected. So far, the only problem I have
> is that during shutdown, killing just the PID registered in the
> pidfile is not sufficient to get rid of all four processes.
>
> I will be testing further shortly, but I have a bad feeling about
> this; am I really supposed to be getting a milter process for each CPU?
> (For example, Tru64Unix does not do this.) Has anyone else come across
> this with Linux on a multi-CPU host?
>
> The milter is started as:
>
> /local/paths/mimedefang -P /local/var/spam/mimedefang-milter.pid \
> -m /local/var/spam/mimedefang-multiplexor.sock \
> -p /local/var/spam/mimedefang-milter.sock -r -t -k -T -X
>
Im running on a smp box, and have no such problems.
why don't you just rewrite the shutdown script to do a killall
<processname>, it should work aswell.
Best Regards,
Fredrik Hansen
More information about the MIMEDefang
mailing list