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
Fast/Flexible Linux OS Recovery
On Demand Now
In this live one-hour webinar, learn how to enhance your existing backup strategies for complete disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible full-system recovery solution for UNIX and Linux systems.
Join Linux Journal's Shawn Powers and David Huffman, President/CEO, Storix, Inc.
Free to Linux Journal readers.Register Now!
- Devuan Beta Release
- The Qt Company's Qt Start-Up
- May 2016 Issue of Linux Journal
- Open-Source Project Secretly Funded by CIA
- EnterpriseDB's EDB Postgres Advanced Server and EDB Postgres Enterprise Manager
- The US Government and Open-Source Software
- The Death of RoboVM
- The Humble Hacker?
- New Container Image Standard Promises More Portable Apps
- BitTorrent Inc.'s Sync
In modern computer systems, privacy and security are mandatory. However, connections from the outside over public networks automatically imply risks. One easily available solution to avoid eavesdroppers’ attempts is SSH. But, its wide adoption during the past 21 years has made it a target for attackers, so hardening your system properly is a must.
Additionally, in highly regulated markets, you must comply with specific operational requirements, proving that you conform to standards and even that you have included new mandatory authentication methods, such as two-factor authentication. In this ebook, I discuss SSH and how to configure and manage it to guarantee that your network is safe, your data is secure and that you comply with relevant regulations.Get the Guide