Kernel Bug Means Linux Power Usage Remains High
An anonymous reader writes "The significant Linux kernel power regression reported back in April, which ended up being attributed to PCI-E Active State Power Management, is still not resolved even as Ubuntu 11.10 and Fedora 16 approach. Until Linux is able to handle ASPM in a manner more like Windows or the device drivers explicitly set the ASPM flag, users of many modern laptops need to use the "pcie_aspm=force" option to regain much of their battery life. At least a power bug affecting newer Intel hardware with the "energy performance bias" feature has been fixed. There's more information in this LaunchPad bug report and in the latest power consumption testing."
Phoronix? More like Moronix, amirite?
I wonder how much wasted power a beowulf cluster of those would have?
After this fix, it's coming soon!
LOL, we are still believing shit that Phoronix posts? How's that Steam for Linux release coming along, eh?
Seems like its been so long since relevant technical submissions were made to /. I remember being able to learn so many interesting OS tricks from poster's comments to articles and hearing about new software.
Now it's mostly just crap about who pissed on who's patents...
If thou see a fair woman pay court to her, for thus thou wilt obtain love
... that a good unexplained fire and a stabbing wouldn't fix.
It's a problem with the BIOS manufacturers, and the BIOS incorrectly reporting its ASPM capability. When an OEM installs Windows on a laptop, it can correctly tune these settings. But for a fresh install of Linux that YOU performed, a database of every motherboard + BIOS combination needs to be maintained in the open to set the force PCIE ASPM flag. If set wrongly, when the BIOS doesn't support it, it could lead to locking which is far more serious.
There are other solutions to effectively manage power in Linux, like Jupiter.
For more (and better) information, see the following links: About the Kernel 3.0 "Power Regression" Myth and PCIe, power management, and problematic BIOSes
The really annoying thing here is that the huge power regression bug affecting a lot of hardware (everything with a PCI Express bus) was marked as fixed when an unrelated bug only affecting a tiny amount of hardware (the very newest Intel processors) was fixed. It's almost like Canonical is attempting to shove this under the rug, but it's probably just incompetence. Either way, this sort of thing is all too common with Open Source software, and it has to stop. It's driving people away.
If the BIOS reports ASPM it'll be used. If it doesn't, then Linux can't assume that it works.
Why use Intel icon when it's a Linux issue?
Fuck systemd. Fuck Redhat. Fuck Soylent, too. Wait, scratch the last one.
Tell this to my busted PC, thx alot
And this sort of thing really ought to be used to slap MS upside the head for behaving irresponsibly. Years back when ACPI was first coming out and a significant number of motherboard models were shipped with a broken DSDT that would only function with Windows. The company creating the firmware didn't care and MS had the money to work around the problem leaving Windows the only platform that would work correctly.
MS could have solved the problem by refusing to implement work arounds, but opted to go out of its way to work around broken implementations rather than force the devs to program the DSDT correctly.
I thought setting acpi_osi="Windows 2006" and such took care of most problems. (And Linux set the value as "Windows 2001" by default.)
The marginal performance improvements you get by tweaking kernel settings will not make one whit of difference to the average user unless there is a glaring performance issue like the power drain currently being discussed.
Grandma isn't going to install Linux on her laptop -- you are. And as the technically knowledgeable person, you should be doing any such tweaking. Other systems have the benefit of the OEM doing the tweaking and tuning, but it does get done by somebody. Don't blame Linux for not doing something automagically that other systems don't do, either.
I don't believe that's true. While server tweaks get the press, there is a lot of effort put into the desktop experience as well. You're just far more likely to hear about kernel tweaks that are useful for desktop performance from the "real time systems" people.
I do not fail; I succeed at finding out what does not work.
- replace BIOS (perhaps demand that the manufacturer update it)
- create a large (online) database of MBs (best identified by a list of hardware) that support ASPM and check it upon installation
Anons need not reply. Questions end with a question mark.
They have been playing the blame game. Seriously though, I don't care whether it's an upstream issue or a downstream issue, 30% increase in power consumption is pretty big issue no matter what the reason. That's the reason why I am still on Ubuntu 10.10 and haven't upgraded. If they don't fix this before the support window runs out for 10.10 I am switching to something else (maybe even Windows). I use laptop on my battery all the time (in the bathroom, at the library, coffee shop etc.). A 30% reduction in battery life would seriously affect me.
Some people have a grandma with a PhD in Engineering, who probably designed parts of that laptop. The problem isn't with Linux, it's with your grandma.
Until Linux is able to handle ASPM in a manner more like Windows
Translated: "Until Linux can catch up with Windows..."
A phrase that will make many a head explode, for sure.
I never noticed any problems. When the processor is under load, the fans spin up, and when it becomes less busy, they slow down. I run an old Core I7-920 (but not on a laptop). Everything has been working fine.
Firstly, your logic is with the assumption that Granny uses a laptop. My Dad uses Linux on his Desktop (he has a Laptop also). He is not technically proficient like you claim to be. He has no idea what ASPM or GRUB is. Dad used to use Windows but he could not understand why one day he had some count down box mysteriously appear on his screen (blaster) or why he needs to apply patches or service packs that also seemly make his screen blue. He also had no idea why he needed to pay to upgrade his anti-virus just because he upgraded his OS. My Dad gets aggravated quite easily because he likes that he can turn on his computer and it works. I spent a month talking him around to giving Linux a shot. This was 4 years ago and he is still running the same Debian install on the same PC. Not bad for someone who is not only a Grand Pa but also 70 years old! You're saying that because of some power bug in the Kernel makes the OS fail your "Grandma Test" is a stupid logic and it is broken. Can you honestly say that with all the problems that Windows has had over the years make it Grandma Friendly?? I am not hatting on Windows, just your stupid Logic.
You know what, karma being the slut that it is, you would have logged in and gotten nothing!
Careful! It's Mono!
Is the bug in Linux kernel? Then you won't ket any fix from Ubuntu!
Is the bug in the userland power manager? Then don't blame the kernel and don't expect any news from Ubuntu!
Is the bug in the Ubuntu packaging? Blame Ubuntu.
So the question is: where the bug actually is?
Sent as ripples into the electromagnetic field. No single photon has been harmed in the process.
This is another example of why ACPI is COMPLETE CRAP. ACPI is absolutely the most disgusting piece of IT Technology ever designed and implemented.
ACPI is a badly designed solution to a problem that shouldn't exist.
Power Management should be controlled by communicating only with the PCI(e) devices (PCI Configuration Space), not the deranged and inevitably badly written BIOS.
ACPI is used to control the power button on x86 PCs. How completely stupid and over-engineered. Why not simply extend the keyboard controller (8042) or create a standardised PCI bus device?
I can only pray that ARM computers do NOT implement ACPI.
And, your "f'ing Microsoft" comment - what's that got to do with anything here? MS does it right, Linux doesn't: Case closed!
APK
P.S.=> The main thing is, who uses Linux on laptops?? Its "niche", as far as mindshare/marketshare amongst users &/or companies, happens to be MOSTLY servers (because it's FREE for init. purchase cost, keeping costs down)
Now - on that note/merit alone? Hey - IF Linux WERE AS GOOD AS WINDOWS SERVER, overall, it should have wiped MS out, & YEARS AGO...
However, as anyone can see? Linux hasn't taken the "top spot"/#1 most used OS (in fact, it's last on PC's & Servers combined).
Yes, even with the backing of the likes of IBM, Oracle, & Novell - MS' "main competitors" no less!
(That ALL tell anyone ANYTHING here? Like Linux's NOT QUITE AS GOOD AS WINDOWS?? Sorry, it does me, & facts are FACTS!)
Now - I've used both for long stretches, & though Linux is decent, it's FAR from Windows on many accounts (e.g.-> device drivers, available mainstream apps, more unpatched bugs in its kernel alone than nearly ALL of what MS offers users/businesses to do development & business with, games, & more))...
Plus, all the "Linux is more secure" b.s. spread around here especially on THIS forums? Heh - security by obscurity/lack of widespread usage was the illusion being perpetrated obviously (because Linux wasn't used that much, & thus, it's NOT as attractive a target to malware makers/hacker-cracker types as Windows is, because those types are after your MONEY & INFORMATION online nowadays, not just to "wreak havoc" on your system)...
That b.s. went out the Windows with ANDROID showing how "security swiss cheese" Linux truly is, once it gains widespread usage...
Still - Once the problem's understood though, & it sounds as if it is? The Penguins will figure it out & compensate (hopefully)
... apk
We should consider good enough solutions in the face of not being able to find a perfect solution.
A good enough solution for this is:
1. To create a publicly accessible online database of the most popular hardware compatible with this ASPM thing.
2. To make the most popular distros to automatically request this database, and automatically set that option properly.
This is good enough because it would cover normal people with normal hardware; that means 80% of people with hardware.
The remaining 20% would be composed by:
- Those who don't use the most popular distros. Nevertheless 95% of these people will be able to do the hack manually.
- Those who don't use the most popular hardware.
- Those who don't have Internet access.
http://en.wikipedia.org/wiki/Principle_of_good_enough
I'm not so sure about this. I enabled the fix as proposed by Phoronix and saw a 15% battery life improvement; I'm now getting almost 5 hours, which is pretty good for this system.But 15% was not "significant" really. So "to regain much of their battery life" seems like an exaggeration in par with the alarmist tone of the articles in Phoronix. Sure, there's a problem, and I certainly appreciate Phoronix's efforts to pinpoint the cause and offer a workaround, but it's certainly not as bad as they've been making it look.
they would surely rise when i read the phrase "in a manner more like Window$". there is only one way?
Serious incentive's behind commercialware closed-source quality from MS (good enough to beat FREE in the overall marketplace - Which makes no sense if you *think* about it, but... there we are! Proof's in the pudding/argue with the #'s...).
* I'm also FAR from "astroturfing" (whatever the hell that really means, these dimwitted new-fangled terms sometimes sound quite stupid): I am just telling it how it is, based on experience (coming up on 30 yrs. of overall time in computing on a # of grounds).
APK
P.S.=> I think you missed the part where I noted I have used Linux (KUbuntu 10x @ least) & it's alright, does the job for most things, just not as good @ windows is some areas I noted/liisted... I know Linux enough to have made the comments I did above (been using Linux on/off since 1994 in Slackware 1.02 in fact).
However - by the SAME TOKEN?
I can, & did, also make my assessments on Windows being better on a # of valid grounds & why as to what I listed on that account in my last reply, is all - you may not LIKE it, but, there you are...
(Lastly/in closing/summation/bottom-line: Trust me, I could have put down a lot more "Anti_Linux" stuff, & from reputable sources, + on other grounds and so much of it, that you (or any other Penguin) would hate what I wrote, a LOT more...
... apk
It was posted 10 years ago on slashdot that MS dictated to all the hardware manufactures that this is the way Windows 2000/XP kernel does APM. Go fix your bios because we aint changing it! Almost paraphrased word by word with buggy ACPI and APM. So because people still run XP, the bios has to work around a Windows specific bug.
It is a two way street when more than manufactor owns the software and a different owns the hardware. Bugs are on both sides and both have 30 years of errata and bugs that emulate off of each other in order to function. Linux sadly, has to produce Windows specific bugs in order to have APM work properly as all the hardware makers care about is Microsoft.
I hate the MS bashing here more than anyone as I prefer MS more and more these days. But it is deserved here. What are you going to do if you are Dell with a great APM but XP doesn't work the way it was designed to spec? Say no, big bad MS our bios is fine go fix XP with a service pack? Imagine how their customers would feel? Would they blame Microsoft? I think not. They would blame Dell and go buy HPs etc.
So Dell reflashes their bios so MS doesn't have to fix their bug etc.
Both Linus and Alan Cox have said this numerous times and is one of the reasons people want to switch to EFI. The bios has 30 years of fixes, updates to bugs, and other nasties. I only assume the Windows kernel does the same exact things to bugs from the 1980s that are there for compatiblity reasons. Shudder
http://saveie6.com/
1st - Linux also doesn't have as high quality drivers or as many because board makers KNOW what is "running the show/market " out there, Windows - so, they cater to it immensely!
2nd - Nor does Linux have as many games, by FAR, either (this is mostly the home market in fact!)
3rd - Not only that. but Linux, in its KERNEL ONLY mind you? Has 4x the unpatched security vulnerabilities Windows 7 has (which IS a complete "distro" with all of its parts, not just a kernel only)!
4th - Despite all those "Open 'SORES'" eyes (most of whom couldn't code to SAVE THEIR LIVES mind you) allegedly poring over Linux code, how come it has that many more unpatched bugs than Windows 7 has, hmmm??
Closed source is HARDER for hacker/crackers to attack as well, because you're stuck either disassembling it (especially tough with kernel level debuggers) OR fuzzing it, either is tougher than searching out problems in Linux, which you just load into a compiler & step trace its "Open 'SORES'" code with to find screwups in security... hence it still has more security bugs, AND, they are unpatched (despite all the "Open 'SORES'" eyes poring over it, lol!)
Fact, period!
5th - In fact, Linux's kernel ALONE has 4x the # of unpatched bugs the ENTIRE SUITE/ARRAY OF WHAT MICROSOFT GIVES YOU TO DO BUSINESS & DEVELOPMENT WITH!
Proof? Ok:
This data's ALL from a respected source (secunia.com) for known security vulnerabilities unpatched:
---
Vulnerability Report: Microsoft SQL Server 2008: (10/11/2011)
http://secunia.com/advisories/product/21744/
Unpatched 0% (0 of 1 Secunia advisories)
Vulnerability Report: Microsoft Internet Information Services (IIS) 7.x: (10/11/2011)
http://secunia.com/advisories/product/17543/
Unpatched 0% (0 of 6 Secunia advisories)
Vulnerability Report: Microsoft Exchange Server 2010: (10/11/2011)
http://secunia.com/advisories/product/28234/
Unpatched 0% (0 of 0 Secunia advisories)
Vulnerability Report: Microsoft SharePoint Server 2010: (10/11/2011)
http://secunia.com/advisories/product/29809/
Unpatched 0% (0 of 3 Secunia advisories)
Vulnerability Report: Microsoft Forefront Endpoint Protection 2010: (10/11/2011)
http://secunia.com/advisories/product/34343/
Unpatched 0% (0 of 1 Secunia advisories)
Vulnerability Report: Microsoft Baseline Security Analyzer 2.x: (10/11/2011):
http://secunia.com/advisories/product/6436/
Unpatched 0% (0 of 0 Secunia advisories)
Vulnerability Report: Microsoft Office 2010: (10/11/2011)
http://secunia.com/advisories/product/30529/?task=advisories
Unpatched 0% (0 of 9 Secunia advisories)
Vulnerability Report: Microsoft Project 2010: (10/11/2011)
http://secunia.com/advisories/product/31177/
Unpatched 0% (0 of 0 Secunia advisories)
Vulnerability Report: Microsoft Windows Services for UNIX 3.x: (10/11/2011)
http://secunia.com/advisories/product/5244/
Unpatched 0% (0 of 3 Secunia advisories)
Vulnerability Report: Microsoft Internet Explorer 9.x: (10/11/2011)
http://secunia.com/advisories/product/34591/
Unpatched 0% (0 of 3 Secunia advisories)
Vulnerability Report: Microsoft