News: 0001643669

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Infinity Scheduler Aims To Be A Better Linux Scheduler

([Linux Kernel] 2 Hours Ago Infinity Scheduler)


The Infinity Scheduler is another attempt at improving the CPU scheduling behavior under Linux and created by the developer behind the existing "scx_flow" sched_ext scheduler. But Infinity Scheduler isn't taking the approach of using sched_ext and is rather patched into the Linux kernel in modifying CFS and RT behavior.

Open-source developer Galih Tama has been working on a replacement to scx_flow to address some "fundamental limitations" of the BPF-based sched_ext approach that can lead to false positives with these schedulers under heavy load. In a message to Phoronix, the Infinity Scheduler is described by its creator as:

"A native EEVDF modification built directly into CFS and RT — no BPF, no sched-ext dependency. The core idea is an Exponential Moving Average that tracks each task's recent runtime history. CPU-bound tasks see their time slice shrink (down to a 400µs floor) while interactive tasks retain the full share. Low-EMA wakeups get a 50% shorter vslice, moving their deadline earlier in the EEVDF tree, and a futex-waiting bypass in pick_eevdf() allows immediate preemption at the next scheduling point. RT tasks get the same EMA treatment via queue placement modulation."

In abandoning the sched_ext route, the Infinity Scheduler is currently just patches to the mainline Linux kernel for modifying the CFS and RT code. These patches as of writing are targeting the mainline Linux 6.18 LTS, Linux 7.0, and Linux 7.1 kernel versions.

Those curious about this new Infinity Scheduler effort for Linux can see [1]this GitHub repository for all the details and the necessary kernel patches. If there is enough reader interest I can look at running some Infinity Scheduler performance benchmarks on Phoronix.



[1] https://github.com/galpt/infinity-scheduler



A woman went into a hospital one day to give birth. Afterwards, the doctor
came to her and said, "I have some... odd news for you."
"Is my baby all right?" the woman anxiously asked.
"Yes, he is," the doctor replied, "but we don't know how. Your son
(we assume) was born with no body. He only has a head."
Well, the doctor was correct. The Head was alive and well, though no
one knew how. The Head turned out to be fairly normal, ignoring his lack of
a body, and lived for some time as typical a life as could be expected under
the circumstances.
One day, about twenty years after the fateful birth, the woman got a
phone call from another doctor. The doctor said, "I have recently perfected
an operation. Your son can live a normal life now: we can graft a body onto
his head!"
The woman, practically weeping with joy, thanked the doctor and hung
up. She ran up the stairs saying, "Johnny, Johnny, I have a *wonderful*
surprise for you!"
"Oh no," cried The Head, "not another HAT!"