From: Sergey Senozhatsky <senozhatsky@chromium.org>
To: Nhat Pham <nphamcs@gmail.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>,
Andrew Morton <akpm@linux-foundation.org>,
Yosry Ahmed <yosry@kernel.org>,
Hongfeng Chen <hongfengchen@xiaomi.com>,
Brian Geffon <bgeffon@google.com>,
Minchan Kim <minchan@kernel.org>,
linux-kernel@vger.kernel.org, linux-block@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH v2 1/2] zsmalloc: free a zspage's pages in one batch
Date: Wed, 25 Nov 2026 12:58:09 +0900 [thread overview]
Message-ID: <awZcfYOQXpYLcZSp@google.com> (raw)
In-Reply-To: <CAKEwX=MJJVBfdE+LL-j+jwfkNP=OHaV21XLJxEOBv4XwsBLiiw@mail.gmail.com>
On (26/11/24 16:16), Nhat Pham wrote:
[..]
> [...]
>
> > ---
> > + zpdesc = get_first_zpdesc(zspage);
> > + if (get_next_zpdesc(zpdesc)) {
> > + free_page_chain(zpdesc);
> > + } else {
> > + /* Single-page zspage, e.g. a huge object: nothing to batch */
>
> I wonder if it's worth keeping the old logic for incompressible case.
It does appear to be worth it, it's visible in profiles. Batching comes
as a win for multi-page zspages.
prev parent reply other threads:[~2026-11-25 3:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 5:36 [PATCH v2 1/2] zsmalloc: free a zspage's pages in one batch Sergey Senozhatsky
2026-11-23 5:36 ` [PATCH v2 2/2] zram: keep the hot statistics per CPU Sergey Senozhatsky
2026-11-23 5:38 ` Sergey Senozhatsky
2026-11-24 5:36 ` sashiko-bot
2026-11-24 23:16 ` [PATCH v2 1/2] zsmalloc: free a zspage's pages in one batch Nhat Pham
2026-11-25 3:58 ` Sergey Senozhatsky [this message]
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=awZcfYOQXpYLcZSp@google.com \
--to=senozhatsky@chromium.org \
--cc=akpm@linux-foundation.org \
--cc=bgeffon@google.com \
--cc=hongfengchen@xiaomi.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan@kernel.org \
--cc=nphamcs@gmail.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 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.