From: Chengming Zhou <chengming.zhou@linux.dev>
To: Yu Zhao <yuzhao@google.com>
Cc: Minchan Kim <minchan@kernel.org>,
Sergey Senozhatsky <senozhatsky@chromium.org>,
Andrew Morton <akpm@linux-foundation.org>,
Johannes Weiner <hannes@cmpxchg.org>,
Yosry Ahmed <yosryahmed@google.com>,
Nhat Pham <nphamcs@gmail.com>,
Takero Funaki <flintglass@gmail.com>,
Chengming Zhou <zhouchengming@bytedance.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] mm/zswap: use only one pool in zswap
Date: Tue, 18 Jun 2024 00:59:54 -0700 [thread overview]
Message-ID: <62bf4a21-ae1a-4ed0-8b55-9b444d9ca0a7@linux.dev> (raw)
In-Reply-To: <CAOUHufaCYqwZLwCzHbC40KDjSWKYFoVKiPfRxvxr+2Z8JRRXaA@mail.gmail.com>
On 2024/6/17 13:16, Yu Zhao wrote:
> On Mon, Jun 17, 2024 at 6:58 AM Chengming Zhou <chengming.zhou@linux.dev> wrote:
>>
>> Zswap uses 32 pools to workaround the locking scalability problem in
>> zsmalloc,
>
> Note that zpool can have other backends (zbud, z3fold), and the
> original patch was developed (even before zswap could use zsmalloc) to
> make sure it works for all the backend.
>
> This patch only makes sense now only because zsmalloc became a lot
> more popular than other backends (even though some distros still
> default to zbud).
>
Right, we mostly focus on zsmalloc, I just do the same testing using zbud:
real user sys
6.10.0-rc3-zbud 138.23 1239.58 1430.09
6.10.0-rc3-onepool-zbud 139.64 1241.37 1516.59
Since we don't do any locking optimization for zbud, so performance
is worse than 32 pools as expected.
Actually Yosry did a great testing [1] to compare zsmalloc, zbud and
z3flod, to support that we can just use zsmalloc in zswap, so we can
drop zpool, zbud and z3flod.
I will include this information in the changelog in the next version.
[1]
https://lore.kernel.org/lkml/CAJD7tkbRF6od-2x_L8-A1QL3=2Ww13sCj4S3i4bNndqF+3+_Vg@mail.gmail.com/
Thanks.
prev parent reply other threads:[~2024-06-18 8:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-17 12:57 [PATCH 0/2] mm/zsmalloc: change back to per-size_class lock Chengming Zhou
2024-06-17 12:57 ` [PATCH 1/2] " Chengming Zhou
2024-06-17 12:57 ` [PATCH 2/2] mm/zswap: use only one pool in zswap Chengming Zhou
2024-06-17 17:01 ` Nhat Pham
2024-06-17 20:16 ` Yu Zhao
2024-06-17 20:19 ` Yu Zhao
2024-06-24 11:39 ` Yosry Ahmed
2024-06-18 7:59 ` Chengming Zhou [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=62bf4a21-ae1a-4ed0-8b55-9b444d9ca0a7@linux.dev \
--to=chengming.zhou@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=flintglass@gmail.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=senozhatsky@chromium.org \
--cc=yosryahmed@google.com \
--cc=yuzhao@google.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