Power Management on Linux, Part 1 - page 2
Off Means Not Really, But Only Sort of OffA very useful power management tool that is best for laptops, though it's also useful on servers and desktops, is the powertop command (see Figure 1). If you see the "no ACPI power usage estimate available" message, unplug your laptop. (Do I also have to say "don't unplug your server or desktop PC"?)
The Linux kernel itself used to be a restless critter than never truly rested, but had timer interrupt rates of 100 to 1000 Hz. This meant that 100 to 1000 times per second the kernel would look around for something to do. Lower Hz means less overhead, higher Hz means less latency. This changed with the release of the 2.6.21 kernel, also called the tickless kernel. When the tickless kernel is in idle mode, it's really being idle and therefore not twitching in a bored fashion, uselessly consuming power and generating heat.
Some things are questionable, but worth trying. For example, the HAL daemon polls your CD/DVD drives constantly at 2 or 16-second intervals to see if new media have been inserted, so if you don't read CDs or DVDs very often it might be worth disabling it with the hal-disable-polling --device [devicename] command. Turn it back on with hal-disable-polling --enable-polling --device [devicename]. If you're thinking that this sort of polling seems a tad kludgy, you're right. man hal-disable-polling says:
"It is the position of the HAL team that polling should be avoided at all costs as long as it doesn't heavily impact the user experience in a negative way."It also gives a lot of helpful information on how polling affects performance. The good news is that a genuine Asynchronous Event Notification Infrastructure, in which media changes will announce themselves instead of waiting shyly to be announced, is coming to the Linux kernel, and then we won't need polling anymore.
The Linux Skype client is a notorious CPU hog even when it is idle. There isn't much you can do to correct this except don't use it, though the Skype developers are working on the problem
Don't get too crazy shutting down everything just to get some clean powertop runs- that's not the point. The processes in bold are the significant ones to watch. It's better to lug around an extra battery than to obsess over shaving off fractions of watts and crippling functionality.
Come back next week and we shall penetrate the mysteries of suspend, hibernate, standby, and how to kill hard drives by being too energy-frugal.
- Skip Ahead
- 1. Off Means Not Really, But Only Sort of Off
- 2. Off Means Not Really, But Only Sort of Off
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: GNOME 3.12 and New Betas for Ubuntu 14.04 and OpenMandriva Lx 2014.0
- 2Linux Top 3: Linus Lashes out, Linux 3.14 Gets PIE and Ubuntu One is Done.
- 3Linux Top 3: Ubuntu 14.04, Debian Gives Squeeze More Life and Red Hat Goes Atomic
- 4Linux Top 3: Linux 3.11, Kubuntu Goes Commercial
- 5Linux Top 3: RHEL 6.5, Debian 7.2 and EOL for Linux 3.0.x