From owner-freebsd-current@FreeBSD.ORG Thu Jun 30 20:35:56 2005 Return-Path: X-Original-To: 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 0B54F16A41C; Thu, 30 Jun 2005 20:35:56 +0000 (GMT) (envelope-from schweikh@schweikhardt.net) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91D7743D1D; Thu, 30 Jun 2005 20:35:55 +0000 (GMT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id F180E3B8F0; Thu, 30 Jun 2005 22:35:53 +0200 (CEST) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) by hal9000.schweikhardt.net (8.13.3/8.13.3) with ESMTP id j5UKZfFt001194; Thu, 30 Jun 2005 22:35:41 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.13.3/8.13.3/Submit) id j5UKZfQV001193; Thu, 30 Jun 2005 22:35:41 +0200 (CEST) (envelope-from schweikh) Date: Thu, 30 Jun 2005 22:35:41 +0200 From: Jens Schweikhardt To: John Baldwin Message-ID: <20050630203541.GA764@schweikhardt.net> References: <20050516113420.GA786@schweikhardt.net> <200506291421.09040.jhb@FreeBSD.org> <20050629220151.GA760@schweikhardt.net> <200506301332.48829.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200506301332.48829.jhb@FreeBSD.org> User-Agent: Mutt/1.5.9i Cc: current@freebsd.org Subject: Re: Timekeeping hosed by factor 3, high lapic[01] interrupt rates 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: Thu, 30 Jun 2005 20:35:56 -0000 John et al, # > # and then apply http://www.FreeBSD.org/~jhb/patches/i8254_lapic.patch # > # and rebuild and capture the same output again? # > # > 404. There's only a lapic_timer.patch dated 14-Jan-2005 20:29... # > Please don't lose your sanity :-) # # Ah, uploading it now. Got it. And it works! Script started on Thu Jun 30 22:21:04 2005 # /etc/rc.d/ntpd stop Stopping ntpd. # ntpdate 192.53.103.103; sleep 10; ntpdate 192.53.1031.103 30 Jun 22:21:38 ntpdate[615]: step time server 192.53.103.103 offset 0.605704 sec 30 Jun 22:21:49 ntpdate[617]: adjust time server 192.53.103.103 offset -0.003176 sec # sysctl kern.timecounter.hardware=i8254 kern.timecounter.hardware: TSC -> i8254 # ntpdate 192.53.103.103; sleep 10; ntpdate 192.53.103.103 30 Jun 22:22:27 ntpdate[629]: adjust time server 192.53.103.103 offset -0.008593 sec 30 Jun 22:22:38 ntpdate[631]: adjust time server 192.53.103.103 offset -0.006727 sec # ntpdate 192.53.103.103; sleep 10; ntpdate 192.53.103.103 30 Jun 22:22:48 ntpdate[632]: adjust time server 192.53.103.103 offset -0.004264 sec 30 Jun 22:22:59 ntpdate[634]: adjust time server 192.53.103.103 offset -0.001882 sec # vmstat -i interrupt total rate irq1: atkbd0 360 1 irq12: psm0 4114 22 irq13: npx0 1 0 irq14: ata0 68 0 irq15: ata1 82 0 irq18: em0 77 0 irq24: ahd0 4232 23 irq25: ahc0 15 0 lapic0: timer 364343 1980 Total 373292 2028 And when booting without kern.smp.disabled=1 interrupt total rate irq1: atkbd0 462 2 irq12: psm0 188 0 irq13: npx0 1 0 irq14: ata0 68 0 irq15: ata1 82 0 irq18: em0 38 0 irq24: ahd0 4553 19 irq25: ahc0 15 0 lapic0: timer 456392 1992 lapic1: timer 436538 1906 Total 898337 3922 Script done on Thu Jun 30 22:23:35 2005 If you could get this fix past re@ for 6.0 that would be nice. Thanks John and Doug, for all your support in tracking this down! Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped)