News: 0001544646

  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)

ARM64 Expected To Support Lazy Preemption "PREEMPT_LAZY" With Linux 6.16

([Arm] 6 Hours Ago ARM64 Lazy Preempt)


Introduced last year for Linux 6.13 was [1]lazy preemption "PREEMPT_LAZY" for a preemption model that is similar to full preemption but less eager to preempt normal scheduler tasks to provide some of the performance benefits found with voluntary preemption. After initially being supported for x86_64 and RISC-V, it looks like Linux 6.16 will support lazy preemption on ARM64 (AArch64).

Lazy preemption is summed up in the original patches as:

"Lazy preemption will delay preemption for fair class but will function as Full preemption for all the other classes, most notably the realtime (RR/FIFO/DEADLINE) classes.

The goal is to bridge the performance gap with Voluntary, such that we might eventually remove that option entirely."

Following [2]the initial PREEMPT_LAZY merge with x86_64 and RISC-V support, [3]LoongArch support also materialized followed by [4]POWER CPUs . Now finally the ARM64 support looks like it could be merged for the next Linux kernel merge window.

Queued into ARM64's "for-next/entry" Git branch this past week was [5]arm64: enable PREEMPT_LAZY Now that it has made it into one of ARM64's "for-next" Git branches, it should hopefully be submitted for the upcoming Linux 6.16 merge window barring any issues from arising in the code. Just around 20 lines of code needed to be modified for PREEMPT_LAZY on ARM64.



[1] https://www.phoronix.com/news/Linux-6.13-Lazy-Preemption

[2] https://www.phoronix.com/news/Linux-6.13-Sched-Lazy-Preempt

[3] https://www.phoronix.com/news/Linux-6.13-LoongArch

[4] https://www.phoronix.com/news/Linux-6.14-Preempt-Lazy-POWER

[5] https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?h=for-next/entry&id=c8597e2dd8b660c638e3aab3cd5a009d6a2d458b



phoronix

The first version always gets thrown away.