]> git.baikalelectronics.ru Git - kernel.git/commit
mm/vmstat.c: erase latency in vmstat_shepherd
authorJiang Biao <benbjiang@tencent.com>
Fri, 26 Feb 2021 01:16:54 +0000 (17:16 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:00 +0000 (09:41 -0800)
commit152714e96e334e381d2f44d4f17a4f86bceeb40c
tree0608fed68d21c0f2206424db1fada188fd4a23f1
parent27fed0b738d1768f406a5b69cb57ccccd7d647aa
mm/vmstat.c: erase latency in vmstat_shepherd

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: Jiang Biao <benbjiang@tencent.com>
Reported-by: Bin Lai <robinlai@tencent.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmstat.c