From owner-freebsd-hackers Tue Feb 5 20:51:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 8FFF737B417 for ; Tue, 5 Feb 2002 20:51:07 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g164owi13331; Tue, 5 Feb 2002 21:50:59 -0700 (MST) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g164owL34763; Tue, 5 Feb 2002 21:50:58 -0700 (MST) (envelope-from imp@village.org) Date: Tue, 05 Feb 2002 21:50:36 -0700 (MST) Message-Id: <20020205.215036.93760885.imp@village.org> To: jdp@polstra.com Cc: hackers@FreeBSD.ORG, phk@critter.freebsd.dk Subject: Re: A question about timecounters From: "M. Warner Losh" In-Reply-To: <200202051906.g15J68E04216@vashon.polstra.com> References: <91801.1012935515@critter.freebsd.dk> <200202051906.g15J68E04216@vashon.polstra.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <200202051906.g15J68E04216@vashon.polstra.com> John Polstra writes: : I'm testing that now. But for how long would microuptime have to : be interrupted to make this happen? Surely not 7.81 seconds! On : this same machine I have a curses application running which is : updating the screen once a second. It never misses a beat, and : userland is very responsive. Silly hypothesis. It isn't losing 7.81 seconds of time. Rather it is being interrupt at the wrong time and the wrap detection code works badly when interrupted at that point. So you aren't blocked for 7.81 seconds, but rather for 0.02 seconds since you are seeing the 7.79 jump. You are basically catching the wrong edge of the phase of the TSC. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message