[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <BANLkTi=OYC8A-sZanTgwDZmz1aC16s4aTQ@mail.gmail.com>
Date: Sun, 26 Jun 2011 22:31:56 -0400
From: Kyle Moffett <kyle@...fetthome.net>
To: Arjan van de Ven <arjan@...radead.org>
Cc: pradeep hettiarachchi <pradeepmh@...ne.edu>,
linux-kernel@...r.kernel.org
Subject: Re: CPU Instantaneous Power Consumption
On Sun, Jun 26, 2011 at 17:47, Arjan van de Ven <arjan@...radead.org> wrote:
> On Mon, 20 Jun 2011 22:15:47 -0400
> pradeep hettiarachchi <pradeepmh@...ne.edu> wrote:
>
>> Hi,
>>
>> I am a PhD student and doing a research which involves
>> control-theoretic real-time process/job scheduling. Here is my
>> question:
>>
>> I need to calculate the power consumption of a single or two CPU cores
>> and equivalent Thermal Dissipation accurately. I did not find any
>> supporting material from Intel to find the instantaneous power
>> consumption (and thermal dissipation) of the CPU. Therefore I am
>> trying some alternative path; I measure the CPU regulator input
>> current (using a very small shunt resister in series with 4 pin CPU
>> ATX connector). Also, assuming that the CPU voltage regulator operates
>> at 12 V rated, I could calculate the input power to the CPU regulator.
>>
>> However without knowing the following I cannot complete my power
>> calculation:
>>
> there isn't one.
> TDP is the power the CPU will use under a "power virus" like workload,
> eg this is the number that a system vendor is expected to be able to
> cool.
>
> What you actually use on a real life workload is less than that... how
> much less "depends"
The Thermal Design Power is very specifically not a chip-specific
parameter but a whole-system or whole-component design metric,
including the CPU and GPU as well as any chipset controllers, add-in
cards, etc.
For example, in a modern Intel laptop, the CPU may well have minimum
and maximum TDP numbers, but the processor boots up in low-power
mode and relies on the BIOS to program various secret model-specific
registers and other tunables to tell the CPU exactly how much power it
can use and how hot it can get, based on the "whole system" TDP.
Those power numbers *also* account for how hot the ethernet chipset
and SATA controller might get under maximum load.
Thermal Design Power also allows for short-term thermal overload;
something like Intel's "TurboBoost" where you can run the CPU very
cool at idle for 20 minutes (IE: writing code in "vim") and then turn the
frequency/power up above the steady-state max for 15-30 seconds of
high CPU usage (IE: compiling code), and then put it back into a lower
frequency state before it gets too hot.
It's even more complex when you consider shared cooling between
the CPU and GPU; if your GPU is at steady-state max frequency and
power then your CPU must be limited to ~60%, or vice versa.
Cheers,
Kyle Moffett
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists