The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/4] sched/fair: Manage lag and run to parity with different slices
@ 2025-06-13 14:05 Vincent Guittot
  2025-06-13 14:05 ` [PATCH 1/4] sched/fair: Use protect_slice() instead of direct comparison Vincent Guittot
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Vincent Guittot @ 2025-06-13 14:05 UTC (permalink / raw)
  To: mingo, peterz, juri.lelli, dietmar.eggemann, rostedt, bsegall,
	mgorman, vschneid, linux-kernel
  Cc: Vincent Guittot

This follows the attempt to better track maximum lag of task in presence
of different slices duration:
[1]  https://lore.kernel.org/all/20250418151225.3006867-1-vincent.guittot@linaro.org/

Patch 1 is a simple cleanup to ease following changes.

Patch 2 uses Peter's proposal made in [1] to track the max slice of
enqueued tasks and use it to clamp the lag of dequeued task.

Patch 3 modify the protection of the slice of the current task to take
into account case when tasks with shorter slice wait to run on the cpu

Patch 4 extend to slice protection mecanism to the NO_RUN_TO_PARITY case
to ensure that a resched will be set regularly. Currently, the resched 
will be set only when curr will elapse its slice which is partly similar
to RUN_TO_PARITY. Now the running task has a minimum time quantum (0.7ms)
before eevdf looks for another task to run with the exception of
PREEMPT_SHORT case which remains valid.

Peter Zijlstra (1):
  sched/fair: Increase max lag clamping

Vincent Guittot (3):
  sched/fair: Use protect_slice() instead of direct comparison
  sched/fair: Limit run to parity to the min slice of enqueued entities
  sched/fair: Improve NO_RUN_TO_PARITY

 include/linux/sched.h |  1 +
 kernel/sched/fair.c   | 76 ++++++++++++++++++++++++++++++++++---------
 2 files changed, 61 insertions(+), 16 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-06-25 19:45 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-13 14:05 [PATCH 0/4] sched/fair: Manage lag and run to parity with different slices Vincent Guittot
2025-06-13 14:05 ` [PATCH 1/4] sched/fair: Use protect_slice() instead of direct comparison Vincent Guittot
2025-06-13 17:39   ` dhaval
2025-06-13 14:05 ` [PATCH 2/4] sched/fair: Increase max lag clamping Vincent Guittot
2025-06-13 21:00   ` dhaval
2025-06-16 14:51     ` Vincent Guittot
2025-06-13 14:05 ` [PATCH 3/4] sched/fair: Limit run to parity to the min slice of enqueued entities Vincent Guittot
2025-06-13 22:53   ` dhaval
2025-06-16 12:37     ` Vincent Guittot
2025-06-13 14:05 ` [PATCH 4/4] sched/fair: Improve NO_RUN_TO_PARITY Vincent Guittot
2025-06-13 22:55   ` dhaval
2025-06-19 12:31   ` Vincent Guittot
2025-06-17  9:22 ` [PATCH 0/4] sched/fair: Manage lag and run to parity with different slices Peter Zijlstra
2025-06-18  7:03   ` Vincent Guittot
2025-06-19 12:27     ` Vincent Guittot
2025-06-20  8:42       ` Peter Zijlstra
2025-06-20 10:29         ` Vincent Guittot
2025-06-23 11:16           ` Peter Zijlstra
2025-06-23 16:27             ` Vincent Guittot
2025-06-25 19:45   ` Dhaval Giani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox