Date: Sat, 24 Feb 2007 23:24:42 +0100 (CET) From: Martin Blapp <mb@imp.ch> To: Daniel Eischen <deischen@freebsd.org> Subject: Re: 6.2-Release and Clamd 0.90 with libpthread.so Message-ID: <20070224231443.S18301@godot.imp.ch> Resent-Message-ID: <20070225080552.C18301@godot.imp.ch> In-Reply-To: <Pine.GSO.4.64.0702241344240.6160@sea.ntplx.net> References: <20070220153632.E4139@godot.imp.ch> <Pine.GSO.4.64.0702201138080.12034@sea.ntplx.net> <20070220174221.B4139@godot.imp.ch> <Pine.GSO.4.64.0702201145420.12034@sea.ntplx.net> <20070220190347.C4139@godot.imp.ch> <Pine.GSO.4.64.0702201319230.12034@sea.ntplx.net> <20070220225303.V4139@godot.imp.ch> <Pine.GSO.4.64.0702201724590.12034@sea.ntplx.net> <20070220234734.H4139@godot.imp.ch> <20070221000830.V4139@godot.imp.ch> <20070221020335.Y4139@godot.imp.ch> <20070224103422.V18301@godot.imp.ch> <Pine.GSO.4.64.0702241012230.5266@sea.ntplx.net> <20070224185741.F18301@godot.imp.ch> <Pine.GSO.4.64.0702241344240.6160@sea.ntplx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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@imp.ch> <mbr@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@freebsd.org> PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070224231443.S18301>