From owner-freebsd-fs@FreeBSD.ORG Sat Sep 22 18:24:27 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3801D106564A for ; Sat, 22 Sep 2012 18:24:27 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.31.39]) by mx1.freebsd.org (Postfix) with ESMTP id E18418FC08 for ; Sat, 22 Sep 2012 18:24:26 +0000 (UTC) Received: from [87.79.193.113] (helo=fabiankeil.de) by smtprelay01.ispgateway.de with esmtpsa (SSLv3:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1TFUNI-00007P-4V for freebsd-fs@freebsd.org; Sat, 22 Sep 2012 20:24:20 +0200 Date: Sat, 22 Sep 2012 20:24:14 +0200 From: Fabian Keil To: freebsd-fs@freebsd.org Message-ID: <20120922202414.7ed96a21@fabiankeil.de> In-Reply-To: <20110625134031.3cbc5952@fabiankeil.de> References: <20110227202957.GD1992@garage.freebsd.pl> <20110228192129.119cac0c@r500.local> <20110307200634.3c0f92df@r500.local> <20110307202531.2c90ff5a@r500.local> <20110625134031.3cbc5952@fabiankeil.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/cewI3g88P4=WQ__Y4mACAgb"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 Subject: Re: g_wither_washer() called 470000 times per second X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2012 18:24:27 -0000 --Sig_/cewI3g88P4=WQ__Y4mACAgb Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Fabian Keil wrote: > Apparently what's eating the cpu is the kernel calling > g_wither_washer() about 470000 time per second which > seems a bit excessive: >=20 > r500# dtrace -n 'fbt:kernel:g_*:entry { @[probefunc, stack()] =3D count()= ; } tick-1sec { trunc(@, 15); printa(@); trunc(@)}' > dtrace: description 'fbt:kernel:g_*:entry ' matched 232 probes > CPU ID FUNCTION:NAME > [...] > g_wither_washer =20 > kernel`g_run_events+0x358 > kernel`fork_exit+0x11f > kernel`0xffffffff808debde > 475959 >=20 This is now kern/171865: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D171865 Fabian --Sig_/cewI3g88P4=WQ__Y4mACAgb Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBeAlQACgkQBYqIVf93VJ3z0gCdFKfwM97OYGIOvd+RHr++LyyZ 6BwAn0FfFyF35ycj5jYwT2nsqlhqrEyC =0kU6 -----END PGP SIGNATURE----- --Sig_/cewI3g88P4=WQ__Y4mACAgb--