[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110626144742.2f6ae3ef@infradead.org>
Date: Sun, 26 Jun 2011 14:47:42 -0700
From: Arjan van de Ven <arjan@...radead.org>
To: pradeep hettiarachchi <pradeepmh@...ne.edu>
Cc: linux-kernel@...r.kernel.org
Subject: Re: CPU Instantaneous Power Consumption
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:
>
> 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
cool.
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,
visit http://www.lesswatts.org
--
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