From: Feng Tang <feng.tang@intel.com>
To: Chris Down <chris@chrisdown.name>, Roman Gushchin <guro@fb.com>
Cc: Shakeel Butt <shakeelb@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
Michal Hocko <mhocko@suse.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Vladimir Davydov <vdavydov.dev@gmail.com>,
Linux MM <linux-mm@kvack.org>,
LKML <linux-kernel@vger.kernel.org>,
andi.kleen@intel.com, "Chen, Tim C" <tim.c.chen@intel.com>,
Dave Hansen <dave.hansen@intel.com>,
Huang Ying <ying.huang@intel.com>
Subject: Re: [PATCH 2/2] mm: memcg: add a new MEMCG_UPDATE_BATCH
Date: Wed, 6 Jan 2021 12:45:50 +0800 [thread overview]
Message-ID: <20210106044550.GA3184@shbuild999.sh.intel.com> (raw)
In-Reply-To: <X/Ux6CT6EsP+QQ8S@chrisdown.name>
Hi Chris,
On Wed, Jan 06, 2021 at 03:43:36AM +0000, Chris Down wrote:
> Feng Tang writes:
> >One further thought is, there are quite some "BATCH" number in
> >kernel for perf-cpu/global data updating, maybe we can add a
> >global flag 'sysctl_need_accurate_stats' for
> > if (sysctl_need_accurate_stats)
> > batch = SMALLER_BATCH
> > else
> > batch = BIGGER_BATCH
>
> Moving decisions like this to the system administrator is not really a
> solution to the problem -- inclusion should at least be contingent on either
> having "correct-ish" stats exported to userspace. Displaying broken stats to
> the user -- even with a configuration knob -- is less than ideal and is
> likely to confuse and confound issues in future.
>
> I would also like to see numbers from more real-world workloads.
Sure. Roman also mentioned this. Do you have some suggestions for the
workload or benchmarks? I don't have much knowledge on this, and have
only leveraged some of 0day's benchmarking systems.
Thanks,
Feng
> MEMCG_CHARGE_BATCH is certainly fairly arbitrary as-is, but if it is going
> to be changed, the reason for that change and its implications (positive and
> negative) for real-world workloads must be well understood, and I'm not sure
> we're there yet.
next prev parent reply other threads:[~2021-01-06 4:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-29 14:35 [PATCH 1/2] mm: page_counter: relayout structure to reduce false sharing Feng Tang
2020-12-29 14:35 ` [PATCH 2/2] mm: memcg: add a new MEMCG_UPDATE_BATCH Feng Tang
2020-12-29 17:13 ` Roman Gushchin
2021-01-04 2:53 ` Feng Tang
2021-01-04 7:46 ` [mm] 4d8191276e: vm-scalability.throughput 43.4% improvement kernel test robot
2021-01-04 13:15 ` [PATCH 2/2] mm: memcg: add a new MEMCG_UPDATE_BATCH Michal Hocko
2021-01-05 1:57 ` Feng Tang
2021-01-06 0:47 ` Shakeel Butt
2021-01-06 2:12 ` Feng Tang
2021-01-06 3:43 ` Chris Down
2021-01-06 3:45 ` Chris Down
2021-01-06 4:45 ` Feng Tang [this message]
2020-12-29 16:56 ` [PATCH 1/2] mm: page_counter: relayout structure to reduce false sharing Roman Gushchin
2020-12-30 14:19 ` Feng Tang
2021-01-04 13:03 ` Michal Hocko
2021-01-04 13:34 ` Feng Tang
2021-01-04 14:11 ` Michal Hocko
2021-01-04 14:44 ` Feng Tang
2021-01-04 15:34 ` Michal Hocko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210106044550.GA3184@shbuild999.sh.intel.com \
--to=feng.tang@intel.com \
--cc=akpm@linux-foundation.org \
--cc=andi.kleen@intel.com \
--cc=chris@chrisdown.name \
--cc=dave.hansen@intel.com \
--cc=guro@fb.com \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=shakeelb@google.com \
--cc=tim.c.chen@intel.com \
--cc=vdavydov.dev@gmail.com \
--cc=ying.huang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox