mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sergey Senozhatsky <senozhatsky@chromium.org>
To: Yosry Ahmed <yosry@kernel.org>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>,
	 Chris Wiseman <chriswiseman@google.com>,
	Barry Song <baohua@kernel.org>, Nanzhe Zhao <nzzhao@126.com>,
	 Andrew Morton <akpm@linux-foundation.org>,
	Minchan Kim <minchan@kernel.org>,
	 Johannes Weiner <hannes@cmpxchg.org>,
	Nhat Pham <nphamcs@gmail.com>,
	 Chengming Zhou <chengming.zhou@linux.dev>,
	Xueyuan Chen <xueyuan.chen21@gmail.com>,
	 Xueyuan Chen <xueyuan.chen@vivo.com>,
	Brian Geffon <bgeffon@google.com>,
	linux-mm@kvack.org,  linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm/zsmalloc: remove shrinker
Date: Fri, 4 Dec 2026 12:07:27 +0900	[thread overview]
Message-ID: <axIiYQvy__mo40sB@google.com> (raw)
In-Reply-To: <CAO9r8zMnR=RYVFPgkjN26rd0=EmkrXPZr4WMNueCOBBaK4UUVg@mail.gmail.com>

On (26/12/03 08:16), Yosry Ahmed wrote:
> > > 3. The 10-second timer doesn't know about memory pressure, whereas the
> > > shrinker ran when reclaim wanted pages.  Not a blocker, just the first
> > > thing I'd watch if the Pixel numbers don't come back down.
> >
> > So that 10 seconds cooldown is there because those slot-free calls don't
> > come alone, usually.  It's more likely to be a burst of slot-free's and
> > 10 seconds wait kind of tries to space them (burst and compaction) out.
> 
> 10 seconds could be too long or too short, and it can hit another
> slot-free burst. What if we kick the deferred work by a smaller amount
> every time instead of a fixed "10 seconds after first slot-free"?
> Basically, if (let's say) 1 second passes with no slot freeing, then
> the async compaction runs and checks the threshold?

10 seconds static timeout was for simplicity, in current iteration
I'm mirroring (well, at least I think that's what I'm doing)
mm/compaction.c exponential backoff logic.

> Also, does compact_threshold belong in zsmalloc not zram, so that it
> can also be used for zswap? I also wonder if the proactive compaction
> zram interface should be deprecated in favor of just tuning the
> threshold to have a single mechanism for zsmalloc compaction.

Sure, zram compaction was an initial solution, it has moved to zsmalloc
since then.

> > > Andrew, please drop mm-zsmalloc-remove-shrinker.patch from mm-new for
> > > now.  Once we have the Pixel 6 numbers, we can send a 2-patch series
> > > with Sergey's patch first and the shrinker removal second so git bisect
> > > doesn't hit a regressing commit.  Sergey, happy to carry your patch or
> > > rebase mine on top of yours, whichever you prefer.
> >
> > I think your patch will go in as is, no need to rebase, the remaining
> > work will stack on top of it.  I guess we want shrinker replacement,
> > just need to figure out what do we replace it with.
> 
> Might be better to put it at the end so that there's no intermittent
> regressions. Not a big deal tho.

Yeah, probably not a big deal.

  reply	other threads:[~2026-12-04  3:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 15:02 Chris Wiseman
2026-12-01 16:45 ` Nhat Pham
2026-12-01 16:53 ` Yosry Ahmed
2026-12-02  0:46 ` Xueyuan Chen
2026-12-02  2:09 ` Sergey Senozhatsky
2026-12-02  7:04 ` Barry Song
2026-12-02  8:14   ` Sergey Senozhatsky
2026-12-02 10:21     ` Barry Song
2026-12-03  3:08       ` Sergey Senozhatsky
2026-12-03  3:24         ` Barry Song
2026-12-03  3:37           ` Sergey Senozhatsky
2026-12-03  4:24             ` Sergey Senozhatsky
2026-12-03  4:42               ` Chris Wiseman
2026-12-03  4:58                 ` Sergey Senozhatsky
2026-12-03 10:17                   ` Sergey Senozhatsky
2026-12-03 16:16                   ` Yosry Ahmed
2026-12-04  3:07                     ` Sergey Senozhatsky [this message]
2026-12-03  4:52               ` Sergey Senozhatsky
2026-12-03  5:10                 ` Barry Song
2026-12-03  6:17                   ` Sergey Senozhatsky

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=axIiYQvy__mo40sB@google.com \
    --to=senozhatsky@chromium.org \
    --cc=akpm@linux-foundation.org \
    --cc=baohua@kernel.org \
    --cc=bgeffon@google.com \
    --cc=chengming.zhou@linux.dev \
    --cc=chriswiseman@google.com \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=minchan@kernel.org \
    --cc=nphamcs@gmail.com \
    --cc=nzzhao@126.com \
    --cc=xueyuan.chen21@gmail.com \
    --cc=xueyuan.chen@vivo.com \
    --cc=yosry@kernel.org \
    /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

all inboxes | Powered by JetHome®