LWN: Comments on "The PowerClamp driver" http://lwn.net/Articles/528124/ This is a special feed containing comments posted to the individual LWN article titled "The PowerClamp driver". hourly 2 The PowerClamp driver http://lwn.net/Articles/542479/rss 2013-03-11T20:28:26+00:00 dlang <div class="FormattedComment"> not really, it takes a long time for the processor to go to sleep and wake up again, long enough that it's frequently better for the processor to idle at high speed rather than go into sleep mode.<br> </div> The PowerClamp driver http://lwn.net/Articles/542319/rss 2013-03-11T13:06:13+00:00 ssam <div class="FormattedComment"> if i am running a process that is limited by memory bandwidth, wont the CPU be spend lots of time idle, and so reducing the power consumption already? Can the CPU sleep while it is waiting for something to be fetched from RAM?<br> </div> The PowerClamp driver http://lwn.net/Articles/541946/rss 2013-03-07T23:30:29+00:00 dlang <div class="FormattedComment"> and remember that even memory access is an external event that is significantly slower than the CPU, so if what you are doing is a small amount of computation on a large amount of memory, you may be able to do it in the same amount of time with a much slower CPU.<br> </div> The PowerClamp driver http://lwn.net/Articles/541933/rss 2013-03-07T22:53:05+00:00 dgm <div class="FormattedComment"> <font class="QuotedText">&gt; If you deliberately hobble the workload to use less power, it takes more time</font><br> <p> Not if your work depends on external events, that is, IO. And it all depends on the characteristics of the system. If you can do it 10% slower at half the power consumption, it may very well be worth the wait.<br> </div> The PowerClamp driver http://lwn.net/Articles/541922/rss 2013-03-07T21:57:49+00:00 pjones <div class="FormattedComment"> energy = power * time. If you deliberately hobble the workload to use less power, it takes more time, but also operates less efficiently. This means you'll use more energy.<br> </div> The PowerClamp driver http://lwn.net/Articles/529075/rss 2012-12-13T15:59:10+00:00 redden0t8 <div class="FormattedComment"> I'm kind of confused... how does reduced power consumption cost you battery life?<br> <p> Is it because a given workload will take longer to complete, and therefore take more total power by the time its done?<br> <p> If that's the case, then it's actually workload dependent. Specifically, I'm thinking of playing retro games that insist on taking 100% of the CPU. They needlessly waste power to achieve much greater that 60 fps, even with the CPU clocked to the lowest scaling frequency. Would PowerClamp not increase battery life in this scenario?<br> </div> The PowerClamp driver http://lwn.net/Articles/528892/rss 2012-12-12T16:55:29+00:00 arjan <div class="FormattedComment"> the article is clear to me, but I can see people thinking this is for "saving power" (see the first comments)...<br> <p> </div> The PowerClamp driver http://lwn.net/Articles/528890/rss 2012-12-12T16:44:57+00:00 corbet I'm confused...the word "battery" does not appear in the article. Instead I talk about things like temperature regulation. Was something not clear? The PowerClamp driver http://lwn.net/Articles/528889/rss 2012-12-12T16:40:37+00:00 arjan <div class="FormattedComment"> powerclamp is a building block towards a solution that you describe.<br> Note that if you need a "near instant" limit, a kernel level solution isn't going to work, you need something much much faster responding.<br> But if you can deal with "we need over &lt;some hundreds of milliseconds&gt; the average to be below X", and you can measure X.. this driver is what a small (userspace) control agent can use to actually impact the current consumption<br> </div> The PowerClamp driver http://lwn.net/Articles/528888/rss 2012-12-12T16:37:43+00:00 arjan <div class="FormattedComment"> Note that this is NOT about getting a longer battery life.<br> In fact, pretty much all tricks to put a limit on temperature/power consumption like this en up costing you battery life.<br> <p> This is is about limiting either temperature or current use (on laptops temperature matters, in data centers current matters, but also temperature) due to external constraints.<br> <p> We have a simple userspace app for example that can control a laptop temperature to just below the point that the fan would come on.<br> (it's very much prototype code at this point.. we're working on getting it more usable than on the one machine we ran it on).<br> <p> <p> </div> The PowerClamp driver http://lwn.net/Articles/528350/rss 2012-12-07T01:59:59+00:00 idupree <div class="FormattedComment"> Yeah, alas. I'd hoped it was a "[mechanism] to put an overall limit on the amount of power consumed" but it isn't. I was looking at certain external batteries[*] for travel which have a maximum output rating of 4.2A. My laptop (at 19V DC input) is capable of using more than 4.2A (80 W). The power brick it came with has max 6.32A; from my measurements with some of CPU/GPU/screen at full force, this higher capacity is sometimes necessary. If my system tried to draw more power at any moment, bad things might happen (I'm not sure how bad. Battery damage? Laptop shutdown?). I wouldn't buy that battery without a way to ensure the laptop's total power usage was below the limit -- which is a hard problem which this article does not appear to go anywhere near solving.<br> <p> [*] <a href="http://zikko-store.com/product_view.php?id=7">http://zikko-store.com/product_view.php?id=7</a><br> </div> The PowerClamp driver http://lwn.net/Articles/528201/rss 2012-12-06T13:56:14+00:00 Jonno <div class="FormattedComment"> <font class="QuotedText">&gt; Can someone with a clue tell me what is really going on?</font><br> Linux kernel CPU power management currently beats all other, but the CPU isn't the only thing drawing power. GPU, PCIe, and HDD power management are all areas where Linux could do significantly better. And Linux userspace is typically less power management aware than that of MacOS X, resulting in the Mac simply doing less work while on battery...<br> </div> The PowerClamp driver http://lwn.net/Articles/528192/rss 2012-12-06T11:49:00+00:00 hummassa <div class="FormattedComment"> My MacBook also has a considerably long battery life *as long as I don't do anything funny with it* (like transcoding movies or compiling a large piece of software like gcc...)<br> </div> The PowerClamp driver http://lwn.net/Articles/528188/rss 2012-12-06T11:00:15+00:00 ras <div class="FormattedComment"> <font class="QuotedText">&gt; The kernel's power management subsystem has become increasingly effective over recent years, to the point that our CPU power management is said to be second to none.</font><br> <p> OK, now I am confused.<br> <p> I always put MacBook's phenomenal battery life to excellent software power management, and by implication the Linux ecosystem had a bit of catching up to do. Admittedly this based purely on observation that MacBook's are nearly identical. For example the MacBook pro's battery capacity is approx 210kJ, a Dell is 180kJ. The other components - CPU, graphics card, memory, disk drive are all the same. Yet the Mac will last 10 hours, and the Dell 4.<br> <p> Can someone with a clue tell me what is really going on?<br> </div>