]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched/numa: Move up the access pid reset logic
authorRaghavendra K T <raghavendra.kt@amd.com>
Tue, 10 Oct 2023 08:31:41 +0000 (09:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:21 +0000 (16:29 +0200)
commit7f01977665d700924f24d9113d3fe99a96d0f47b
treeddd3c4ebff2653ee5cad24292bf468e082e5e350
parent6654e54ae7e7cb2ceb3da85e72ebb7487996a9d9
sched/numa: Move up the access pid reset logic

[ Upstream commit 2e2675db1906ac04809f5399bf1f5e30d56a6f3e ]

Recent NUMA hinting faulting activity is reset approximately every
VMA_PID_RESET_PERIOD milliseconds. However, if the current task has not
accessed a VMA then the reset check is missed and the reset is potentially
deferred forever. Check if the PID activity information should be reset
before checking if the current task recently trapped a NUMA hinting fault.

[ mgorman@techsingularity.net: Rewrite changelog ]

Suggested-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Raghavendra K T <raghavendra.kt@amd.com>
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20231010083143.19593-5-mgorman@techsingularity.net
Stable-dep-of: f22cde4371f3 ("sched/numa: Fix the vma scan starving issue")
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/sched/fair.c