[lkml]   [2011]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: CPU Instantaneous Power Consumption
On Mon, 20 Jun 2011 22:15:47 -0400
pradeep hettiarachchi <> 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:
> 1) What is the DC-to-DC CPU regulator efficiency ?

tends to be pretty high, but it's also very dependent on the load; it's
not a constant, but it's a curve depending on the output load

> 2) What is the relationship between TDP and input power to the CPU ?

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

What you actually use on a real life workload is less than that... how
much less "depends"

> 3) Do you suggest any other better method to calculate the
> instantaneous input power to the CPU ?

define "instantaneous"....
if you care about "100 milliseconds" resolution, sure you can do that.
if you want to do nanosecond kind of resolution (couple of hundred
instructions) it gets much more tricky, since the CPU will act as a
very big capacitor as well (as do other parts of the system); all will
smooth out current and voltage changes... limiting your visibility
resolution (think of it acting as a low pass filter)

> (I can think of calculating accurate instantaneous CPU power as VID
> (corresponding Vcc) x CPU_current_from_regulator; but, how do I read
> instantaneous VID ? Is there any MSR that I can instantly access to

the VID is not the instantaneous voltage. It's a minimum voltage a CPU
requests from the VR's.... what you actually get is much more variable
and depends also on current spikes/drops.
To calculate power you need to multiple the actual instantaneous
voltage by the instantaneous current..... and then all you get is the
power going into the capacitor .. not the "power dissipated" number.

Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,

 \ /
  Last update: 2011-06-26 23:49    [W:0.046 / U:4.476 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site