From owner-freebsd-threads@FreeBSD.ORG Mon Feb 26 08:17:35 2007 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6064B16A402; Mon, 26 Feb 2007 08:17:35 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 98B0813C4B2; Mon, 26 Feb 2007 08:17:33 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (26stdgmeoyeyoy5h@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l1Q7eei3076865; Sun, 25 Feb 2007 23:40:40 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l1Q7ebif076864; Sun, 25 Feb 2007 23:40:37 -0800 (PST) (envelope-from jmg) Date: Sun, 25 Feb 2007 23:40:37 -0800 From: John-Mark Gurney To: Martin Blapp Message-ID: <20070226074037.GJ73385@funkthat.com> Mail-Followup-To: Martin Blapp , Daniel Eischen , rob@debank.tv, freebsd-threads@freebsd.org References: <20070220190347.C4139@godot.imp.ch> <20070220225303.V4139@godot.imp.ch> <20070220234734.H4139@godot.imp.ch> <20070221000830.V4139@godot.imp.ch> <20070221020335.Y4139@godot.imp.ch> <20070224103422.V18301@godot.imp.ch> <20070224185741.F18301@godot.imp.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070224185741.F18301@godot.imp.ch> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: Daniel Eischen , rob@debank.tv, freebsd-threads@freebsd.org Subject: Re: 6.2-Release and Clamd 0.90 with libpthread.so X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 08:17:35 -0000 Martin Blapp wrote this message on Sat, Feb 24, 2007 at 19:06 +0100: > >>Running ktrace with libc_r or libthr I can't see a single call to fork(). > >>Is ktrace lying to me ? Why do I only see fork()s with libpthread ? > > > >The kse upcalls might look like forks to ktrace? > > > > That could be. Is it easy to fix this for ktrace ? > > Anyway, that still doesn't solve the problem for me, since > clamd with libpthreads is extremly CPU hungry and is slow. > > I really miss something to profile like strace on solaris to > see where it spends most CPU cycles. The problem is not that > it doesn't work, the problem is that it works far too slow. Have you tried using pmc? Works at full processor speed... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."