linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Shakeel Butt <shakeel.butt@linux.dev>
To: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	 Johannes Weiner <hannes@cmpxchg.org>,
	Michal Hocko <mhocko@kernel.org>,
	 Muchun Song <muchun.song@linux.dev>,
	Steven Rostedt <rostedt@goodmis.org>,
	 JP Kobryn <inwardvessel@gmail.com>,
	Yosry Ahmed <yosryahmed@google.com>,
	linux-mm@kvack.org,  cgroups@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	 Meta kernel team <kernel-team@meta.com>
Subject: Re: [PATCH] memcg: add tracing for memcg stat updates
Date: Thu, 10 Oct 2024 10:27:20 -0700	[thread overview]
Message-ID: <hp45j5kdj5lrqltor5zsx5ti5fsw5j6pzomgtgixr3iq6z2qdd@6if6wvwmzi4h> (raw)
In-Reply-To: <Zwcj5SC_MYrPpNQq@google.com>

On Thu, Oct 10, 2024 at 12:46:29AM GMT, Roman Gushchin wrote:
> On Wed, Oct 09, 2024 at 05:35:50PM -0700, Shakeel Butt wrote:
> > The memcg stats are maintained in rstat infrastructure which provides
> > very fast updates side and reasonable read side. However memcg added
> > plethora of stats and made the read side, which is cgroup rstat flush,
> > very slow. To solve that, threshold was added in the memcg stats read
> > side i.e. no need to flush the stats if updates are within the
> > threshold.
> > 
> > This threshold based improvement worked for sometime but more stats were
> > added to memcg and also the read codepath was getting triggered in the
> > performance sensitive paths which made threshold based ratelimiting
> > ineffective. We need more visibility into the hot and cold stats i.e.
> > stats with a lot of updates. Let's add trace to get that visibility.
> > 
> > Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
> 
> Acked-by: Roman Gushchin <roman.gushchin@linux.dev>

Thanks for the review.


  reply	other threads:[~2024-10-10 17:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-10  0:35 Shakeel Butt
2024-10-10  0:46 ` Yosry Ahmed
2024-10-10  1:08   ` Steven Rostedt
2024-10-10  1:24     ` Yosry Ahmed
2024-10-10 17:26       ` Shakeel Butt
2024-10-15  0:15         ` Yosry Ahmed
2024-10-15  0:23           ` Daniel Xu
2024-10-15  8:02             ` Yosry Ahmed
2024-10-10  0:46 ` Roman Gushchin
2024-10-10 17:27   ` Shakeel Butt [this message]
2024-10-15  8:07 ` Yosry Ahmed
2024-10-15 18:39   ` Shakeel Butt
2024-10-15 18:47     ` Yosry Ahmed

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=hp45j5kdj5lrqltor5zsx5ti5fsw5j6pzomgtgixr3iq6z2qdd@6if6wvwmzi4h \
    --to=shakeel.butt@linux.dev \
    --cc=akpm@linux-foundation.org \
    --cc=cgroups@vger.kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=inwardvessel@gmail.com \
    --cc=kernel-team@meta.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@kernel.org \
    --cc=muchun.song@linux.dev \
    --cc=roman.gushchin@linux.dev \
    --cc=rostedt@goodmis.org \
    --cc=yosryahmed@google.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