All of lore.kernel.org
 help / color / mirror / Atom feed
* + mm-vmstatc-erase-latency-in-vmstat_shepherd.patch added to -mm tree
@ 2021-01-12  4:47 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-01-12  4:47 UTC (permalink / raw)
  To: benbjiang, cl, mm-commits, robinlai


The patch titled
     Subject: mm/vmstat.c: erase latency in vmstat_shepherd
has been added to the -mm tree.  Its filename is
     mm-vmstatc-erase-latency-in-vmstat_shepherd.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-vmstatc-erase-latency-in-vmstat_shepherd.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-vmstatc-erase-latency-in-vmstat_shepherd.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Jiang Biao <benbjiang@tencent.com>
Subject: 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>
---

 mm/vmstat.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/mm/vmstat.c~mm-vmstatc-erase-latency-in-vmstat_shepherd
+++ a/mm/vmstat.c
@@ -1973,6 +1973,8 @@ static void vmstat_shepherd(struct work_
 
 		if (!delayed_work_pending(dw) && need_update(cpu))
 			queue_delayed_work_on(cpu, mm_percpu_wq, dw, 0);
+
+		cond_resched();
 	}
 	put_online_cpus();
 
_

Patches currently in -mm which might be from benbjiang@tencent.com are

mm-vmstatc-erase-latency-in-vmstat_shepherd.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-12  4:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12  4:47 + mm-vmstatc-erase-latency-in-vmstat_shepherd.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.