From: Shakeel Butt <shakeel.butt@linux.dev>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Yosry Ahmed <yosry@kernel.org>,
Yunzhao Li <yunzhao@cloudflare.com>,
Jesper Dangaard Brouer <hawk@kernel.org>,
Johannes Weiner <hannes@cmpxchg.org>,
linux-mm@kvack.org, nphamcs@gmail.com, yosryahmed@google.com,
zhouchengming@bytedance.com,
James Houghton <jthoughton@google.com>,
kernel-team <kernel-team@cloudflare.com>
Subject: Re: [PATCH] mm/zswap: use ratelimited stats flush in zswap_shrinker_count()
Date: Mon, 10 Aug 2026 21:35:16 -0700 [thread overview]
Message-ID: <anqmAJKQ61CDlBiR@linux.dev> (raw)
In-Reply-To: <20260810200915.8461c16060fe1b79c18bced2@linux-foundation.org>
On Mon, Aug 10, 2026 at 08:09:15PM -0700, Andrew Morton wrote:
> On Fri, 10 Jul 2026 11:27:31 -0700 Yosry Ahmed <yosry@kernel.org> wrote:
>
> > On Fri, Jul 10, 2026 at 9:36 AM Yunzhao Li <yunzhao@cloudflare.com> wrote:
> > >
> > > > Yeah the per-fault latency is exactly what I was looking for. Seems
> > > > like most of the faults are not faulting in the pages written back to
> > > > disk, nice.
> > >
> > > Yeah, at least for our workloads the cold entries seem to
> > > stay cold.
> > >
> > >
> > > > Would you be able to take a stab at eliminating the flushes as I
> > > > suggested above as an alternative?
> > >
> > > memcg internals are a bit out of my depth to be honest. I can
> > > definitely test a patch on our fleet though and get it verified
> > > if someone picks it up.
> >
> > I can try to come up with a patch if you can help with testing, but it
> > won't be for a week or two. How long would it generally take to verify
> > such a patch?
> >
> > > The ratelimited fix in mm-new is working well for us in the
> > > meantime, so it'd be great to keep that moving forward.
> >
> > Hmm we can keep it in the pipeline for now and perhaps drop it if we
> > can get a proper fix before the next merge window. Does this sound
> > good to you?
>
> So it doesn't seem this will be happening.
>
> The original ratelimiting patch seems useful, is well-tested and
> well-reviewed. I'll plan on upstreaming it in the second week of the
> merge window unless someone stops me!
>
I agree to proceed with the patch. Since this is not exposing any api, we can
always come back to reevaluate the decision.
next prev parent reply other threads:[~2026-08-11 4:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-02 18:07 [PATCH] mm/zswap: use ratelimited stats flush in zswap_shrinker_count() Yunzhao Li
2026-07-02 20:16 ` Johannes Weiner
2026-07-02 20:51 ` Jesper Dangaard Brouer
2026-07-06 19:46 ` Yosry Ahmed
2026-07-08 9:10 ` Jesper Dangaard Brouer
2026-07-08 19:32 ` Yosry Ahmed
2026-07-08 22:16 ` Yunzhao Li
2026-07-09 0:08 ` Yosry Ahmed
2026-07-09 16:34 ` Yunzhao Li
2026-07-09 19:32 ` Yosry Ahmed
2026-07-10 16:35 ` Yunzhao Li
2026-07-10 18:27 ` Yosry Ahmed
2026-07-10 21:25 ` Yunzhao Li
2026-08-11 3:09 ` Andrew Morton
2026-08-11 4:35 ` Shakeel Butt [this message]
2026-08-11 16:42 ` Yosry Ahmed
2026-07-22 20:49 ` Yosry Ahmed
2026-07-10 17:16 ` Nhat Pham
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=anqmAJKQ61CDlBiR@linux.dev \
--to=shakeel.butt@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=hawk@kernel.org \
--cc=jthoughton@google.com \
--cc=kernel-team@cloudflare.com \
--cc=linux-mm@kvack.org \
--cc=nphamcs@gmail.com \
--cc=yosry@kernel.org \
--cc=yosryahmed@google.com \
--cc=yunzhao@cloudflare.com \
--cc=zhouchengming@bytedance.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