Go Green, Save Green with Linux
The two most significant recent innovations in Linux regarding power management are tickless idle and virtualization. The various Linux distribution makers deserve credit for supporting these innovations, integrating them into their distributions and pushing forward initiatives like Lesswatts.org.
The idea behind tickless idle is that Linux, starting with kernel 2.6.21 for 32-bit and 2.6.23 for 64-bit machines, keeps track of time in a completely new way in order to take advantage of low-power states in modern processors. The strategy involves keeping the processor in its lowest power state for as long as possible, interrupting that state only when necessary. For instance, on an Intel Core 2 Duo processor, the power states, or C states, vary between 1.2 and 35 Watts—a significant difference. Before kernel 2.6.21, Linux pulled the processor out of the lower C state with a timer tick to inform the processor of the need to perform housekeeping tasks. This tick, occurring every few milliseconds, functionally reduced the usefulness of the lower-power states. Without the tick, Linux now chills out and conserves power until the next timer event is scheduled to occur. Multisecond idle periods now are possible.
The power savings from tickless idle can have positive benefits in any type of machine—from longer battery life on brawny notebooks to significantly lower electricity bills for home users and data centers.
Although Intel, through the Lesswatts.org Project, is more public about exploiting the tickless kernel and publicizing its power management tools, representatives at AMD assured me that their less-publicized initiatives and partnerships in the Linux community are just as or more significant than Intel's. Margaret Lewis, AMD Director of Commercial Solutions and Software Strategy, asserted that the tickless-kernel features are fully supported on both AMD's 32-bit and 64-bit processors. Furthermore, Brent Kerby, Product Manager for AMD Opteron, noted that AMD's PowerNOW!, Cool'n'Quiet and CoolCore technologies, including the dynamic adjustment of individual processor-core frequencies (and not just in pairs), all function well and automatically under Linux and contribute greatly to power savings. Lewis added, “These technologies give you a lot more power management control and are cumulatively perhaps more important than the tickless kernel.” AMD also emphasized its green efforts in other areas, such as the Green Grid, a consortium of companies working together to address environmental issues holistically throughout the data center, addressing hardware, software, building design, storage, cooling and more.
Linus Torvalds has stated that work on the tickless kernel is mostly done and, thus, can take advantage of low-power states in processors; however, much remains to be done to maximize its effect. Although Linux gladly would remain dormant, other superfluous, busybody processes from various applications keep waking it needlessly. To solve this problem, Intel's Arjan van de Ven created PowerTOP, a tool that finds culprits in the kernel and user space that are bothering the processor needlessly and reports the energy wasted by those activities. PowerTOP also reports on the time spent in each power state.
Making more efficient use of existing computing resources through virtualization, such as consolidating multiple virtual servers onto fewer physical machines, has been a major trend in the Linux space. Little do we realize we are saving a great deal of juice in the process. Thus, not only does one reduce server sprawl and the expense of purchasing and maintaining more machines, but also electrical power utilization is improved by approximately 10–20 Watts per idle virtual machine, according to AMD. Additionally, as Jon 'maddog' Hall says, “Utilizing fewer systems and sharing the load is goodness.”
The power savings from virtualization on Linux has been enhanced further by the arrival of tickless idle. The existence of ticks in each virtual machine would otherwise put multiple extra loads on the virtualization platform and greatly reduce efficiency and the number of VMs per machine. For instance, if you have 30 VMs on one machine, with each one creating hundreds of ticks per second, a significant load is created before any real work is done.
Beyond virtualization itself, a number of vendors are exploring ways to manage their virtualization strategies to streamline their data-center operations and reduce power usage further. One example is Cassatt Corporation's Active Power Management Technology, which has released a platform-agnostic product to turn off servers safely when they are not needed or idle. Rather than leaving machines automatically running round the clock or relying on manual decision making, administrators can set priorities and policies to mandate how, where and when to power down idle servers, as well as power them back up. The net result is better management of both virtual and physical infrastructure. Interesting for us Linux-lovers, Active Power Management is easy to install and nondisruptive, as it relies on internal power controllers found inside most servers rather than on installation of software on managed servers.
Scalent V/OE offers another approach, namely dynamic server repurposing. V/OE allows administrators to shift their data centers between different configurations or go from dead bare metal to live, running, connected servers in just a few minutes and without physical intervention. Scalent's Director of Marketing, Alana Achterkirchen, pointed out that Pacific Gas & Electric (PG&E), California's largest electric utility, offers rebates to companies that deploy IT virtualization projects that result in the removal of computing equipment. The incentive, says PG&E, “is based on the amount of energy saved, predicted through a calculation model” and ranges from $150–$300 per server. Way to go, California!
James Gray is Products Editor for Linux Journal.
|Natalie Rusk's Scratch Coding Cards (No Starch Press)||Feb 17, 2017|
|Own Your DNS Data||Feb 16, 2017|
|IGEL Universal Desktop Converter||Feb 15, 2017|
|Simple Server Hardening||Feb 14, 2017|
|Server Technology's HDOT Alt-Phase Switched POPS PDU||Feb 13, 2017|
|Bash Shell Script: Building a Better March Madness Bracket||Feb 09, 2017|
- Own Your DNS Data
- Simple Server Hardening
- Understanding Firewalld in Multi-Zone Configurations
- Teradici's Cloud Access Platform: "Plug & Play" Cloud for the Enterprise
- From vs. to + for Microsoft and Linux
- The Weather Outside Is Frightful (Or Is It?)
- Bash Shell Script: Building a Better March Madness Bracket
- Server Technology's HDOT Alt-Phase Switched POPS PDU
- IGEL Universal Desktop Converter
- Natalie Rusk's Scratch Coding Cards (No Starch Press)
Pick up any e-commerce web or mobile app today, and you’ll be holding a mashup of interconnected applications and services from a variety of different providers. For instance, when you connect to Amazon’s e-commerce app, cookies, tags and pixels that are monitored by solutions like Exact Target, BazaarVoice, Bing, Shopzilla, Liveramp and Google Tag Manager track every action you take. You’re presented with special offers and coupons based on your viewing and buying patterns. If you find something you want for your birthday, a third party manages your wish list, which you can share through multiple social- media outlets or email to a friend. When you select something to buy, you find yourself presented with similar items as kind suggestions. And when you finally check out, you’re offered the ability to pay with promo codes, gifts cards, PayPal or a variety of credit cards.Get the Guide