Re: [PATCH 19/24] sched/eevdf: Fixup PELT vs DELAYED_DEQUEUE
From: Peter Zijlstra
Date: Sat Aug 17 2024 - 19:07:13 EST
On Wed, Aug 14, 2024 at 02:59:00PM +0200, Vincent Guittot wrote:
> > So the whole reason to keep then enqueued is so that they can continue
> > to compete for vruntime, and vruntime is load based. So it would be very
> > weird to remove them from load.
>
> We only use the weight to update vruntime, not the load. The load is
> used to balance tasks between cpus and if we keep a "delayed" dequeued
> task in the load, we will artificially inflate the load_avg on this rq
So far load has been a direct sum of all weight. Additionally, we delay
until a task gets picked again, migrating tasks to other CPUs will
expedite this condition.
Anyway, at the moment I don't have strong evidence either which way, and
the above argument seem to suggest not changing things for now.
We can always re-evaluate.