On January 19, Linus Torvalds released the Linux 6.13 kernel, with improvements in performance, security, and hardware support. A notable feature is lazy preemption support, simplifying kernel scheduling and improving responsiveness. Unlike previous modes, which required explicit preemption points, lazy preemption allows scheduling flexibility with a new flag that indicates future rescheduling needs. This development aims to strike a balance between system responsiveness and performance for long-running tasks. Notably, developers are working towards a more streamlined scheduler with fewer modes to enhance efficiency.
By default, the Linux kernel has four different ways of dealing with the issue of processing system responsiveness, and now, with lazy preemption, we have five.
The new flag, TIF_NEED_RESCHED_LAZY, tells the kernel that rescheduling will be necessary at some point, but it doesn't have to be right now.
Collection
[
|
...
]