News: 0001619938

  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)

Linux 7.1 sched_ext To Add "SCX_ENQ_IMMED" For Tighter Control When Tasks Land On A CPU

([Linux Kernel] 4 Hours Ago sched_ext)


The Linux kernel's extensible scheduler class " [1]sched_ext " to allow for custom CPU scheduling policies as BPF programs continues enabling new functionality. Queued up in the sched_ext development code ahead of next month's Linux 7.1 cycle is the new SCX_ENQ_IMMED capability for enabling tighter control over when tasks land on a CPU.

The new SCX_ENQ_IMMED flag for sched_ext controls task enqueue behavior by ensuring that a task is enqueued to a local Dispatch Queue (DSQ) if it's able to start running immediately. In other words, if it can be executed immediately.

Longtime Linux developer Tejun Heo worked on this SCX_ENQ_IMMED flag for sched_ext and explained in [2]the patch :

"Add SCX_ENQ_IMMED enqueue flag for local DSQ insertions. Once a task is dispatched with IMMED, it either gets on the CPU immediately and stays on it, or gets reenqueued back to the BPF scheduler. It will never linger on a local DSQ behind other tasks or on a CPU taken by a higher-priority class.

...

This enables tighter scheduling latency control by preventing tasks from piling up on local DSQs. It also enables opportunistic CPU sharing across sub-schedulers - without this, a sub-scheduler can stuff the local DSQ of a shared CPU, making it difficult for others to use."

With the patch now part of sched_ext's "for-7.1" Git branch, you can expect to see SCX_ENQ_IMMED submitted as part of next month's Linux 7.1 merge window.



[1] https://www.phoronix.com/search/sched_ext

[2] https://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git/commit/?h=for-7.1&id=98d709cba3193f0bec54da4cd76ef499ea2f1ef7



Throwing Windows Out The Window

The Federal Bureau Of Missing Socks has banned the use of Microsoft Windows
and Office on all employee computers. But don't get too excited; they aren't
going to replace them with Linux. Instead, this government agency has decided
to go back to using abucusses, slide rules, and manual typewriters.

The banishment of Microsoft software stems from the agency's new policy
against computer games. MS Office, which contains several games in the form of
Easter Eggs, is now verboten on all agency computers. "Flight simulators,
pinball games, magic eight balls... they all violate our policy," said the
sub-adjunct administrator second-class. "So we can't use Office."

Windows is forbidden for the same reason. "We've had way too many
employees wasting time playing Solitaire," she said. "Unfortunately,
Solitaire is an integral part of Windows -- Microsoft executives said so
during the anti-trust trial. If Solitaire is removed, the operating system
won't function properly. Therefore, we have no choice but to banish all
Windows computers."

The Bureau's Assistant Technology Consultant, Mr. Reginald "Red" Taype,
asked, "Have you ever seen an abucus crash? Have you ever seen anybody
have fun with a slide rule? Do adding machines contain undocumented easter
eggs? No! That's why we're ditching our PCs."