From owner-freebsd-current@FreeBSD.ORG Mon Jun 20 18:23:37 2005 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 99B4316A421 for ; Mon, 20 Jun 2005 18:23:37 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 421E043D55 for ; Mon, 20 Jun 2005 18:23:35 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.41.231] (Not Verified[216.133.140.1]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Mon, 20 Jun 2005 14:37:05 -0400 From: John Baldwin To: Jens Schweikhardt Date: Mon, 20 Jun 2005 13:44:09 -0400 User-Agent: KMail/1.8 References: <20050516113420.GA786@schweikhardt.net> <200506171450.44146.jhb@FreeBSD.org> <20050618105918.GA1551@schweikhardt.net> In-Reply-To: <20050618105918.GA1551@schweikhardt.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506201344.10176.jhb@FreeBSD.org> Cc: freebsd-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: Mon, 20 Jun 2005 18:23:37 -0000 On Saturday 18 June 2005 06:59 am, Jens Schweikhardt wrote: > On Fri, Jun 17, 2005 at 02:50:42PM -0400, John Baldwin wrote: > ... > # Is this the patch you are running with? > > Yes, with if (1) instead, which we know is the same. Ok. > # >Index: clock.c > # =================================================================== > # RCS file: /usr/cvs/src/sys/i386/isa/clock.c,v > # retrieving revision 1.220 > # diff -u -r1.220 clock.c > # --- clock.c 14 May 2005 09:10:01 -0000 1.220 > # +++ clock.c 27 May 2005 19:42:54 -0000 > # @@ -784,7 +784,7 @@ > # * clocks, setup the interrupt handler for the 8254 timer 0 so > # * that it can drive hardclock(). > # */ > # - if (!using_lapic_timer) { > # + if (!using_lapic_timer || 1) { > # intr_add_handler("clk", 0, (driver_intr_t *)clkintr, > NULL, # INTR_TYPE_CLK | INTR_FAST, NULL); > # i8254_intsrc = intr_lookup_source(0); > # > # Also, can you get the output of 'sysctl kern.clockrate' for both cases? > > As reported upthread, it's the same for both cases, > > $ sysctl -a | grep hz > kern.clockrate: { hz = 1000, tick = 1000, profhz = 666, stathz = 133 } > debug.psm.hz: 20 > > See http://lists.freebsd.org/pipermail/freebsd-current/2005-May/050210.html > for the whole thread. I did glance over it, but I don't really have time to read every e-mail on current@ in detail. :( Do you have verbose dmesg's for both cases? If so, can you get the 'lapic: Divisor' lines from each boot? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org