]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched/fair: Avoid re-setting virtual deadline on 'migrations'
authorPeter Zijlstra <peterz@infradead.org>
Fri, 31 May 2024 13:49:40 +0000 (15:49 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 17 Aug 2024 09:06:45 +0000 (11:06 +0200)
commit82e9d0456e06cebe2c89f3c73cdbc9e3805e9437
treee13b9ee47e5d1ad45104110d714bbe52e3be612e
parentfc1892becd5672f52329a75c73117b60ac7841b7
sched/fair: Avoid re-setting virtual deadline on 'migrations'

During OSPM24 Youssef noted that migrations are re-setting the virtual
deadline. Notably everything that does a dequeue-enqueue, like setting
nice, changing preferred numa-node, and a myriad of other random crap,
will cause this to happen.

This shouldn't be. Preserve the relative virtual deadline across such
dequeue/enqueue cycles.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Tested-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lkml.kernel.org/r/20240727105030.625119246@infradead.org
include/linux/sched.h
kernel/sched/fair.c
kernel/sched/features.h