From owner-freebsd-questions@FreeBSD.ORG Tue Dec 9 12:16:11 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1185C106564A for ; Tue, 9 Dec 2008 12:16:11 +0000 (UTC) (envelope-from glavoie@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id CED418FC08 for ; Tue, 9 Dec 2008 12:16:10 +0000 (UTC) (envelope-from glavoie@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1613297rvf.43 for ; Tue, 09 Dec 2008 04:16:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=TgLkzCzbB/6d1zQ7V1ujFqBB6A02kSRseKdu0Tw9Oos=; b=s+gFpnWrcTo+PQtzv2P/dvjXPdM9gc1f+DrvCee5VMsPtgD06KO/bKtNmZJvs1R1L5 p0GZH9lTFk0iemzwuGMjcwx/iLb6KZNxNhl11xvisua8c6Z1FAmzI5xpocVnuFnkpv0y 1KQ+hqU+P5hiBa2CMAzk5hexwsqxDiqf95na4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=Y58ZXFyBTOq9dvctV50xgEb3hXZCRUlf+L5XqE0m/os1reLrU/ldzeDLyTzBrQzzEl fJ5FnWYBSC68T65MTaRYOoypqRFqss5HSzJQp0uuReHQLqHeaDot19k9vvy67jjUXSPf wilrknBjZ2MuKHQdKDQd1Hu7j/Z1jRQxmSA+s= Received: by 10.141.53.1 with SMTP id f1mr36480rvk.4.1228824969856; Tue, 09 Dec 2008 04:16:09 -0800 (PST) Received: by 10.141.168.6 with HTTP; Tue, 9 Dec 2008 04:16:09 -0800 (PST) Message-ID: Date: Tue, 9 Dec 2008 07:16:09 -0500 From: "Gabriel Lavoie" To: "Ian Smith" In-Reply-To: <20081209163440.J94168@sola.nimnet.asn.au> MIME-Version: 1.0 References: <20081209030117.BDE66106575E@hub.freebsd.org> <20081209163440.J94168@sola.nimnet.asn.au> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Intel Pentium Dual Core E5200 and Enhanced Speedstep X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 12:16:11 -0000 2008/12/9 Ian Smith > On Mon, 8 Dec 2008 13:37:09 -0500 Gabriel Lavoie > wrote: > > > I have a small problem/question about my Pentium Dual Core E5200. I > > have this system running as a server since 1 month and I just noticed > > that the CPU frequency may not be running at the highest speed. With > > my other computer that has a Core 2 Duo, I noticed that under Windows > > and Linux, the CPU frequency steps down at 2 GHz when the CPU is idle > > and increases at 2.66 GHz when the CPU is under load. With this > > FreeBSD Pentium Dual Core, I just noticed using sysctl that the > > frequency after booting the system is at 1.25 GHz and it doesn't go > > up automatically at 2.5 GHz under load. > > > > dev.cpu.0.freq: 1254 > > dev.cpu.0.freq_levels: 2508/-1 2194/-1 1881/-1 1567/-1 1254/-1 940/-1 > > 627/-1 313/-1 > > > > If I do "sysctl dev.cpu.0.freq=2508", the frequency gets changed: > > > > [root@headless /home/wildchild]# sysctl dev.cpu.0.freq=2508 > > dev.cpu.0.freq: 1254 -> 2508 > > [root@headless /home/wildchild]# sysctl -a | grep cpu.0.freq > > dev.cpu.0.freq: 2508 > > dev.cpu.0.freq_levels: 2508/-1 2194/-1 1881/-1 1567/-1 1254/-1 940/-1 > > 627/-1 313/-1 > > > > Why isn't the frequency isn't increased automatically under load? And > > why is it at 1.254 GHz after boot and not at the maximum frequency? > > It seems you are not running powerd, which is what monitors the load and > adjusts frequency. Add powerd_enable="YES" to rc.conf and either reboot > or just run '/etc/rc.d/powerd start' (or run powerd -v in a terminal to > verify that it's shifting freqs according to your load requirements) Will check about that. > > > Speculation on the second matter below .. > > > Another thing I noticed with "dmesg" is the following error (CPU > > supports Enhanced Speedstep, but is not recognized.): > > Which FreeBSD version? (uname -a) [wildchild@headless ~]$ uname -a FreeBSD headless.mutehq.net 7.0-RELEASE-p6 FreeBSD 7.0-RELEASE-p6 #0: Mon Nov 24 10:59:10 UTC 2008 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > > > cpu0: on acpi0 > > ACPI Warning (tbutils-0243): Incorrect checksum in table [OEMB] - D, > > should be 8 [20070320] > > This looks ungood. You maybe should quote the earlier dmesgs re ACPI > too. This sounds like an issue to take to the acpi@freebsd.org list. Hum, about ACPI, if I remember well, there is a BIOS option to enable/disable ACPI 2 tables. I will take a look at that. > > > > est0: on cpu0 > > est: CPU supports Enhanced Speedstep, but is not recognized. > > est: cpu_vendor GenuineIntel, msr 61a4c2006004c20 > > device_attach: est0 attach returned 6 > > 6 = fail. Either bad vendor ACPI (you've not mentioned what vendor or > model) or maybe an older FreeBSD version than would recognise your cpu > revision; you may need to run 7-STABLE or a 7.1 beta; dunno about 6.4. > > Either way, EST isn't functioning, or you'd have a larger range of freqs > available than these eight, and milliWatt figures instead of those -1. > There's no sign of 2.66GHz either, if that's expected? 2.66 GHz isn't expected, the CPU is an Intel Pentium Dual Core E5200 @ 2.5 GHz. It's one of the newest 45nm CPUs that were released in August 2008. The motherboard is an ASUS P5KPL-CM and the BIOS is updated to the latest version. > > > > p4tcc0: on cpu0 > > p4tcc attached ok. That's what provides the 8 freqs you have, in 12.5% > steps from 8/8 downto 1/8 of the base freq. While this helps control > temperature it's not as effective as EST (which also modifies cpu core > voltage) for managing power use, so you need to locate that problem. > > > cpu1: on acpi0 > > est1: on cpu1 > > est: CPU supports Enhanced Speedstep, but is not recognized. > > est: cpu_vendor GenuineIntel, msr 61a4c2006004c20 > > device_attach: est1 attach returned 6 > > Ditto, and presumably you have a p4tcc1 as as well? Yes. > > > > Why do I get this error? > > > > I found this problem with my machine after I looked at an article > > telling that the new 45nm Intel CPUs were idling at around 3-4W when > > Speedstep is decreasing their frequency. And I guess it means that > > I've been running my server at 1.25 GHz all the time since I > > installed it, which would explain why some compiling jobs were slow! > > Sure. Why it starts at 50% I don't know, unless something thinks there > is a temperature problem? Anyway, you need powerd, and you likely need > to check the acpi@ list about getting your EST working .. you may even > need a BIOS upgrade or hacking on your ACPI ASL, but hopefully not .. > > And post them more details; at least the full /var/run/dmesg.boot and > the results of 'sysctl hw.acpi dev.cpu' .. saving rounds of questions. About the 50%, if I check the CPU frequency in the BIOS, it is always at 50%, probably because there is not much possible CPU load in configuring it. My Core 2 Duo desktop computer has a similar behaviour if I check the frequency when idle, either under Windows, Linux or in the BIOS. The max CPU frequency is 2.66 GHz and it always idles at 2 GHz. > > > cheers, Ian Thanks, Gabriel -- Gabriel Lavoie glavoie@gmail.com