From owner-freebsd-current@FreeBSD.ORG Sun Jan 16 20:46:16 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 4D9DB16A4CE for ; Sun, 16 Jan 2005 20:46:16 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id B61E643D2F for ; Sun, 16 Jan 2005 20:46:15 +0000 (GMT) (envelope-from avleeuwen@gmail.com) Received: by rproxy.gmail.com with SMTP id 34so709969rns for ; Sun, 16 Jan 2005 12:46:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=EQgHCRGeivapQmTOpkRmn/dEr302GaLpz9sfi1RIT0s4LcaS9eJoCVMAkXLb19yyRNDMZhQ+L08ZWn3eUJoc3PQ38u6ox3mZHKkCe+RnwtCpQOLK2FNgDIT36/5057q3d16MOL3F+8Wc5etvuARQDQ1PcTZqixYzT7U3RbRWoeE= Received: by 10.38.206.10 with SMTP id d10mr13266rng; Sun, 16 Jan 2005 12:46:15 -0800 (PST) Received: by 10.38.206.16 with HTTP; Sun, 16 Jan 2005 12:46:15 -0800 (PST) Message-ID: Date: Sun, 16 Jan 2005 21:46:15 +0100 From: Arjan Van Leeuwen To: John Baldwin In-Reply-To: <200501141546.31386.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200501141546.31386.jhb@FreeBSD.org> cc: current@freebsd.org Subject: Re: [PATCH] Use local APIC timer to drive kernel clocks X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Arjan Van Leeuwen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jan 2005 20:46:16 -0000 On Fri, 14 Jan 2005 15:46:31 -0500, John Baldwin wrote: > I have a patch that uses the local APIC timer to drive the kernel clocks > (hardclock, statclock, and profclock) instead of the ISA timer and RTC. The > advantage of this change is that SMP machines can stop using IPIs to bounce > clock interrupts around all the time. Currently the code will always use the > local APIC timer if an APIC is being used, but it might be desirable to only > use the timer if we have more than one CPU. Some caveats and details: > (...) > > Please test and let me know if there are any regressions. Thanks. Patch is > at http://www.FreeBSD.org/~jhb/patches/lapic_timer.patch Yes! My SMP system had a big problem with the clock (it did 500Hz when it should do 1000Hz, 50Hz when it should do 100Hz, etc...) that caused all kinds of weird problems and miscalculations. This patch fixes it! Thanks, Arjan > > -- > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve" = http://www.FreeBSD.org > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >