From owner-freebsd-current@FreeBSD.ORG Wed May 18 22:04:39 2005 Return-Path: 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 EB57E16A4CE for ; Wed, 18 May 2005 22:04:39 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B03843DA1 for ; Wed, 18 May 2005 22:04:39 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id A30E572DD4; Wed, 18 May 2005 15:04:39 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id A055A72DCB; Wed, 18 May 2005 15:04:39 -0700 (PDT) Date: Wed, 18 May 2005 15:04:39 -0700 (PDT) From: Doug White To: Jens Schweikhardt In-Reply-To: <20050516113420.GA786@schweikhardt.net> Message-ID: <20050518150346.S87264@carver.gumbysoft.com> References: <20050516113420.GA786@schweikhardt.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.1 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: Wed, 18 May 2005 22:04:40 -0000 On Mon, 16 May 2005, Jens Schweikhardt wrote: > hello, world\n > > the timekeeping on my CURRENT system as of May 15 is very strange. The > time as reported by date(1) increases too slow by a factor of 3. Things > with second intervals like sleep 1, tail -f, iostat 1, changing folders > in mutt all go slower by a factor of 3. > > The system bios date however is correct, and a kernel as of March does > not have this problem, so it's clearly the kernel or some other software > problem. I have investigated a bit and found the interrupt rates for the > lapic[01] being three times the value on the broken kernel (about 2kHz > vs 6kHz), Are you running with kern.hz or HZ set to something other than the default? > schweikh@hal9000:~ $ vmstat -i # Good kernel > interrupt total rate > irq1: atkbd0 250 0 > irq3: sio1 2 0 > irq4: sio0 2 0 > irq12: psm0 9079 25 > irq13: npx0 1 0 > irq14: ata0 84 0 > irq15: ata1 77 0 > irq18: em0 1091 3 > irq24: ahd0 9112 25 > irq25: ahc0 16 0 > lapic0: timer 722947 1997 <-- ~6057 on a bad system > irq0: clk 361525 998 > lapic1: timer 708251 1956 <-- dito > Total 1812437 5006 <-- greater than 12000 the lapic timer values should run about 2*hz. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org