https://spectrum.ieee.org/data-center-energy-consumption [ ] IEEE.orgIEEE Xplore Digital LibraryIEEE StandardsMore Sites Sign InJoin IEEE Accelerate Your Engineering Career: Subscribe to Our FREE Newsletter - View - Close bar Data Centers Can Slash Power Needs With One Coding Tweak Share FOR THE TECHNOLOGY INSIDER Search: [ ] Explore by topic AerospaceAIBiomedicalClimate TechComputingConsumer ElectronicsEnergy History of TechnologyRoboticsSemiconductorsTelecommunications Transportation IEEE Spectrum FOR THE TECHNOLOGY INSIDER Topics AerospaceAIBiomedicalClimate TechComputingConsumer ElectronicsEnergy History of TechnologyRoboticsSemiconductorsTelecommunications Transportation Sections FeaturesNewsOpinionCareersDIYEngineering Resources More NewslettersSpecial ReportsCollectionsExplainersTop Programming LanguagesRobots Guide /IEEE Job Site / For IEEE Members Current IssueMagazine ArchiveThe InstituteThe Institute Archive For IEEE Members Current IssueMagazine ArchiveThe InstituteThe Institute Archive IEEE Spectrum About UsContact UsReprints & Permissions /Advertising / Follow IEEE Spectrum Support IEEE Spectrum IEEE Spectrum is the flagship publication of the IEEE -- the world's largest professional organization devoted to engineering and applied sciences. Our articles, podcasts, and infographics inform our readers about developments in technology, engineering, and science. Join IEEE Subscribe About IEEEContact & SupportAccessibilityNondiscrimination PolicyTerms IEEE Privacy PolicyCookie PreferencesAd Privacy Options (c) Copyright 2025 IEEE -- All rights reserved. A public charity, IEEE is the world's largest technical professional organization dedicated to advancing technology for the benefit of humanity. Enjoy more free content and benefits by creating an account Saving articles to read later requires an IEEE Spectrum account The Institute content is only available for members Downloading full PDF issues is exclusive for IEEE Members Downloading this e-book is exclusive for IEEE Members Access to Spectrum 's Digital Edition is exclusive for IEEE Members Following topics is a feature exclusive for IEEE Members Adding your response to an article requires an IEEE Spectrum account Create an account to access more content and features on IEEE Spectrum , including the ability to save articles to read later, download Spectrum Collections, and participate in conversations with readers and editors. For more exclusive content and features, consider Joining IEEE . Join the world's largest professional organization devoted to engineering and applied sciences and get access to all of Spectrum's articles, archives, PDF downloads, and other benefits. Learn more about IEEE - Join the world's largest professional organization devoted to engineering and applied sciences and get access to this e-book plus all of IEEE Spectrum's articles, archives, PDF downloads, and other benefits. Learn more about IEEE - CREATE AN ACCOUNTSIGN IN JOIN IEEESIGN IN Close Access Thousands of Articles -- Completely Free Create an account and get exclusive content and features: Save articles, download collections, and talk to tech insiders -- all free! For full access and benefits, join IEEE as a paying member. CREATE AN ACCOUNTSIGN IN ComputingNews Data Centers Can Slash Power Needs With One Coding Tweak Reworking 30 lines of Linux code could cut power use by up to 30 percent Rina Diane Caballar 17 Mar 2025 3 min read Rina Diane Caballar is a Contributing Editor covering tech and its intersections with science, society, and the environment. A smiling middle aged man with short gray hair and glasses. Martin Karsten, a Waterloo computer science professor, and his collaborators fixed an inefficiency that can save up to 30% of data center energy use Joe Petrik/University of Waterloo Much of the world's web traffic is routed through data centers, which also fuel power-guzzling artificial intelligence (AI) applications. In the U.S. alone, data centers consumed around 4 percent of the country's total electricity in 2023, and that number is projected to rise up to 12 percent by 2028. Some researchers are thinking big, formulating innovative schemes to make data centers more sustainable. Others, like Martin Karsten, a professor of systems and networking at the University of Waterloo in Canada, are enhancing current methods in the tiniest of ways to reduce data center energy consumption. Karsten and his former master's student, Peter Cai, uncovered inefficiencies in how the Linux operating system (OS) processes network traffic at the kernel level: The Linux kernel is the "seed" or core of the OS, managing communication and resources such as memory between the hardware and processes. In the case of data centers, these processes entail figuring out where to send segments of information called "data packets" transmitted over the network. When the network receives a new packet, it triggers an interrupt request. The kernel sends this request to the CPU, which then puts its current task on hold to process the packet. The OS also periodically polls the network to check for incoming packets before an interrupt request fires. This busy polling mechanism minimizes delays in network traffic processing at the cost of CPU power consumption. During low traffic conditions in particular, polling continues even without packets to process, leading to needless energy usage. Karsten decided to optimize this approach. "Instead of always waiting for a fixed period of time, we dynamically wait based on what we know is going on in the application," he says. He devised a technique such that busy polling happens during high network traffic periods, with unnecessary interrupt requests suspended. When network traffic dies down, interrupt-based delivery resumes. "That makes the resulting mechanism much more efficient and flexible," he adds. Optimizing Linux for Energy Efficiency Putting theory into practice, Karsten partnered with Joe Damato, a distinguished engineer at cloud computing services provider Fastly and frequent Linux kernel contributor, to develop the changes. It turns out they didn't have to write any new code. "It's really just reorganizing the way in which the data flow and the data processing is happening," says Damato. "We piggyback on existing code in the Linux kernel, and we change the order in which things operate." That change led to around 30 lines of reworked code. They tested the functionality and performance of their modifications on different scenarios and workloads, and found that the kernel improvements can decrease power consumption by up to 30 percent. This energy savings comes with a caveat. "It is sort of a best case because the 30 percent applies to the network stack or communication part of it," Karsten explains. "If an application primarily does that, then it will see 30 percent improvement. If the application does a lot of other things and only occasionally uses the network, then the 30 percent will shrink to a smaller value." The altered code can especially benefit network-dominant applications like data centers whose traffic levels fluctuate during the day, because the change is automatic and dynamic based on network traffic load. Such a small code snippet could also have a huge cascading impact, with some reports noting that Linux is widely used by a majority of data center providers and websites. Linux Kernel Update Goes Live The code has been implemented as part of the Linux kernel release version 6.13 in January. Karsten and Cai also published a related paper in the Proceedings of the ACM on Measurement and Analysis of Computing Systems in 2023 and presented it at the ACM SIGMETRICS 2024 conference. Damato hopes to spread the word about their work at upcoming Linux kernel networking conferences this year. He's also planning to add support for a similar mechanism in Fastly's H2O server. And because Linux is open source, Damato hopes others would follow their lead. "Whether you use nginx or Apache or whatever it happens to be as your web server, you'll be able to use some of the code we put out there to help inspire and direct you into how you might implement the same thing for your web server." For Karsten, this work has motivated him to take on sustainability and software efficiency as his next research agenda. "When I grew up in computer science in the 90s, everybody was concerned about efficiency. Because computers were small, they just had a small amount of memory. They were slow, so you had to worry about every cycle and every byte," he says. "Somehow in the last 20 years, this has gotten lost. Everybody's completely gung-ho about performance without any regard for efficiency or resource consumption. I think it's time to pivot, where we can find ways to make things a little more efficient." From Your Site Articles * Should Data Centers Be Kept Cool--Or Warm? > * Green Data: The Next Step to Zero-Emissions Data Centers > * Cool(ing) Ideas for Tropical Data Centers > * Engineer Demand Soars in AI-Driven Data Center Boom - IEEE Spectrum > Related Articles Around the Web * Kernel vs. User-Level Networking: Don't Throw Out the Stack with ... > linuxnetworkingoperating systemopen sourcedata centers Rina Diane Caballar Rina Diane Caballar is a writer covering tech and its intersections with science, society, and the environment. An IEEE Spectrum Contributing Editor, she's a former software engineer based in Wellington, New Zealand. The Conversation (0) Three dimensional rendering of a small nuclear reactor. EnergyNews U.S. Pushes $900M for Small Modular Reactors 6h 6 min read Henry Samueli, a smiling man in dark suit and tie stands against textured green background. CareersNewsOpinionTelecommunications Henry Samueli's Tips for Young Engineers 7h 1 min read This Man Made the Modem in Your Phone a Reality TelecommunicationsMagazineFeatureCareers Henry Samueli: The Broadband Boss 7h 13 min read Related Stories EnergyCareersNews Data Centers Seek Engineers Amid a Talent Shortage ComputingAerospaceNews Is it Lunacy to Put a Data Center on the Moon? AIEnergyComputingAnalysis Experts Weigh in on $500B Stargate Project for AI