Matthew Garrett ([info]mjg59) wrote,
@ 2008-05-09 16:09:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Entry tags:advogato

My previous entry was somewhat misleading in one respect - the discussion of the power consumption of a downclocked processor. The problem is that nowadays, halving your CPU frequency doesn't halve the power consumption (see the figures in Arjan's slides from OSCON last year, for instance). I'm assuming that this is due to the cache size on modern hardware being sufficiently large that it dominates the power consumption of the processor. Dropping the frequency doesn't reduce the amount of power required to keep the contents of the cache alive, so the saving is less than you'd expect. Deeper C states disable the cache and save much more power.

So, if halving your speed means everything takes twice as long but doesn't even halve your power consumption, what's the point in having P states at all? There's a certain amount of latency and power involved in moving between C states, and if the choice is between rapidly cycling between full speed and C4 or just sticking at low speed and maybe dropping into C1 or C2, then executing code at the lower performance state may be beneficial. The ondemand governor takes this into account by looking at the amount of load on the processor over time, so if this doesn't hit a threshold value it'll assume that you're better off staying at the lower performance level.



(Post a new comment)

It 'depends'
(Anonymous)
2008-05-09 04:29 pm UTC (link)
It did/does depend on the CPU in question. My laptop has a Turion ML-30, which is at 35 watts TDP @ 1.6 GHz. There exists a TL-30 CPU, same frequency, which is at 25 watts. The optimum for these processors might not be the same as the power @ 800 MHz is supposed to be the same (ISTR 8 watts).

Power is dependent on:
- leakage
- capacitive power

Capacitive power is ~ F * V^2.
Leakage might be proportional to V or V^2.

That said, slowing down flash ads doesn't break the browsing experience while extending battery life. Having a choice can make sense.

(Reply to this)

Ondemand vs Conservative
(Anonymous)
2008-05-10 02:19 pm UTC (link)
What should all of this be telling me about the ondemand vs conservative governor? For anyone not familiar, conservative does not jump the processor to its highest speed when a threshold is reached. It bumps it up step by step, "conservatively".

(Reply to this)

Static vs Dynamic power consumption
(Anonymous)
2008-05-11 07:46 pm UTC (link)
Hmm, skiving off PhD work reading LJ and it continues to haunt me! Yes indeedy, static power consumption is now pretty much on par with dynamic power consumption. Some details here:

http://en.wikipedia.org/wiki/Subthreshold_leakage

Good luck with fixing that in software!

(where are my IRIX CDs?)

(Reply to this)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…