From owner-freebsd-stable@FreeBSD.ORG Fri Sep 11 15:45:49 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 0C255106566B for ; Fri, 11 Sep 2009 15:45:49 +0000 (UTC) (envelope-from pldrouin@pldrouin.net) Received: from smtp.cyberfingers.net (smtp.cyberfingers.net [198.177.254.227]) by mx1.freebsd.org (Postfix) with ESMTP id DA5E78FC2B for ; Fri, 11 Sep 2009 15:45:48 +0000 (UTC) Received: from mdaemon.pldrouin.net (CPE0023695b905f-CM001a666aca96.cpe.net.cable.rogers.com [99.246.67.95]) by smtp.cyberfingers.net (Postfix) with ESMTP id 18610AB6C6F; Fri, 11 Sep 2009 11:45:47 -0400 (EDT) Message-ID: <4AAA70C5.5090408@pldrouin.net> Date: Fri, 11 Sep 2009 11:46:13 -0400 From: Pierre-Luc Drouin User-Agent: Thunderbird 2.0.0.23 (X11/20090824) MIME-Version: 1.0 To: John Baldwin References: <4AA9A07C.4050200@pldrouin.net> <200909111105.01619.jhb@freebsd.org> In-Reply-To: <200909111105.01619.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org 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:45:49 -0000 John Baldwin wrote: > 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, > FreeBD 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. > > Sorry I am not sure exactly what you are referring to. Do you mean that I need to enable C2/C3 states in order to have the correct max CPU freq value displayed at boot time/in sysctl, or you mean that I need these states in order to be able to use the Turbo Mode at all? Right now in the BIOS I had the following features disabled to test the overclocking (I was following what is recommended to do for Windows users to run stress tests): -Intel SpeedStep: Use this function to enable the Intel SpeedStep technology (EIST) -CxE Function: This function allows you to select the lowest C state supported according as CPU and MB. The options are Auto, Disabled, C1, C1E, C3 and C6 Thanks!