]> git.ipfire.org Git - thirdparty/linux.git/commit
sched/fair: Limit run to parity to the min slice of enqueued entities
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 8 Jul 2025 16:56:28 +0000 (18:56 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 9 Jul 2025 11:40:23 +0000 (13:40 +0200)
commit052c3d87c82ea4ee83232b747512847b4e8c9976
treebbe18c3cac48154b8291026052583c755ebfbc9c
parent9de74a9850b9468ac2f515bfbe0844e0bfae869d
sched/fair: Limit run to parity to the min slice of enqueued entities

Run to parity ensures that current will get a chance to run its full
slice in one go but this can create large latency and/or lag for
entities with shorter slice that have exhausted their previous slice
and wait to run their next slice.

Clamp the run to parity to the shortest slice of all enqueued entities.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250708165630.1948751-5-vincent.guittot@linaro.org
kernel/sched/fair.c