Commit e512cc33 authored by Jiang Biao's avatar Jiang Biao Committed by Zheng Zengkai
Browse files

mm/vmstat.c: erase latency in vmstat_shepherd

mainline inclusion
from mainline-5.12-rc1
commit fbcc8183
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I3ZW3B
CVE: NA

-------------------------------------------------
Many 100us+ latencies have been deteceted in vmstat_shepherd() on CPX
platform which has 208 logic cpus.  And vmstat_shepherd is queued every
second, which could make the case worse.

Add schedule point in vmstat_shepherd() to erase the latency.

Link: https://lkml.kernel.org/r/20210111035526.1511-1-benbjiang@tencent.com


Signed-off-by: default avatarJiang Biao <benbjiang@tencent.com>
Reported-by: default avatarBin Lai <robinlai@tencent.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarChengyang Fan <cy.fan@huawei.com>
Reviewed-by: default avatarChen Wandun <chenwandun@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent fa736dd0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment