From owner-freebsd-current@FreeBSD.ORG Sun Jun 24 18:02:14 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7C8A01065678 for ; Sun, 24 Jun 2012 18:02:14 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.29.23]) by mx1.freebsd.org (Postfix) with ESMTP id 0C3638FC1D for ; Sun, 24 Jun 2012 18:02:14 +0000 (UTC) Received: from [78.35.156.10] (helo=fabiankeil.de) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1Sir7x-0003uB-W5 for freebsd-current@freebsd.org; Sun, 24 Jun 2012 20:01:38 +0200 Date: Sun, 24 Jun 2012 19:59:51 +0200 From: Fabian Keil Cc: freebsd-current@freebsd.org Message-ID: <20120624195951.25f3e5f5@fabiankeil.de> In-Reply-To: <20110820230510.4363cefc@fabiankeil.de> References: <20110820230510.4363cefc@fabiankeil.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/zodQKKVJ9MSr8yi=/JT9SpM"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 Subject: Re: dtrace walltimestamp 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, 24 Jun 2012 18:02:14 -0000 --Sig_/zodQKKVJ9MSr8yi=/JT9SpM Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Fabian Keil wrote: > At least on my system, timestamp offsets can only can be relied > on with either kern.timecounter.hardware=3DTSC or with C3 > states disabled, though. >=20 > Measuring the elapsed time (in ms) between events that happen > in roughly 1 second intervals with kern.timecounter.hardware=3DHPET > and dev.cpu.0.cx_lowest=3DC2: >=20 > elapsed > value ------------- Distribution ------------- count > 990 | 0 > 1000 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 57 > 1010 | 0 > 1020 | 0 > 1030 |@ 1 > 1040 | 0 >=20 > elapsed avg 1007 >=20 > And doing the same with dev.cpu.0.cx_lowest=3DC3: >=20 > elapsed > value ------------- Distribution ------------- count > 40 | 0 > 50 |@@@@@@@@@@@@@@@@@@@ 28 > 60 |@@@@@@@ 10 > 70 |@@@ 5 > 80 |@ 1 > 90 | 0 > 100 |@ 2 > 110 |@ 2 > 120 |@ 2 > 130 | 0 > 140 |@ 1 > 150 |@ 1 > 160 |@ 1 > 170 |@ 1 > 180 | 0 > 190 | 0 > 200 | 0 > 210 | 0 > 220 |@ 1 > 230 |@ 1 > 240 | 0 > 250 | 0 > 260 | 0 > 270 | 0 > 280 | 0 > 290 |@ 1 > 300 |@ 1 > 310 | 0 > 320 |@ 1 > 330 | 0 >=20 > elapsed avg 90 Copying over some code from mips seems to fix this: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Damd64/169379 Fabian --Sig_/zodQKKVJ9MSr8yi=/JT9SpM Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/nVZwACgkQBYqIVf93VJ38+gCfUugCgXyuI4PtlVsodqZITO6t MYkAnRHEjbdw+DGE7D+H5jRkq9bSYCRd =3m5i -----END PGP SIGNATURE----- --Sig_/zodQKKVJ9MSr8yi=/JT9SpM--