Intel's PowerTOP Extends Linux Battery Life
DuracellFan writes "Intel recently released its PowerTOP utility, which builds on work done by kernel developers to make the Linux kernel power-efficient. PowerTOP gives a snapshot of what apps are consuming the most power. The PowerTOP website also hosts patches for several Linux apps and the kernel. In the Linux.com article, lead PowerTOP developer Arjan van de Ven of Intel says that PowerTOP could soon show which applications keep the disk busy." Linux.com and Slashdot are both part of OSTG.
Comment removed based on user account deletion
The hardware that runs it does! Typical Intel, trying to shift the blame.
:)
Too bad this doesnt do anything for older kernels. Most people i know still run 2.4.x and Slackware still ships with 2.4 as default.
I did send you a memo. Don't you listen to me anymore?o rg/011607/3000/PX03020.pdf
/Bill
Here it is again, but I guess it's too late: http://antitrust.slated.org/www.iowaconsumercase.
Please listen to what I have to say in the future!
Of course this utility is very useful for developers and for Linux distributors.
For the average user it is a nightmare.
The blurb says that the tool told him to disable beagled which he did and he was duely impressed when the number of wake ups per second dropped. However the actual watts used went up. Thought the point was to save power?
schools
Amazing - if I have an application which chews CPU time, does I/O, or a peripheral which powers another or requires a high power output like a wireless card, then these applications or peripherals drive power consumption up!
Brilliant!
I want to delete my account but Slashdot doesn't allow it.
I have a server at home that I'm about to upgrade the kernel on, and I would very much like to have it as energy efficient as possible... but I worry about stability. Is NO_HZ safe?
Belief is the currency of delusion.
Read up a bit, it's about applications behaving in energy inefficient ways (waking the CPU) when they could get the same work done without waking the CPU as often. This concerns polling loops and such, as well as things you normally don't think about, like animated cursors. powertop helps you track down which applications are behaving badly, so that they can be fixed.
Belief is the currency of delusion.
DEAR User,
Sorry but you're mistaken.
You actually discovered our latest feature.
You haven't read about it yet, because we were developing and testing it until very recently, and we didn't want to speak to early about it.
We, as developers conscious of their travelling users, that have so much time that they need to work as they are in the train, have though of YOU !
As such we present you our latest feature :
WE GIVE YOU THE POSSIBILITY TO COOK YOUR DINNER ON YOUR LAPTOP (so you can do even more important things during the time you're commuting, which will leave you more free time when you reach your destination !)
Alternatively, you can also use our application on your laptop as AN INCREDIBLE AND COMPACT LAP-WARMER !!! For all those long commute during winter.
(DISCLAIMER : Warning, do not use with Batteries manufactured by Sony).
Thank you, wish you enjoy our brand new features.
- The Dev team.
"Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
C'mon what are we talking about here, a few minutes? AFAIK, better power savings comes through a good acpi config, which I don't see a whole lot of discussion on.
My guess is where this kind of thing would make a dollars/cents difference is in the NOC. But this kind of detail isn't very sexy or very high on most NOC operators radar.
http://www.maxineudall.com/2010/02/should-economists-be-sued-for-malpractice.html
It could mean as much as an hour or two, depending. The less the CPU sleeps, the more power it consumes. The more the HDD gets accessed, the more power it consumes. ACPI doesn't buy you much if your CPU is constantly running at full clock and your HDD is always spinning.
My blog
Success Stories
Guess you could accuse him of bias...
Belief is the currency of delusion.
That depends. Laptops are saving power because presumably they're idle most of the time and this program can tell you which processes behave badly while "idle" (by, say, polling the HDD for no good reason). On a server presumably your machine spends very little time idle (since you're serving stuff), so there isn't much opportunity for power savings from an application like this.
I read the internet for the articles.
I'm a little skeptical about that value (but willing to be convinced). I only pay about $300/year for electricity overall. Of course, I don't own a PS3. However, I do have a refrigerator and an air conditioner (as well as other devices that use electricity).
Ben Hocking
Need a professional organizer?
Wow. That's really cool. I love how open source allows you to tweak your settings down to the core like this - and Intel is the company that made it.
in girum imus nocte et consumimur igni
C'mon what are we talking about here, a few minutes? AFAIK, better power savings comes through a good acpi config, which I don't see a whole lot of discussion on.
Do you even know what ACPI is? Have you read the link? (clearly not)
No matter how well your "acpi config" is done, if you've a process eating 100% of the cpu power all the time, your batteries will last less than a compuer with no ACPI that it's doing nothing.
IOW, even when your "acpi config" is good, you can save a lot of power. Not minutes, but even hours. How, is detailed in the article.
So, what does it change for an end user looking at which application sucks more power?
Can they fix tha application? No.
Can they stop the application? Don't think so. If they are using it, it means they need it.
I don't know who moderated the parent "-1 troll" of course, but I do know that they're idiots. This is very useful for developers and distributors, much less so for average users. Sheesh. Hope karma is a bitch.
I have just tried the thing. I achieved less than 20 wakeups per second when my KDE desktop is idle, but learned a few things on the way. For example, by using a USB mouse instead of the laptop touchpad I am unable to reach state C3. It's reached when I unplug the mouse. I suppose I'll have to put up with it, because I can't stand the touchpad. On the other hand, I used to have KMail opened in a second virtual desktop to check for mail every 60 seconds, but I discovered that the bastard was waking up twice a second for no apparent reason, so I have started to use Korn (the mail check systray thingy). There are still some applications that wake up for no reason apparently. For example, why does klipper wake up once per second? And the same goes for kwrapper. I don't even know what that is. Can somebody explain in detail? Google isn't very specific about it.
:P
But yes, the application is very interesting. Sorry, Intel, my laptop has an AMD processor. The next one will be Intel, with an Intel graphics card and an Intel wireless card. I promise.
"PowerTOP gives a snapshot of what apps are consuming the most power."
Cool, now we'll see things like "New Notepad-lite with reduced power usage!" Maybe "new, less-bloated app" won't be far off. I can dream.
Our FreeBSD servers auto-throttle their CPU speeds down when idle. The average runtime on our monitored UPS has gone from 60 to 75 minutes. Even if electricity were free, and even if air conditioners were free, and even if we didn't care about wasting energy for no good reason, that still means we have 15 more minutes to get the generator up and running in the event of a long power outage.
Maybe that's not much to you, but it's pretty darn nice for us.
Dewey, what part of this looks like authorities should be involved?
The biggest and easiest power savings come from CPU frequency scaling (if your processor supports it). Linux has long done a good pretty good job of putting the CPU to sleep and low power states when it can.
For older Athlon/Duron processors installing/running athcool makes a significant difference in power consumption (as long as it runs stable on your hardware, which it isn't guaranteed to do). On one of our old servers it reduced idle power draw from 100w to 65w.
It might depending on how idle your servers are. The more idle they are, the bigger the possibility for power savings. While they are obviously targeting laptop battery consumption, all Linux machines running this tool (and kernel 2.6.21 or later which has the dynticks feature) will be identify what is waking up their processor from low power states.
Much of the work put into optimizing battery life on laptops will also apply to desktops and servers alike.
A KDE developer used it and made a patch for arts on his blog. I look forward to what other developers find and fix.
Do you changes clothes while making the "chee-chee-cha-cha-choh" transformation sound?
So who is going to write the daemon that shuts down various services like beagled or reconfigures running applications (i.e. turns off animated cursors) when running on batteries? Of course, switching everything back on when line power is provided would be a must.
Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
ACPI and throttling can save power, nobody denies that. What they're doing here is an additional way of saving power. It is fully compatible with both ACPI and CPU throttling.
;) but I understand that this is definitely not CPU throttling.
At the moment, for example, my Core 2 Duo runs at 1.6 Ghz, for Linux's CPU frequency governor is set to "ondemand" and this Core 2 Duo supports two speed by default (that's an Intel limitation, not a Linux one): 1.6 Ghz or 1.86 Ghz, when the load on the CPU is high.
What they're talking about in the article is another great way to save power: basically it's unnecessary to have interrupts waking up the system when you know nobody while need these.
And it is compatible with already existing method of saving power like, say, CPU throttling.
So, once more, this neither ACPI nor CPU throttling.
Instead of having a 1000 Hz or 250 Hz timer waking up the CPU constantly, if I understand correctly this method switches to a CONFIG_NO_HZ (tickless) idle mode when it knows nothing needs the "regular" tick. I'm no Gleixner (the kernel hacker who's the timer-pro
Last time I hacked to save power was using the HLT instruction on, what, 486? So I'm a bit rusty.
Still, this new kernel parameter an that little util built on top of it will have good implications for battery life, electricity bills, etc.
Anybody commenting on this saying: "nothing to see here, move along" MUST be modded down.
My last 6 power bills add up to $127.10. Of course, that doesn't include the hottest months. I can't view back further than 6 months, or otherwise I'd provide a more exact number. I do know that my power bills don't go up that much during the summer, so I just guesstimated at the $300 value. No doubt it helps that I live in a 1-bedroom apartment and not a house.
Ben Hocking
Need a professional organizer?
Based off your 220W figure, that results in approximately 158.4 kWh per billing cycle. Yowsa. folding@home would appear to be a good cause, but I agree that it would be nice to know up front how much you're actually "donating" to them. OTOH, if you don't notice an extra 158 kWh on your power bill, then perhaps you're not really going to care that much.
Ben Hocking
Need a professional organizer?
if you've a process eating 100% of the cpu power all the time
1. It's not so much acpi, but cpu frequency scaling I should have mentioned. Sorry, wrong terminology.
2. My point is that the unsexy work of sophisticated uses of frequency scaling would probably help more on a laptop. I'm estimating the most power consumption is the lcd panel followed by the cpu which is where the frequency scaling helps.
3. I run a bunch of servers and a storage array and it would be great if the disks would run at lower power consumption, kind of like frequency scaling at non-peak hours. I know it would cut down on the heat we generate and power/cooling requirements. That's dollars and cents savings that look good. Can hdparm settings lower my power consumption?
http://www.maxineudall.com/2010/02/should-economists-be-sued-for-malpractice.html
Even though I do use AC (although sparingly). My heat comes from the radiators, and hot water comes from our apartment complex. (I.e., it's included in the rent.) Also, my stove/oven uses gas. Just throwing all of that out there since I seem to have generated a little bit of skepticism with my original claims.
Would anyone not notice (other than rich people with mansions, etc.) an increase of 2.5 kWh/day? Even if you use 10x the electricity that I do, that'd be a 10% increase.
Ben Hocking
Need a professional organizer?
gnome-power-manager as the biggest power hog on the system.
Linus Torvalds called timer-related improvements "the big change during 2.6.21.", and the improvement that matters here I think is the Tickless Kernel, that allows you to sleep for more time. The OS no longer needs to be interrupted N times a second (250 times a second usually, 1000 times for multimedia systems, configurable at compilation time (example: CONFIG_HZ_250=y)), since it can be smarter now. Check: This support is not ready for all the architectures yet, but this should happen soon, since the benefit of saving power and having lower temperatures can be huge. And yes, it might be good for your sever farm, too. This is useful even if the system is busy.
... its a tie between my USB-powered arc welder and all the kewl blue LEDs.
Have gnu, will travel.
Of course, he's no Joe Six-Pack, either. He's definitely where I got most of my nerd genes from. Yeah, I suppose I was thinking too much from my own no-child, low-power consumption perspective, though. For me, it'd literally double my power bill. Trust me, I'd notice.
Ben Hocking
Need a professional organizer?
From the man page of kshell (link):
kwrapper tries to make the application look like it was actually started directly and not via kdeinit. Like kshell it passes application name, arguments, complete environment and current working directory to kdeinit.
Additionally it - tries to redirect application output to the console from which kwrapper was started - waits for the application to finish (but does not return its return value) - passes most signals it gets to the process of the started applicationThe signal passing allows you to use Ctrl-C to break the started application or Ctrl-Z to stop it.
Note: With the use of kwrapper you will have one more process running and also the signal passing and output redirection may not work properly.
any doubt: FrreBSD In addition, having lost 93% Than its Windows distributions To look into lube or we sell code shar1ng host what the house ultimately, we
to haapen. My lube. This can lead 'Yes' to any be on a wrong
So, nobody has made a "Power Bottom" joke yet?
When one app requests to be woken up every five seconds, another app wants to be woken up every two seconds and another app needs to run every second, then why is it necessary to have three wakeup events?
Shouldn't the kernel be able to merge the events? And even if it is currently not possible, it is not rocket science to invent an API that allows the kernel to synchronize these events. In the example above the wakeup rate could be reduced from 1.7 to 1.0 wakeup per second, possibly resulting in 70% improved battery live!
Well, that's not entirely true. Many servers do spend a lot of time idle. Take for instance company internal servers -- they spend HUGE amounts of time idle, about 24 - 8 = 16 hours of each day. OK, subtract one hour for backups. Still, that's a huge amount of power being wasted on an idle machine. Also, there are a lot of web servers that serve country-specific sites. These machines may not be idle enough to spin down their hard drives, but they sure are idle enough to save some serious CPU power. They would probably benefit from shutting down entire CPUs during these "idle periods".