LWN: Comments on "The PowerClamp driver" https://lwn.net/Articles/528124/ This is a special feed containing comments posted to the individual LWN article titled "The PowerClamp driver". en-us Thu, 18 Sep 2025 06:37:58 +0000 Thu, 18 Sep 2025 06:37:58 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net The PowerClamp driver https://lwn.net/Articles/556381/ https://lwn.net/Articles/556381/ daniexia <div class="FormattedComment"> solved, after enabling package C state in BIOS.<br> </div> Wed, 26 Jun 2013 16:57:37 +0000 The PowerClamp driver https://lwn.net/Articles/556286/ https://lwn.net/Articles/556286/ daniexia <div class="FormattedComment"> Hi,<br> <p> I have a problem with seeing the effect of powerclamp. First, I enabled intel powerclamp driver in my menuconfig. Then, I built a new kernel 3.9.7. After rebooting, I can see the module as /sys/class/thermal/cooling_device13. When I grep it. It shows,<br> <p> cur_state:-1<br> max_state:50<br> type:intel_powerclamp<br> <p> The cur_state =-1, which means invalid state. Why is this invalid state?<br> <p> Thanks.<br> </div> Tue, 25 Jun 2013 21:22:10 +0000 The PowerClamp driver https://lwn.net/Articles/548835/ https://lwn.net/Articles/548835/ aidenn0 <div class="FormattedComment"> This sounds like something I could really use; I have no A/C where I live, and my server tends to overheat if I compile code on it in August; I could pretty easily hook into the thermal info from user-space to clamp down the CPU time when it gets too hot.<br> </div> Mon, 29 Apr 2013 17:04:03 +0000 The PowerClamp driver https://lwn.net/Articles/542479/ https://lwn.net/Articles/542479/ 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> Mon, 11 Mar 2013 20:28:26 +0000 The PowerClamp driver https://lwn.net/Articles/542319/ https://lwn.net/Articles/542319/ 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> Mon, 11 Mar 2013 13:06:13 +0000 The PowerClamp driver https://lwn.net/Articles/541946/ https://lwn.net/Articles/541946/ 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> Thu, 07 Mar 2013 23:30:29 +0000 The PowerClamp driver https://lwn.net/Articles/541933/ https://lwn.net/Articles/541933/ 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> Thu, 07 Mar 2013 22:53:05 +0000 The PowerClamp driver https://lwn.net/Articles/541922/ https://lwn.net/Articles/541922/ 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> Thu, 07 Mar 2013 21:57:49 +0000 The PowerClamp driver https://lwn.net/Articles/529075/ https://lwn.net/Articles/529075/ 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> Thu, 13 Dec 2012 15:59:10 +0000 The PowerClamp driver https://lwn.net/Articles/528892/ https://lwn.net/Articles/528892/ 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> Wed, 12 Dec 2012 16:55:29 +0000 The PowerClamp driver https://lwn.net/Articles/528890/ https://lwn.net/Articles/528890/ 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? Wed, 12 Dec 2012 16:44:57 +0000 The PowerClamp driver https://lwn.net/Articles/528889/ https://lwn.net/Articles/528889/ 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> Wed, 12 Dec 2012 16:40:37 +0000 The PowerClamp driver https://lwn.net/Articles/528888/ https://lwn.net/Articles/528888/ 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> Wed, 12 Dec 2012 16:37:43 +0000 The PowerClamp driver https://lwn.net/Articles/528350/ https://lwn.net/Articles/528350/ 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> Fri, 07 Dec 2012 01:59:59 +0000 The PowerClamp driver https://lwn.net/Articles/528201/ https://lwn.net/Articles/528201/ 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> Thu, 06 Dec 2012 13:56:14 +0000 The PowerClamp driver https://lwn.net/Articles/528192/ https://lwn.net/Articles/528192/ 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> Thu, 06 Dec 2012 11:49:00 +0000 The PowerClamp driver https://lwn.net/Articles/528188/ https://lwn.net/Articles/528188/ 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> Thu, 06 Dec 2012 11:00:15 +0000