From: | "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx> |
Date: | Mon, 02 Jul 2007 23:07:39 +0200 |
On Mon, Jul 02, 2007 at 07:06:21PM +0200, Simon 'corecode' Schubert wrote:Matthew Dillon wrote:Very nice. I've been meaning to do this. We could use monitor/mwait on core2duo CPUs for power reduction for example (also when waiting for the mplock/scheduler changes in the idle loop).Log: Implement an architecture call for contended spinlocks so the vkernel can insert a usleep().
On my core2duo laptop replacing cpu_idle_hook() with one using mwait to enter enhanced halt states resulted in lowering the maximal cpu temperature from above 60 to below 55 degrees and made the cpu fan run less often. I even made some graphs representing the cpu temperature in time[1] on an idle system.
However, I believe that lowering cpu voltage and frequency via EST and estd should give better results. Some time ago I wrote a kernel module implementing EST for those cpus[2] in an ACPI-independent way.
Nice thing is that one can set voltage and frequency idependently of each other, at least on my cpu ;-) And it was working with estd.
Now it's probably non-compilable after some SYSINIT-related macros had been renamed. Note that it's based only on intel docs and my own experiments so there might be bugs in it.
thanks! simon
-- Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
Attachment:
signature.asc
Description: OpenPGP digital signature