`On Mon, 20 Jun 2011 22:15:47 -0400pradeep hettiarachchi <pradeepmh@wayne.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'snot 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 tocool.What you actually use on a real life workload is less than that... howmuch 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 hundredinstructions) it gets much more tricky, since the CPU will act as avery big capacitor as well (as do other parts of the system); all willsmooth out current and voltage changes... limiting your visibilityresolution (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 tothe VID is not the instantaneous voltage. It's a minimum voltage a CPUrequests from the VR's.... what you actually get is much more variableand depends also on current spikes/drops.To calculate power you need to multiple the actual instantaneousvoltage by the instantaneous current..... and then all you get is thepower going into the capacitor .. not the "power dissipated" number.-- Arjan van de Ven 	Intel Open Source Technology CentreFor development, discussion and tips for power savings, visit http://www.lesswatts.org`