20-year-old Linux Kernel Temporary Patch Continues to Slow Modern AMD Processors

20-year-old Linux Kernel Temporary Patch Continues to Slow Modern AMD Processors

AMD Engineer Prateik Nayak recently introduced a CPU idle driver patch for Linux that “skips the dummy wait for processors based on the Zen microarchitecture.”

Help

We collect on a drone for attack aircraft of the Nikolaev region. It will help find and destroy the enemy

When ACPI support was added to the Linux kernel in 2002, it included a “dummy wait operation”. In essence, the system was reading data for no reason other than to delay execution of the next instruction until the CPU could be completely stopped with the STPCLK# instruction. This allowed for some power savings and compatibility in the early days of ACPI, when some chips didn’t go into idle state when they might have been expected.

But this decision was relevant for 20-year-old Athlon processors. Modern AMD Threadripper chips based on the Zen architecture do not need this workaround. As Nyack writes, it hurts them, at least under certain Linux workloads. Testing workloads with instruction-based sampling shows that “a significant amount of time is spent on a dummy operation that is erroneously counted as C-State residency.” The processor, by detecting this dummy work with low loads, can enter a deeper and slower C-State, which then causes the CPU to “wake up” for longer, especially in tasks that require a lot of switching between work and idle states.

Nayak ran tbench tests on a dual CPU system based on the Zen3 architecture. The comparison used a base Linux kernel, a kernel with a fully disabled C2 state, and a kernel with a fixed bogus wait operation. In its patched version, the minimum throughput in MB/s increased by 1390% and the average throughput by 51% compared to the base core. These results are only slightly behind the full disabled C2 version of the kernel.

Learn important technologies for the tester at hand, and get $1300 already through the robot

REGISTER!

If an urgent patch is approved this week to remove or limit the “dummy wait”, it will most likely be part of the Linux 6.0 kernel, which is expected next week.

Source: arstechnica

Related Posts

UK to regulate cryptocurrency memes: illegal advertising

Britain’s financial services regulator has issued guidance to financial services companies and social media influencers who create memes about cryptocurrencies and other investments to regulate them amid…

unofficial renders of the Google Pixel 9 and information about the Pixel 9 Pro XL

The whistleblower @OnLeaks and the site 91mobiles presented the renders of the Google Pixel 9 phone. Four images and a 360° video show a black smartphone with…

Embracer to sell Gearbox (Borderlands) to Take-Two (Rockstar and 2K) for $460 million

Embracer continues to sell off assets – the Swedish gaming holding has just confirmed the sale of The Gearbox Entertainment studio to Take-Two Interactive. The sum is…

photo of the new Xbox X console

The eXputer site managed to get a photo of a new modification of the Microsoft Xbox game console. The source reports that it is a white Xbox…

Israel Deploys Massive Facial Recognition Program in Gaza, – The New York Times

The Technology section is powered by Favbet Tech The images are matched against a database of Palestinians with ties to Hamas. According to The New York Times,…

Twitch has banned chest and buttock broadcasts of gameplay

Twitch has updated its community rules and banned the focus of streams on breasts and buttocks. According to the update, starting March 29, “content that focuses on…

Leave a Reply

Your email address will not be published. Required fields are marked *