From owner-freebsd-current@FreeBSD.ORG Sun Feb 12 20:49:00 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D62A16A420 for ; Sun, 12 Feb 2006 20:49:00 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3752943D64 for ; Sun, 12 Feb 2006 20:48:57 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id E23FF1A3C19; Sun, 12 Feb 2006 12:48:56 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 104315462E; Sun, 12 Feb 2006 15:48:55 -0500 (EST) Date: Sun, 12 Feb 2006 15:48:55 -0500 From: Kris Kennaway To: Poul-Henning Kamp Message-ID: <20060212204855.GA94458@xor.obsecurity.org> References: <20060212220216.F1605@free.home.local> <29218.1139772457@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <29218.1139772457@critter.freebsd.dk> User-Agent: Mutt/1.4.2.1i Cc: Yuriy Tsibizov , freebsd-current@freebsd.org Subject: Re: calcru: runtime went backwards X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2006 20:49:00 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 12, 2006 at 07:27:37PM +0000, Poul-Henning Kamp wrote: > In message <20060212220216.F1605@free.home.local>, Yuriy Tsibizov writes: > >On Sun, 12 Feb 2006, Poul-Henning Kamp wrote: > >> In message <20060212114050.I1160@free.home.local>, Yuriy Tsibizov writ= es: > >>> while playing 8 PCM streams in parallel (it uses almost all CPU power= I > >>> have). > >>> > >>> -CURRENT with last changes to src/sys from imp at 2006-02-11 03:58:07= UTC > >> > >> Can you try to update to a more recent current ? I think you have > >> not gotten my latest commit to the cpu time accounting at that > >> point... > >With -CURRENT up to 2006-02-12 06:57:41 UTC (last commit by scottl) > >I still can see some calcru messages: >=20 > Right, but these have much smaller deltas than the other ones you saw. >=20 > >calcru: runtime went backwards from 3508844 usec to 3508842 usec for pid= 28 (pagezero) >=20 > My theory currently is that these are side effects of the cputick > calibration code: If the cputick rate gets measured to be a bit higher, > the next calculation will result in slightly lower numbers for the > cpu utilization in microseconds and the warning will fire. >=20 > This will be particularly easy to trigger on machines with power > management on (laptops mostly). >=20 > My current inclination is to simply not issue this warning if the > cpu_tick is marked as "variable". My machine should not be varying CPU-speed either. Kris --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD7583Wry0BWjoQKURApM8AJ96wY0SUvWkw/ooXFzEQTYxzWoapACgq2tW 4inK4F1tj9m3stCv9Hxk3jY= =82Ct -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--