From owner-freebsd-stable@FreeBSD.ORG Fri Sep 11 15:19:28 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1720106566B for ; Fri, 11 Sep 2009 15:19:28 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id A4C878FC1B for ; Fri, 11 Sep 2009 15:19:28 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 567C446B23; Fri, 11 Sep 2009 11:19:28 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 8F6A08A01F; Fri, 11 Sep 2009 11:19:27 -0400 (EDT) From: John Baldwin To: freebsd-stable@freebsd.org Date: Fri, 11 Sep 2009 11:05:01 -0400 User-Agent: KMail/1.9.7 References: <4AA9A07C.4050200@pldrouin.net> In-Reply-To: <4AA9A07C.4050200@pldrouin.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200909111105.01619.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Fri, 11 Sep 2009 11:19:27 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Pierre-Luc Drouin Subject: Re: How to enable CPU turbo mode on FreeBSD? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2009 15:19:28 -0000 On Thursday 10 September 2009 8:57:32 pm Pierre-Luc Drouin wrote: > Hi, > > I have an overclocked i7 920 CPU for which I have enabled Turbo Mode in > the BIOS (21x multiplier). The base clock is set at 190 MHz, so the CPU > frequency with Turbo mode activated should be 3990 MHz. However the > maximum value FreeBSD amd64 shows for the CPU frequency in dmesg and > sysctl is 3790 MHz. How can I enable the Turbo Mode? > > CPU: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz (3790.52-MHz > K8-class CPU) > > machdep.acpi_timer_freq: 3579545 > machdep.tsc_freq: 3790522507 > machdep.i8254_freq: 1193182 > dev.cpu.0.freq: 349 > dev.cpu.0.freq_levels: 2793/130000 2443/113750 2094/97500 1745/81250 > 1396/65000 1047/48750 698/32500 349/16250 You have to enable C2/C3 sleep states (possibly in your BIOS). However, FreeBSD doesn't currently handle this but so well since that will probably turn off the local APIC timer interrupt when the CPU is idle causing FreeBSD to miss clock interrupts. -- John Baldwin