Slashdot Mirror


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.

113 comments

  1. Linux does not consume power! by anss123 · · Score: 5, Funny

    The hardware that runs it does! Typical Intel, trying to shift the blame.

    :)

    1. Re:Linux does not consume power! by Anonymous Coward · · Score: 0, Insightful

      I think somebody missed the joke...

    2. Re:Linux does not consume power! by Anonymous Coward · · Score: 1, Informative

      Definitely hard disk's activity is not a major contributor to power consumption. CPU usage is. Disks do require some juice to spin up (not that much though), but it's the CPU that makes the difference once the system is up and running. I know because this week I benchmarked precisely this issue: searching a file throughout the filesystem only raised consumption from 0.6 A to 0.65 A, but it went all the way up to 1.0 A when the CPU was at 100% (and at that point running the filesystem search did not raise consumption at all, indicating that the 0.05 A were due to CPU activity during file search and not to disk head moving or data flowing through the SCSI bus).

    3. Re:Linux does not consume power! by Syberghost · · Score: 2, Funny

      Yes, but if we outlaw the manufacture, possession, or sale of hardware, then Linux won't be able to get any, and the tragedy of wasted power will end! Think of the children!

    4. Re:Linux does not consume power! by Anonymous Coward · · Score: 0

      It does, e.g. see:

      http://brian.geary.smith.googlepages.com/review.ht ml

      (see the battery life section)

  2. PowerTOP not for casual users by zborro · · Score: 3, Insightful

    Of course this utility is very useful for developers and for Linux distributors.
    For the average user it is a nightmare.

    1. Re:PowerTOP not for casual users by Dimentox · · Score: 1

      DEAR Developer,

      Your application is costing me money by it using of power!
      Please send a refund check of to . You did not say in the ULA and in the documents that it would cost more money to run.
      Thanks,

      --
      string sig = llGetSig("dimentox"); llSay(0,sig);
    2. Re:PowerTOP not for casual users by vux984 · · Score: 1

      Despite the humour/sarcasm in your post... i think in some cases the developer/vender should clearly indicate that it will cost additional money in electricity to run. And it should be -clear- not hidden in some EULA.

      Projects like "folding@home" for PS3 which can add $200-400 a year to your electric bill.

      Consumers should be made aware of that, before donating their 'free computing time'. Its not free.

    3. Re:PowerTOP not for casual users by Arkaic · · Score: 1

      I would hope that most people who use appliances realize that they are paying for the electricity to run them. TANSTAAFL.

    4. Re:PowerTOP not for casual users by eddy · · Score: 1

      But this isn't a boolean value, you can be almost certain that your typical user do not understand the huge difference between full load and idle in power consumption and therefore money.

      --
      Belief is the currency of delusion.
    5. Re:PowerTOP not for casual users by Dancindan84 · · Score: 2

      My fridge did not clearly indicate that keeping my food cold would cost me money in electricity. The hid that fact away in the "manual." I'm outraged.

      If people aren't aware that making an electronic device do work uses more electricity, it's their issue. I, for one, am tired of people putting the blame on others for not knowing the blatantly obvious.

      --
      "Always forgive your enemies; nothing annoys them so much." - Oscar Wilde
    6. Re:PowerTOP not for casual users by pricedl · · Score: 1

      My fridge did not clearly indicate that keeping my food cold would cost me money in electricity. The hid that fact away in the "manual." I'm outraged.

      Really? Every fridge I've ever seen in a store has a great big sticker on the front with a dollar amount for the expected electricity cost.

      If people aren't aware that making an electronic device do work uses more electricity, it's their issue.

      Usually, a fridge or freezer uses less electricity when it is full than when it is empty. So, the more work you ask it to do, the less it costs. Maybe it's not so obvious.

  3. Second screen shot uses more power by jm91509 · · Score: 1

    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?

    1. Re:Second screen shot uses more power by vidarh · · Score: 1
      You're assuming that nothing else at all changed on the system to add to power consumption. Such as activity (both CPU and disk) when he shut down Beagle for example.

  4. Re:Old Kernels by h4rr4r · · Score: 2, Insightful

    No wonder people say Linux has bad driver support. This is like running windows98 today and claiming that modern devices have no drivers.
    Even RHEL and Debian stable, which make up a huge chunk of enterprise server linux in the USA use 2.6 kernels.

  5. this just in - CPU and peripherals consume power by Gothmolly · · Score: 0

    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.
  6. How stable is CONFIG_NO_HZ? by eddy · · Score: 1

    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.
    1. Re:How stable is CONFIG_NO_HZ? by VON-MAN · · Score: 2, Informative

      Doesn't really matter. You can make yourself a custom kernel just to check your apps and services with NO_HZ. Then when you've identified the misbehaving processes you can fix them and start using your old kernel again.

    2. Re:How stable is CONFIG_NO_HZ? by eddy · · Score: 2, Interesting

      Sure, but I was thinking more like "I went with NO_HZ and then apparently the initialization code for my controller freaked out and ate my RAID-set" type problems, not "The SSH daemon didn't start."

      --
      Belief is the currency of delusion.
    3. Re:How stable is CONFIG_NO_HZ? by Anonymous Coward · · Score: 0

      I've been using .21 with NO_HZ since it came out; it's completely stable, which is why it's labeled non-experimental in the stable branch. It works.

    4. Re:How stable is CONFIG_NO_HZ? by Anonymous Coward · · Score: 0

      Been running since release here without problems.

      NForce2 MB
      Barton 2500+ @ 700MHz
      SiI 3112A

      cat /proc/mdstat
      Personalities : [raid0] [raid1]
      md1 : active raid0 sdb5[1] sda5[0]
                  3019904 blocks 4k chunks

      md2 : active raid1 sdb6[1] sda6[0]
                  153500928 blocks [2/2] [UU]

      md0 : active raid0 sdb3[1] sda3[0]
                  770944 blocks 4k chunks

    5. Re:How stable is CONFIG_NO_HZ? by Ant+P. · · Score: 4, Informative

      I'm using NO_HZ on my P4 desktop. It was horrible in old patches, but the version in the mainline kernel (>= .20) is solid as a rock.

      I gave the powertop thing a try the other day. Seems the worst offender on my machine is MPD, even when it's not doing anything.

    6. Re:How stable is CONFIG_NO_HZ? by VON-MAN · · Score: 1

      Now that IS serious. Have you read anything that would suggest such problems exists, or is this simply the most terrible thing you could think of?

    7. Re:How stable is CONFIG_NO_HZ? by eddy · · Score: 1

      Don't panic! That was my worst-case scenario. They only thing I've read about it was, and this is from memory, a post I believe from Linus where he mentioned in passing that the inclusion of this patch was "difficult" which I took to mean "touched a lot of stuff and took a while to get right" which I then interpreted as "maybe I should wait and see".

      The whole "it's in the stable kernel, therefore don't worry"-thinking doesn't carry a lot of weight with me, especially not since the whole concept of "stable kernel" (as opposed to one based on a development branch) seems to have been abandoned quite a while ago.

      The real testing being when this hits distros. I'll probably try it later, maybe even wait for .22

      --
      Belief is the currency of delusion.
    8. Re:How stable is CONFIG_NO_HZ? by VON-MAN · · Score: 1
      Never panic. Especially not around computers.

      The real testing being when this hits distros. I'll probably try it later, maybe even wait for .22
      You said it's your home fileserver that you wanted to try it with, so i wouldn't expect disasters on your metal. But of course, if you want to be absolutely sure there let the masses test this and use it later.

      I don't mind a bit of excitement, now and then.
    9. Re:How stable is CONFIG_NO_HZ? by gmack · · Score: 1

      Generally my policy is to try things on my PC first and then the laptop. Once I'm sure a feature is stable then I try it on my server and my customer's servers. If your worried about the feture I would suggest waiting until 2.6.22 but most of the complaints about it on the kernel mailing list involved the machine just refusing to boot during the rc cycle so it should be safe.

  7. Re:Old Kernels by VON-MAN · · Score: 5, Insightful

    Most people i know still run 2.4.x
    On a laptop? Sorry, that's stupid.
  8. Re:this just in - CPU and peripherals consume powe by eddy · · Score: 1

    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.
  9. Re:Old Kernels by mwaggs_jd · · Score: 1

    Slackware has even shifted to 2.6.x

    --
    No one here gets out alive
  10. It's not a bug, it's a feature (tm) ! by DrYak · · Score: 3, Funny

    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 ]
    1. Re:It's not a bug, it's a feature (tm) ! by Anonymous Coward · · Score: 0

      >WE GIVE YOU THE POSSIBILITY TO COOK YOUR DINNER ON YOUR LAPTOP

      This reminds me of the old big X terminals at my university. They used to be really hot. I used them a couple of times to warm up a pizza.

  11. Laptops??? What about my server farm? by mpapet · · Score: 3, Interesting

    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
  12. Re:Old Kernels by monkville · · Score: 0

    "We are proud to announce that Slackware Linux version 11.0 has been finally released; it took some time but is well worth the wait. You can read the official announcement at this link. Slackware 11.0 contains the 2.4.33.3 Linux kernel, 2.6.17.13 in /extra and 2.6.18 in the /testing directory; the default boot option is the dependable 2.4.33.3 kernel, but this time we included more choices and support for 2.6.x kernels..." http://www.slackware.com/

  13. Re:Laptops??? What about my server farm? by morgan_greywolf · · Score: 2, Insightful

    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.


    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.
  14. How about hours? by eddy · · Score: 5, Informative

    Success Stories

    "With PowerTOP, I managed to increase the battery life of my Panasonic R4 laptop from 4 to almost 7 hours" -- Keith Packard, Principal Engineer at Intel

    Guess you could accuse him of bias...

    --
    Belief is the currency of delusion.
    1. Re:How about hours? by morgan_greywolf · · Score: 1

      Almost 3 hours, huh? That's pretty good! I wonder how much of this stuff is common sense, though. For example, killing beagled is pretty obvious because of what it does -- it constantly indexes stuff in the background, consuming power through HDD and CPU cycles.

    2. Re:How about hours? by eddy · · Score: 3, Informative

      If you just read the site (it's very small) you'll see that there are many no-obvious things you can detect with it. I personally do however consider it primarily a developer tool, but that might change. But even non-coding users can find out that the CDROM automounting polling is waking the CPU a lot, and disable that in battery mode, etc.

      --
      Belief is the currency of delusion.
    3. Re:How about hours? by caseih · · Score: 2, Informative

      Kieth was well-known in the Linux world before he went to work for Intel. He's largely responsible for the composite X extension, and even the Xorg fork. I also believe he had some influence on the technology responsible for making compiz work. I remember using an early version of his experimental, fancy rendering X server. Also, notably, he created the kdrive mini x server for embedded environments. So he's got a lot of low-level linux experience.

      Getting 7 hours of battery life is indeed impressive. Does anyone know what the Panasonic R4 gets when running windows?

      Maybe Apple will take some of this work and apply it to their OS. MacBook and MacBook Pro battery life is dismal compared to your average Dell business laptop running Windows.

    4. Re:How about hours? by Anonymous Coward · · Score: 0

      Such services as beagle should be designed monitor if system is in power saving mode (e.g. laptop on a battery) and if this turns out to be true, shut down activity and wait for notification event when system (is connected on AC adapter). Of course this implies that they have means to get this event notification - using DBUS- HAL, gpm or whatever else.

    5. Re:How about hours? by morgan_greywolf · · Score: 1

      After reading the HAL spec, I'm not certain if power_management.is_powersave_set will correctly determine if powersave (laptop mode) is really on or not. If laptop mode wasn't set by HAL, this will be correct ... but if it was set by something else (say the system BIOS), then it seems like HAL has no way of reading whether laptop mode is on or not.

    6. Re:How about hours? by morgan_greywolf · · Score: 1

      s/wasn't/was

  15. Re:Laptops??? What about my server farm? by jandrese · · Score: 2, Interesting

    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.
  16. Re:Old Kernels by Penguinisto · · Score: 1
    I can live with running 2.4 on a server (*cough* thanks, Symantec... you (and that no 2.6-kernel-using NetBackup Server) suck! *cough*)

    BUT - on a desktop, or laptop? Nuh-uh. I'm kinda greedy about functionality and performance in those cases.

    /P

    --
    Quo usque tandem abutere, Nimbus, patientia nostra?
  17. $200-400 per year?!? by benhocking · · Score: 1

    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?
    1. Re:$200-400 per year?!? by normuser · · Score: 1

      I only pay about $300/year for electricity overall.

      Dont you mean $300/month? And if its really $300/year where do you get your electricity from?
      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
      XXX#######
    2. Re:$200-400 per year?!? by imsabbel · · Score: 1

      Well, a 24/7 PS3 (or folding@home high end computer) can take as much energy than all the rest combined, _if_ you dont use AC and dont heat electrically.

      Quick caluclation: PS3= ca 200W. 2.5 kWh/day, ca 850 kWh/ year. con be everything from 50-300$, depending on your local energy costs.

      --
      HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
    3. Re:$200-400 per year?!? by vux984 · · Score: 1

      I've posted this before on slashdot but here's a quick breakdown:

      The PS3 is reported to run 220W when running folding@home.

      In, for example, New York, the average residential cost of power in 2006 was 16.86 cents: (http://www.ppinys.org/reports/jtf/electricprices. html)

      So 220W or 0.22kW x .1686 $/kWh x 24h/day x 365days/year is: $324.93 per year.

      New York is on the high side for the US, but not remotely the highest. And prices in Europe tend to be considerably higher.
      Additionally, the rate tends tend to be tiered by use. For example the first X kWH might be y cents while the next 500kWH might be y+5 cents... so depending on how much electricity you use in total, the incremental use of a PS3 24x7 might all be at the next rate tier.

      To your comment that you only pay $300/year for electricity - that could mean a lot of things...maybe you are in a state like Idaho or Kentucky or perhaps you are in Western Canada or somewhere else where rates are very good. Check the link ppinys.org link I provided...

      To your comment about your refrigerator etc: a modern energy star refrigerator ranges from 350-600kWh a year depending on its size, and settings, and assuming a normal operating environment. A PS3 running folding@home 24x7 uses just under 2000kWh per year.

      A PS3 *running folding@home 24x7* uses 3-6 times as much electricity as your fridge.

      Folding@home runs the PS3's cell architecture continuously at full throttle; even games aren't that demanding. The various distributed computing projects advertise that they use your 'idle cpu time'. To me that implies its somehow 'free' that your cpu was spinning its wheels anyway and this just puts that wasted idle time to good use. Like re-directing your daily newspaper subscription to charity while you are on vacation; a good deed at no real cost to you.

      But its not like that. Its more like a system where whenever you aren't actually using your car, you leave it running with a brick on the gas peddle. Obviously THAT is going to drive your fuel consumption through the roof... and that's what folding@home does with electricity...except that most of us don't think about the cost of electricity the way we think about the cost of fuel.

      Electricity is cheap, and usually our normal use of it is dominated by things like the refridgerator, and leaving the TV on over night doesn't really make a difference. But a PS3 running folding@home is a 220 watt bulb that never shuts, and never goes into sleep mode. Running it like that over the span of a year it can dwarf your PC, your stove, your air conditioner, even your fridge.

  18. Re:Old Kernels by diegocgteleline.es · · Score: 5, Funny

    Most people i know still run 2.4.x and Slackware still ships with 2.4 as default.

    Slackware users don't know people. Stop lying! It's just yourself who runs 2.4, right?

  19. Re:Old Kernels by h4rr4r · · Score: 1

    AMANDA, fixes that issue.
    It is free and Free. My boss liked the free part.

  20. Awesome power saving. Read the article! by euxneks · · Score: 1
    From TFA:
     

    In the screenshot, the laptop isn't doing very well. Most of the time the processor is in C2, and then only for an average of 4.4 milliseconds at a time. If the laptop spent most of its time in C4 for at least 20 milliseconds, the battery life would have been approximately one hour longer.

    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
  21. Re:Old Kernels by monkville · · Score: 0

    Power consumption IMHO is not a problem peculiar to laptops. And im sure a lot of machines exist out there running kernels 2.6.2 that wont be able to use this utility. Considering that slackware isnt primarily targetted at servers or business machines, i would say the fact that it ships with the 2.4 kernel as default means quite a numbe rof hobbyists, students and home users still run 2.4.

  22. Re:Laptops??? What about my server farm? by diegocgteleline.es · · Score: 2, Insightful

    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.

  23. Useless by Anonymous Coward · · Score: 0

    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.

    1. Re:Useless by Andy+Dodd · · Score: 4, Insightful

      Wrong.

      Can they fix the application? Yes. See the list of numerous patches to various "notorious" offenders.

      Before you comment about patches being too difficult to apply - in nearly all cases those patches have been sent upstream and are being integrated into the app by the developers of that app. The end result is that while in the short term, PowerTOP benefits only power users who can patch and compile from source, it has enabled identification of offending sections of application code so that the application authors can fix it. (For example, the next release of Pidgin will come with numerous fixes for behavior found with PowerTOP.)

      In short:
      PowerTOP has almost no benefit for the "normal" user in the short term
      PowerTOP has quite a lot of potential benefit for the "power" user
      PowerTOP has the ability to enable application developers to make optimizations that help the "normal" users some time down the line (depending on application/distribution release cycles), thus PowerTOP has great benefit for "normal" users in the long term.

      Can they stop the application? Usually not, but there are some notorious offenders that are "on by default" that most users don't benefit too much from, and would rather temporarily or permanently disable to increase battery life. (See Beagle for example).

      --
      retrorocket.o not found, launch anyway?
    2. Re:Useless by Paradigm_Complex · · Score: 2, Insightful

      Well if I find that turning off my music while working on a paper will give me another hour of battery time, it may well be worth it (particularly so if I don't have access to recharge). However, if I find it doesn't really eat that much power I'd like to keep rocking on. I don't ~need~ a lot of things as much as I need battery life in certain situations. I doubt I'm unique here.

      --
      "A witty saying proves nothing." - Voltaire
    3. Re:Useless by Anonymous Coward · · Score: 0
      Can they fix the application? Yes. See the list of numerous patches to various "notorious" offenders.

      While the list is small now, I can't help but point to this particular gem:

      killall gnome-power-manager

      Priceless stuff.

       


      --
      /captcha is factual. Go figure.

    4. Re:Useless by Anonymous Coward · · Score: 0

      Power users don't really need powertop to discover things that continuiosly poll hw.
      End users can't use powertop because they 1) don't even unserstand the output 2) can't really fix the damn broken thing.
      As I said, useless. Good marketing material though.

    5. Re:Useless by Anonymous Coward · · Score: 0

      PowerTOP has the ability to enable application developers to make optimizations that help the "normal" users some time down the line (depending on application/distribution release cycles), thus PowerTOP has great benefit for "normal" users in the long term.


      Bingo. And this rocks.

      Now when will they come out with MemoryTOP? Why does liferea eat more RES (30MB) than evolution (I mean evolution for god's sake!). And don't get me started on firefox. Reading slashdot or dailykos jumps firefox's RES to 75MB. Which apparently it will never willingly give up. And what's skype's excuse for eating 20MB of physical memory? [These stats are from top(1).]

      Linux desktop apps (and xorg) are memory pigs. Thanks to Vista for being even worse, linux apps will feel no incentive to get their act together. Bah.
    6. Re:Useless by also-rr · · Score: 1

      There are some really bad applications out there - one of the worst is superkaramba because it's easy to load the CPU heavily if you don't manage the timers properly.

      A couple of very small changes to themes can cut CPU use from 30% to 1% (with pic).

      Based on that kind of thing it wouldn't surprise me if real gains were possible in battery life - at the very least for applications with user generated modifications and plugins. The more unpopular Firefox plugins are certainly notorious for lack of QA.

    7. Re:Useless by SirTalon42 · · Score: 1

      Actually there is a 'memoryTOP' coming soon (well partly here already!). Right now vmres and vmsize are INCREDIBLY misleading numbers (in some ways they're almost worse than no numbers).

      on lwn.net there was an article about a kernel patch that would give more detailed information to user space about applications memory usage (i.e. like what pages are shared, and shared between how many applications, shared where only 1 application uses it, or shared where every single application on the system uses it makes a MASSIVE difference in the actual memory consumption).

      Also don't even start looking at the numbers for Xorg, they are down right horrible lies. The reason is because, 1.) Xorg maps your video memory into itself, which artificially raises its memory consumption, and 2.) Applications can store lots of stuff (i.e. pixmaps) inside of Xorg's memory space (Firefox does this extensively).

    8. Re:Useless by daverabbitz · · Score: 1

      Now when will they come out with MemoryTOP? Why does liferea eat more RES (30MB) than evolution (I mean evolution for god's sake!). And don't get me started on firefox. Reading slashdot or dailykos jumps firefox's RES to 75MB. Which apparently it will never willingly give up. And what's skype's excuse for eating 20MB of physical memory? [These stats are from top(1).] Is this a joke?

      What is wrong with top for finding resident memory usage. You just press the less-than-key* three times, and it is sorted by resident memory usage.

      * The symbol above comma on the keyboard, /. eats this character and won't display it.
      --
      What could be better than a jet powered motorcycle? http://www.youtube.com/watch?v=u8l6GTHLSWE
    9. Re:Useless by bersl2 · · Score: 1

      Also don't even start looking at the numbers for Xorg, they are down right horrible lies. The reason is because, 1.) Xorg maps your video memory into itself, which artificially raises its memory consumption, and 2.) Applications can store lots of stuff (i.e. pixmaps) inside of Xorg's memory space (Firefox does this extensively). See xrestop.
  24. Re:Old Kernels by monkville · · Score: 0

    before i get screamed the hell out of, i meant machines less than 2.6.2

  25. Parent is very unfairly moderated by Anonymous Coward · · Score: 0

    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.

  26. My results by rg3 · · Score: 4, Interesting

    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.

    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. :P

    1. Re:My results by Anonymous Coward · · Score: 0
      ...by using a USB mouse instead of the laptop touchpad I am unable to reach state C3.

      [Kmail] was waking up twice a second for no apparent reason...

      There are still some applications that wake up for no reason apparently.

      Your complaints remind me of 'Why Userspace Sucks', by Dave Jones.

  27. I welcome reduced power usage by noidentity · · Score: 1

    "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.

  28. Re:Laptops??? What about my server farm? by Just+Some+Guy · · Score: 2, Interesting

    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.

    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?
  29. Re:Laptops??? What about my server farm? by Spoke · · Score: 2, Informative

    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.

    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.

    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.

    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.
  30. Re:Old Kernels by Anonymous Coward · · Score: 0

    ppl who need security run 2.4
    because 2.6 isn't as well audited and a moving target. yes, this is a problem. we would like to use 2.6, but we can't. (and auditing is tricky, u can't just pay a bunch of specialists to do it, beside being very expensive, u need several audits from different companies + some time running that kernel in production)

  31. Re:Old Kernels by jedidiah · · Score: 1

    Utter nonsense.

    All I've had to do on the last 4 laptops I've tried was to just run the Ubuntu installer/livecd.

    Try running a distro that's not from the dark ages. Even Debian seems to fit this description.

    --
    A Pirate and a Puritan look the same on a balance sheet.
  32. arts patch by IceFox · · Score: 2, Interesting

    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?
  33. Re:Old Kernels by Ryan+Amos · · Score: 1

    Um, what? I run NetBackup Server (version 6) on RHEL 4 (kernel 2.6.9) just fine. I have NBU clients running on RHEL 5 (kernel 2.6.18.) You just need compat-libstdc++-296 and compat-libstdc++-33 installed. It even tells you that in the manual.

    No idea if earlier versions of NBU work on 2.6, but v6 is old enough now that it can be considered stable.

  34. powersaved? by BitZtream · · Score: 1

    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
    1. Re:powersaved? by Anonymous Coward · · Score: 0

      laptop-mode-tools

    2. Re:powersaved? by cortana · · Score: 1

      While fine for managing system-level processes and settings (e.g., the sysctl that disabled the flushing of uncommitted data to disk every five seconds), the users/session-level processes like beagled are probably more suitably managed by gnome-power-manager in GNOME, KDE's equivalent in KDE, etc.

  35. Re:Old Kernels by tayhimself · · Score: 1

    This is not really true. There are still widespread problems for laptop users especially for older laptops that had ACPI quirks. Linux and the laptop vendors never really got ACPI straight for a few years. Also, lets not forget about all the function keys that are not always well supported (though my toshiba portege is fantastic except for ACPI being rubbish which i suspect is the vendors fault). Oh and I have used 2.4 and subsequently 2.6 kernels on it starting around 2004.

  36. this is neither ACPI nor throttling stop FUDding by Anonymous Coward · · Score: 0

    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.

    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 ;) but I understand that this is definitely not CPU throttling.

    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.

  37. Dominion Virginia Power by benhocking · · Score: 1

    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?
  38. Re:Old Kernels by h4rr4r · · Score: 1

    Considering it is slackware, very few people are effected by it.

  39. Wow, convincing numbers by benhocking · · Score: 1

    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?
    1. Re:Wow, convincing numbers by vux984 · · Score: 1

      folding@home would appear to be a good cause

      I think it is.

      but I agree that it would be nice to know up front how much you're actually "donating" to them.

      That's the crux of it. $200-400 is not a trivial amount of money. And personally, even though I think folding@home is a good cause I think if I'm going to 'donate' that much money, I can think of other causes I think are more worthy... and I'll get a tax receipt too.

      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.

      Only because its not itemized. I think if they got their electric bill broken down by appliance, and they could see "PS3" was dominating the bill they would care.

      Take Joe Six-pack, even if he notices that his usage is up, what are the odds he's going to connect all the dots and figure out why? Far more likely he'll just rationalize it as a seasonal fluctuation, or an aggregate of several little things, or he'll think maybe someone left a window open making the air-conditioner work harder, or something like that. Is he really going to think about the PS3 'idling' in the corner? The electric bill is something most people just don't think about. If the power-company let

      Another issue here is that this sort of software is often installed by 10-20 year olds living at home. They don't even see the electric bill, let alone pay it.

  40. Re:Laptops??? What about my server farm? by mpapet · · Score: 1

    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
  41. Re:Old Kernels by dubbreak · · Score: 1

    Most people i know still run 2.4.x

    That's like me saying, "Most people I know run OS/2 and BeOS, so this doesn't help."

    Sure it could be true, but so what? I just have a skewed sample and it just means I hang out with weirdos (well.. I do but they don't run OS/2 or BeOS, well.. they don't currently run them).

    --
    "If you are going through hell, keep going." - Winston Churchill
  42. Yeah, that'd pretty much double it for me by benhocking · · Score: 1

    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?
  43. Re:Old Kernels by massysett · · Score: 1

    On a laptop, it would not only be stupid, but lots of hardware wouldn't even work. Many laptops have the Intel ipw series wifi radios; these have drivers only for 2.6 kernels. I can't imagine anyone is running a recent laptop with a 2.4 kernel.

  44. Re:Old Kernels by Penguinisto · · Score: 1
    Yep - should've been a bit more clear: I'm stuck with 5.1 here, and a corporate policy that demands that particular product for the time being. I'm pushing through paperwork and policy requests that will eventually let me use Bacula, but that's going to take awhile, unfortunately.

    /P

    --
    Quo usque tandem abutere, Nimbus, patientia nostra?
  45. Just waiting to see... by Gibbs-Duhem · · Score: 2, Funny

    gnome-power-manager as the biggest power hog on the system.

    1. Re:Just waiting to see... by Jerf · · Score: 1

      Did you read the Tips and Tricks? I can't tell.

  46. Re:Laptops??? What about my server farm? by Anonymous Coward · · Score: 0

    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.
    As far as you knew. You're right.

    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:

    "The tickless kernel feature (CONFIG_NO_HZ) enables 'on-demand' timer interrupts: if there is no timer to be expired for say 1.5 seconds when the system goes idle, then the system will stay totally idle for 1.5 seconds. This should bring cooler CPUs and power savings: on our (x86) testboxes we have measured the effective IRQ rate to go from HZ to 1-2 timer interrupts per second.

    "This feature is implemented by driving 'low res timer wheel' processing via special per-CPU high-res timers, which timers are reprogrammed to the next-low-res-timer-expires interval. This tickless-kernel design is SMP-safe in a natural way and has been developed on SMP systems from the beginning."
    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.
  47. Re:Old Kernels by Anonymous Coward · · Score: 0

    What a big load of baloney.

  48. Re:Old Kernels by lakeland · · Score: 1

    I also disagree with you, I think you missed another requirement. Not dark ages, and not brand spanking new either.

    For instance, I bought a machine based on the nvidia 6150 embedded graphics card. It was an absolute nightmare with incomatible, buggy ACPI, the network only worked after a warm boot, sound was horribly distorted with a background whine and sleep only worked once.

    That nightmare lasted about three months. By then the kernel developers (with not even a bug report from me) had fixed absolutely everything wrong with it. In another three months, the fixed kernel had made its way into ubuntu and so following your advice would've worked perfectly.

    For another example, what was that video card we heard about on /. the other day? The x800 or somesuch? I bet it doesn't work with the ubuntu installer... yet...

    PS: There is also 'terribly made', I find really crap hardware works worse in linux than in windows. For instance, those extremely cheap quickcam thingies which require a software driver to mask gross deficencies in their sensor.

  49. According to this utility ... by PPH · · Score: 3, Funny

    ... its a tie between my USB-powered arc welder and all the kewl blue LEDs.

    --
    Have gnu, will travel.
    1. Re:According to this utility ... by WeblionX · · Score: 1

      That's it, I'm calling your bluff! I once tried to weld with an external SCSI HDD power supply, and could barely get two pieces to stick together! Even when I did you could toss a 4-sided die at it and knock the piece off. Now, if it was FireWire, then maybe it would be possible!

      Come on, we all know you're really wasting your CPU cycles rendering poor quality porn.

      --
      (\(\
      (=_=) Bani!
      (")")
  50. My Dad would've noticed... by benhocking · · Score: 1

    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?
  51. Re:Old Kernels by Ryan+Amos · · Score: 1

    Aah, well 6 is pretty nice, especially with respect to BMR on Windows. It actually makes me not want to slit my wrists every time I have to migrate a Windows box between hardware. Though I do have to say the support has gone downhill since Symantec took over...

  52. Re:Old Kernels by Anonymous Coward · · Score: 0

    Patrick, is that you?

  53. kwrapper by sd.fhasldff · · Score: 1

    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 application

    The 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.

    1. Re:kwrapper by rg3 · · Score: 1

      Thanks for the info. That's what I had found on Google, but it's not clear to me what KDE uses it for. I don't think that type of application needs to wake up once per second.

    2. Re:kwrapper by sd.fhasldff · · Score: 1

      Sounds like it's an app-launcher / wrapper-to-KDE. The need to wake up periodically is probably to check for signals, including if the program has finished. As the man page states, it passes input IT receives (i.e. the kwrapper receives the inputs and passes them to the program it was used to launch), tries to pass output from the app to the console (nay, konsole) and waits for the app to finish. It seems that very few programs should be launched with kwrapper unless the input-passing or term-output is really needed.

    3. Re:kwrapper by rg3 · · Score: 1

      None of those three activities you mention need active wait really. For example, waiting for a process to finish is a matter of running wait() or waitpid(), which blocks until the process finishes. Waiting for a signal can be done by setting a signal handler and running pause(), for example, or by blocking the signal and running sigwait(). Waiting for other input (like in standard input) is also a blocking procedure. All those activities can be handled without waking up every second. If you have to do several of them at the same time you could simply use threads.

  54. so... by maniac/dev/null · · Score: 1

    So, nobody has made a "Power Bottom" joke yet?

  55. Merging different wakeup events? by Anonymous Coward · · Score: 0

    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!

  56. Re:Laptops??? What about my server farm? by Handyman · · Score: 1

    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".