Data Centre Industry News & Market Intelligence

Data Centers Can Slash Power Needs With One Coding Tweak – IEEE

data centers coding tweak

Data Centers Can Slash Power Needs With One Coding Tweak – IEEE

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.

He says,

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

He adds,

That makes the resulting mechanism much more efficient and flexible,

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.

Damato, says:

It’s really just reorganizing the way in which the data flow and the data processing is happening,

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

Karsten explains,

It is sort of a best case because the 30 percent applies to the network stack or communication part of it,

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

He says,

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

READ the latest news shaping the data centre market at Data Centre Central

Data Centers Can Slash Power Needs With One Coding Tweak – IEEE, source

Follow us on LinkedIn!

Market News

🤖 aichipsnews.com – AI Chips

🔋 batteriesnews.com – Batteries

🍀 biofuelscentral.com – Biofuels

👩‍💻 datacentrecentral.com – Data Center

💧 hydrogen-central.com – Hydrogen

👁️ newsvidia.com – Nvidia

Join our weekly newsletter!

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.

Most popular

Most discussed