Slashdot Mirror


Ubuntu's Power Consumption Tested

RedDragon writes "Ubuntu 7.10 is due out on Thursday, October 18, and in addition to desktop 3D effects, GNOME 2.20, and other features is the use of the Linux 2.6.22 kernel with the tick-less (CONFIG_NO_HZ) kernel feature. But does this mean enhanced power savings when compared to past Ubuntu releases? Phoronix tested Ubuntu power consumption looking back 2-1/2 years at the six Ubuntu releases from Ubuntu 5.04 to the yet-to-be-released Ubuntu 7.10. Testing was done when the system was idling and then under load, and when the Lenovo notebook was powered via the battery and then again with the AC adapter. The Pentium M CPU temperature was also monitored. While Ubuntu 7.10 does include the tick-less kernel feature, more daemons and processes running by default on these modern Ubuntu releases is actually causing an increase in power consumption."

22 of 330 comments (clear)

  1. Re:Snazzy effects by F-3582 · · Score: 5, Informative

    Rest assured, it takes you four mouse-clicks to disable them. Every tried that under Vista?

  2. misleading by wizardforce · · Score: 4, Informative

    very misleading healine. I RTFA and if you look at the nice graph, it actually shows a decrease in power usage since feisty and just about what the prior versions were. AC power consumption idling went from 31 to 29 from feisty to gutsy. while loaded, it went down slightly from 51 [feisty] to 50 [gutsy] the only thing that gutsy was higher in was battery discharge rate idle- it was at 22.26 while feisty was at 21.16. while loaded on battery it went down from 33.51 to 32.21 from feisty to gutsy.

    --
    Sigs are too short to say anything truly profound so read the above post instead.
  3. Re:Snazzy effects by DAldredge · · Score: 3, Informative

    Vista takes 5.

    1: Right click on desktop.
    2: Select Personalize
    3: Select Theme
    4: Select Windows Classic
    5: Click OK.

  4. Re:Well duh! by dvice_null · · Score: 2, Informative

    > What ever happened to minimal?

    You would like to have a light Linux distribution? Something like this perhaps:

    http://www.puppylinux.com/
    http://featherlinux.berlios.de/about.htm
    http://www.damnsmalllinux.org/

  5. AMD64 by Nimey · · Score: 4, Informative

    Laptop users may want to stick with 32-bit Ubuntu, since the CONFIG_NO_HZ (tickless kernel) option isn't available in 64-bit kernels yet.

    If you're feeling adventurous, patches here: http://www.kernel.org/pub/linux/kernel/people/tglx/hrtimers/

    --
    Hail Eris, full of mischief...

    E pluribus sanguinem
  6. Re: I can believe that by Dolda2000 · · Score: 5, Informative

    I don't know what it is there for, but according to this description, it doesn't sound like it is something that a vanilla, desktop installation would want on there. That's not the trackerd you're looking for, though (for future record: You may want to try dpkg -S /usr/bin/trackerd, followed by dpkg -s $PACKAGENAME to find out what it is). Trackerd in the latest Ubuntu is a desktop search thingie, similar to Spotlight or whatever the Vista thing is called. I'd imagine that the load you were seing after about ½-1 hour of use was that it was still busy indexing your preexisting files. Once it gets past that, it gets quite calm in my admittedly limited experience.

    The approach to background processes should be the KISS. On a vanilla desktop installation, only the barest set of such thing should be on there. If that's what you want, maybe you shouldn't be using Ubuntu?
  7. Re:Well duh! by Simon+(S2) · · Score: 4, Informative
    There is. http://www.xubuntu.org/

    It is lighter on system requirements and tends to be more efficient than Ubuntu with GNOME or KDE, since it uses the Xfce Desktop environment, which makes it ideal for old or low-end machines, thin-client networks, or for those who would like to get more performance out of their hardware.
    --
    I just don't trust anything that bleeds for five days and doesn't die.
  8. Re:Well duh! by WK2 · · Score: 2, Informative

    There is. http://www.xubuntu.org/

    Or http://www.fluxbuntu.org/

    pair-a-noyd's rant is seriously misdirected. Linux is whatever you want it to be. That is one of the advantages of having several hundred active distros.

    --
    Write your own Choose Your Own Adventure. http://www.freegameengines.org/gamebook-engine/
  9. Re:Is this supposed to be a surprise? by volsung · · Score: 2, Informative

    By going to smaller transistors, lower voltages, and more clever power management schemes, they have managed to get more work done per watt than before. A new 3 GHz Athlon64 X2 requires 89W of power, whereas the old 1.4 GHz Athlon Thunderbird used 74W.

  10. Re:Kind of. by ozamosi · · Score: 2, Informative

    Did you use Compiz in Gutsy but not in Feisty, then? A lot of people add Compiz to their Feisty installations, but it is default only from Gutsy, so I'm going to assume that's a "yes" in this post.

    When activating Compiz on my laptop, I start to fear hearing problems, because the fans have to be at maximum speed non-stop (it's a Macbook, and I've been using it in my lap - any reproductive abilities are in other words long gone, so I don't have to fear that), while they are off at all times except when playing games or watching movies when I don't use it. The reason seems to be that the 3d accelerator on the GPU emits huge amounts of heat when being used. This is with intel graphics, which I've heard are relatively cool - I don't even want to think about what it would be like with ati or nvidia.

    The solution? System -> Preferences -> Appearance, the tab Visual Effects, set to None. You may need to log out and back in. This gives you plain, old Metacity, with more and better window management abilities, but fewer bugs.

  11. Re:Is this supposed to be a surprise? by dpilot · · Score: 4, Informative

    The HPET stuff is now scheduled for merge into the 2.6.24 kernel. I've had to patch my earlier kernels to get HPET, which as you say is really necessary for tickless to do its stuff. The article suggests that this is a stock Gutsy installation. But then again, most distros do a bit of custom patching of their kernels. In particular, Gentoo does not include the HPET patch.

    So the question here: Does the Gutsy kernel have the HPET patch applied?

    If not, then these power numbers are definitely pessimistic, presuming that they move to an HPET kernel (2.6.24+) as it's available.

    Someone here with a Gutsy system should run "powertop" on it, and let us know. IIRC, powertop suggested that I use the HPET, and with a little digging I found that a patch was needed, and took care of it.

    --
    The living have better things to do than to continue hating the dead.
  12. Re:Is this supposed to be a surprise? by A+beautiful+mind · · Score: 2, Informative

    HPET is in the vanilla linux kernel since at least 2.6.21, because I had it working after a motherboard flash update. The patches you talk about is actually helping to enable HPET support for some chipsets, but are not mandatory for a working HPET support.

    --
    It takes a man to suffer ignorance and smile
    Be yourself no matter what they say
  13. Re:Is this supposed to be a surprise? by SuperQ · · Score: 5, Informative

    Does this answer your question?

    $ grep HPET /boot/config-2.6.22-14-generic
    CONFIG_HPET=y
    CONFIG_HPET_MMAP=y
    # CONFIG_HPET_RTC_IRQ is not set
    CONFIG_HPET_TIMER=y
    CONFIG_HPET_EMULATE_RTC=y

    $ dmesg | grep hpet
    [ 8.328261] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
    [ 8.328266] hpet0: 3 64-bit timers, 14318180 Hz
    [ 0.744000] Time: hpet clocksource has been installed.

  14. Re:Good but... by darthflo · · Score: 2, Informative

    I do suspect Ubuntu will have lower power consumption than XP, and for Vista the margin will be pretty wide.
    In my experience it's the other way round. XP would use the least energy with Vista and Ubuntu eating up quite a bit more (Ubuntu usually being worse than Vista).
  15. Re:Sig Fig nitpick by DarkMantle · · Score: 2, Informative

    Sorry to ruin your nit pick but a quick google search tells me that the SeaSonic PowerAngel used in the test has an accurazy of 2%.

    So a 2% variance on 33 watts is between 32.33 and 33.66. The 27 would be between 26.46 and 27.54.
    of course, this is approxamate I just got what 2% of 33 was and added/subtracted. It's the lazy mans math.

    --
    DarkMantle I been bored, so I started a blog.
  16. Re: I can believe that by EvilRyry · · Score: 2, Informative

    There is an option to not index while on battery power. I know in earlier alphas that option didn't actually work, hopefully that is fixed by now.

  17. Re:Is this supposed to be a surprise? by gameforge · · Score: 3, Informative

    Better efficiency would involve the second number being lower than the first.
    No. Better efficiency would involve the second number being lower and also having equal clock speeds. The former is multiples faster as it has more than double the clock rate and is a dual core.

    So if you start your number crunching computer program and push "Start" and it takes 15 minutes on the first CPU and over 40 on the second, presuming you were to turn your computer off when the program finished, you'd have used the first one for less than half the time.

    With the same battery I'll be able to use my laptop for 20% less time (say 2.5 hours instead of 3). If it does more faster, how come I get 30 minutes less time to use it before my battery craps out?
    Not really; most laptops and many desktops can scale their speed. If you want to accomplish 15 minutes of work in 40 minutes, you can either throttle the newer CPU's speed (presumably using much less than the full power rating) or replace it with an older processor which is not as efficient (and therefore equally as fast, but likely to use more power).

    If you scaled your new one down to less than the speed of your old one, you'd get more time out of it. So if you're watching a DVD and not really accomplishing a lot of "work", that's what you'd do to get more time than the old laptop but still have more processing power.

    Remember, 3GHz refers to CPU clock cycles per second - an old thunderbird gets less done in a cycle than a new Athlon64 X2. So even a 1.4GHz single core Athlon64 is faster than a 1.4GHz Thunderbird. So you can slow the new one down from 1.4GHz and still get the same work out of it. A DVD might be choppy at 500MHz on a really old machine, but a brand new state of the art processor might be able to deal with it just fine at 500MHz, even if both machines have similar bus and memory speeds and come with the same MPEG decoding video card.

    What would be better is a CPU that can use up to 89W when it needs it, then falls back to much lower - say 10W - when it idle and waiting for me to type a clever response into Slashdot.
    Actually, this is a characteristic of both transistors and vacuum tubes, and therefore literally all CPUs do this. The amount of voltage supplied to the CPU is supposed to be constant - but the more transistors you use, the more amperes are drawn (volts * amps = watts). Relative to peak power usage, the difference between two idle CPUs is likely negligible, even for older models.

    Find a computer with a variable speed CPU fan, and listen for it to shut off when you're idling. Less heat means less power.
  18. Re:DRM effects. Re:Snazzy effects by sgtrock · · Score: 2, Informative

    In order to prevent active attacks, device drivers are required to poll the underlying hardware every 30ms for digital outputs and every 150 ms for analog ones to ensure that everything appears kosher. This means that even with nothing else happening in the system, a mass of assorted drivers has to wake up thirty times a second just to ensure that... nothing continues to happen


    From Peter Gutmann's excellent "A Cost Analysis of Windows Vista Content Protection". This paper should be required reading for anyone considering purchasing a Vista PC for ANY use.
  19. Re:Is this supposed to be a surprise? by volsung · · Score: 2, Informative

    You do realize that a dual core Athlon64 is many times faster than an Athlon Thunderbird? You can easily underclock an Athlon 64 until it uses less than 74W, or grab the laptop version with much lower power consumption, and it would still outperform a T-bird. (I grabbed the first power measurements I could find and assumed people could do the scaling in their head.) Modern CPUs also do the power throttling you describe already.

  20. Powertop Numbers by sciurus0 · · Score: 2, Informative

    On my Dell 1420N (2GHz Core 2 Duo on the Santa Rosa chipset) with an up-to-date Gutsy, a few minutes after logging in to GNOME powertop reports 190 wakeups from idle per second and a power usage of 12.6W. After following all of powertop's recommendations (including disabling bluetooth and reducing wifi power), wakeups and power usage went down to 58 and 11.4W respectively.

  21. Re:Is this supposed to be a surprise? by iamstretchypanda · · Score: 2, Informative

    What would be better is a CPU that can use up to 89W when it needs it, then falls back to much lower - say 10W - when it idle and waiting for me to type a clever response into Slashdot.

    From http://en.wikipedia.org/wiki/Cool'n'Quiet It works by reducing the processor's clock rate and voltage when the processor is idle.. Before you bash someone else make sure you don't make yourself look like a jackass in the process.

  22. Please read Gutmann's work yourself by sgtrock · · Score: 2, Informative

    First, I'll let Gutmann comment on his use of various OSes:

    This is just Microsoft-bashing.

    It's bad-technology bashing. If this had been done by Linus Torvalds, Steve Jobs, Alan Cox, or Theo de Raadt, I'd have said the same thing about it. As far as I'm concerned computers are tools to get a job done and not a platform for religious wars, and if something's bad I'll say so regardless of who's doing it. In fact Vista overall has some really nice new technology and features built into it, it's just this one aspect of Vista that's troublesome. And just for the record I run various versions of Windows on ... [counting] ... seven of my machines (the rest are a mixture of Linux, FreeBSD, and occasionally Solaris and QNX), so I'd be a rather unlikely Microsoft detractor if I have their software all over my machines.

    As far as George Ou and Ed Bott are concerned, again I'll let Gutmann himself address this. Key quotes below:

    It all started with an email from George Ou, who decided, without ever hearing my talk on content-protection issues or seeing the slides for the talk, that what I'd said in the slides was wrong. I offered to send them to him, but by then he'd gone ahead and posted his conclusions anyway, still without ever actually having seen the slides that he's commenting on. Later he changed his story to claim quite emphatically that he wasn't attacking the slides at all, which seems a bit contradictory since the material wasn't present anywhere but the slides.

    ...

    He even went so far as to lodge a formal complaint about me with the University, although since I'd been trying quite hard to ignore him (both he and Ed even mentioned this in their blogs), I'm not really sure what he complained about (details of complaints are treated as confidential). Maybe it was the fact that I wasn't paying any attention to him.

    ...

    Ed's tactics were slightly different. He posted his initial comments on a blog whose existence I wasn't even aware of (and therefore had no way of responding to) and then summarily declared victory in a later blog posting based on the fact that I didn't reply.

    ...

    In this entire time, neither George nor Ed ever tried to obtain the slides from me ("I never asked for his slides" - George Ou), the actual material that started this whole thing. I've sent out copies of the slides to *every single person who asked for them*, but neither Ed nor George ever bothered contacting me to get my side of the story, or to get the slides that they were attacking. Indeed, all I got from Ed was a long sermon on professionalism.

    ...

    Avoiding asking me for the current slides so that he can attack a ~9-month- old copy of the writeup

    ...

    In all this mass of trivia there's one major thing missing that would justify the title that he's chosen to use: Any attempt at all to address the central thesis of the content protection analysis, that trying to seal shut (portions of) the historically open PC architecture in the name of DRM is technically a really bad idea, and one that's bound to fail. As Bruce Schneier put it, "Trying to make bits uncopyable is like trying to make water not wet".

    ...

    Appendix: Short response to Ed's article

    "Because Gutmann has no hands-on experience with this technology"

    Actually I do have direct, hands-on implementation experience, which I could have told you if you'd ever contacted me about any of this.

    ...

    "Here's the information on this exact monitor"

    So this is where his strategy of going for a nine-month-old writ