diff options
author | Honglei Wang <wanghonglei@didichuxing.com> | 2022-01-13 21:39:20 +0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-01-27 12:57:18 +0100 |
commit | 12bf8a7eb84e4d3547ebfd89bb0a9255a0f2acc7 (patch) | |
tree | cf406039f0c4b2745dd05ed8e55a8b845a299ae7 /kernel/sched/cpufreq_schedutil.c | |
parent | 28c988c3ec29db74a1dda631b18785958d57df4f (diff) | |
download | linux-12bf8a7eb84e4d3547ebfd89bb0a9255a0f2acc7.tar.gz linux-12bf8a7eb84e4d3547ebfd89bb0a9255a0f2acc7.tar.bz2 linux-12bf8a7eb84e4d3547ebfd89bb0a9255a0f2acc7.zip |
sched/numa: initialize numa statistics when forking new task
The child processes will inherit numa_pages_migrated and
total_numa_faults from the parent. It means even if there is no numa
fault happen on the child, the statistics in /proc/$pid of the child
process might show huge amount. This is a bit weird. Let's initialize
them when do fork.
Signed-off-by: Honglei Wang <wanghonglei@didichuxing.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Mel Gorman <mgorman@suse.de>
Link: https://lore.kernel.org/r/20220113133920.49900-1-wanghonglei@didichuxing.com
Diffstat (limited to 'kernel/sched/cpufreq_schedutil.c')
0 files changed, 0 insertions, 0 deletions