Linux Scheduler Overhaul Could Boost Gaming Performance on Aging PCs

By

Breaking: Linux Kernel Patch Promises Major FPS Gains for Older Hardware

A proposed Linux kernel patch series could dramatically improve gaming performance on older computers, according to benchmarks released by the developer behind the fix. The patch, titled "sched: Flatten the pick," targets a long-standing flaw in how the Linux scheduler handles CPU time for multiple tasks.

Linux Scheduler Overhaul Could Boost Gaming Performance on Aging PCs
Source: itsfoss.com

In tests using a decade-old Intel Core i7-2600K and AMD Radeon RX 580, the patch turned an "almost unplayable" scenario into a smooth experience. Minimum frames per second (FPS) jumped from 3.8 to 20.6 after applying a shorter scheduler time slice, while average FPS rose from 48.0 to 57.2.

Developer Calls Current Scheduler 'A Pain in the Ar*e'

Linux kernel developer Peter Zijlstra, who authored the patch series, described the current scheduling behavior as a persistent headache. He traced the root cause to a formula that fragments a task group's total weight across every CPU on the system.

"On a 64-core machine, a cgroup is already down to roughly a nice 19 task worth of priority per CPU," Zijlstra explained in his patch submission. "At 256 cores—not unusual in servers today—the margin gets even tinier."

How the Patch Works

The fix addresses two interrelated problems. First, the usual workaround—inflating the group weight by the CPU count—breaks down when all of a group's load lands on a single CPU, causing the weight to balloon past nice -20 and breaking the math. Second, the scheduler currently steps through multiple cgroup levels to pick the next task; the patch collapses that into a single level instead.

Zijlstra ran what he called a "little experiment" using a vintage 2011 desktop. He loaded Shadows: Awakening from GOG via Lutris, using GE-Proton10-34 and Steam Runtime 3, while simultaneously running eight spinner processes—one per CPU thread—to simulate background load.

Benchmark Results

MetricDefault SliceShort Slice (chrt)
FPS min3.820.6
FPS avg48.057.2
FPS max87.480.3
Frame time min (ms)9.48.4
Frame time avg (ms)34.519.5
Frame time max (ms)107.437.2

"With the default scheduler slice, the game went from playable to almost unplayable, as in proper terrible," Zijlstra noted. After restarting with a shorter time slice set via chrt, performance rebounded sharply.

He emphasized that the test was informal: "I have not compared to a kernel without flat on, just wanted to run non trivial workloads and play with slice to make sure everything 'works.'"

Linux Scheduler Overhaul Could Boost Gaming Performance on Aging PCs
Source: itsfoss.com

Background: The Cgroup Scheduling Problem

The Linux Completely Fair Scheduler (CFS) divides CPU time among control groups (cgroups), which are used to manage resource allocation for processes. When a cgroup's weight is distributed across many cores, each core gets a tiny slice of priority—equivalent to a low-priority (nice 19) task on large systems.

This fragmentation becomes severe on high-core-count machines. A 256-core server, common in data centers, can reduce a cgroup's per-CPU priority to negligible levels. The problem is not limited to servers: modern gaming PCs with 16+ cores can also suffer when background tasks compete for CPU time.

Zijlstra's patch flattens the multi-level cgroup hierarchy into a single level, eliminating the weight fragmentation and making task selection more efficient.

What This Means for Gamers

If the patch lands in the mainline Linux kernel, gamers on aging hardware stand to benefit most. The stress test—eight background threads plus a game—mirrors real-world scenarios: Discord, a browser with a dozen tabs, a system update running in the background all compete for CPU time the same way.

But the fix isn't just for old PCs. "High core counts make the weight fragmentation issue worse, not better," Zijlstra explained. Modern rigs with 16 or more cores could see measurable gains when running multiple demanding applications alongside a game.

Important caveat: The patch series has not yet been merged into the mainline Linux kernel. It still requires review from maintainers and will likely undergo revisions before appearing in a stable release. Enthusiasts can test it now by compiling a custom kernel with the patch applied.

For Linux gamers tired of stuttering when background tasks pile on, this development offers a glimpse of smoother gameplay ahead—no new hardware required.

Via: Phoronix

Tags:

Related Articles

Recommended

Discover More

Why the Upcoming Call of Duty Is Skipping PlayStation 4Amazon Expands Logistics Empire: New Supply Chain Service Opens Its Network to BusinessesInside Laurel Supply: The No-Marketing Grocery Store Taking on Erewhon in West HollywoodFlutter 2026 World Tour: Everything You Need to Know About Meeting the Core TeamTesla Semi Enters Production Amid Rivian Earnings, Xpeng’s New Autonomy Tech