6.2-Release and Clamd 0.90 with libpthread.so

Martin Blapp mb at imp.ch
Sun Feb 25 07:06:01 UTC 2007


Let me make a summary:

With kern.threads.virtual_cpu=1 clamd works best with libpthread.
It uses almost no CPU. With kern.threads.virtual_cpu=2 or
kern.threads.virtual_cpu=4 and growing scanner load, the CPU load
grows exponentially.

The initial fork() seems not to be the problem. It happens in
the foreground mode (without any fork call) too, but only if
there is some amount of scanner load.

Setting maxthreads in clamd.conf seems to make the situation
even worse.

libthr and libc_r work without any problems and ktrace here doesn't
show any fork() calls at all.

I wonder if something else could get libpthread spinning on
kse activation stuff. I still think something is wrong here.

Martin

Martin Blapp, <mb at imp.ch> <mbr at FreeBSD.org>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: <finger -l mbr at freebsd.org>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------



More information about the freebsd-threads mailing list