From: Yosry Ahmed <yosryahmed@google.com>
To: Nhat Pham <nphamcs@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Vitaly Wool <vitaly.wool@konsulko.com>,
Miaohe Lin <linmiaohe@huawei.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Huacai Chen <chenhuacai@kernel.org>,
WANG Xuerui <kernel@xen0n.name>,
Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>,
Christophe Leroy <christophe.leroy@csgroup.eu>,
"Aneesh Kumar K.V" <aneesh.kumar@kernel.org>,
"Naveen N. Rao" <naveen.n.rao@linux.ibm.com>,
linux-mm@kvack.org, loongarch@lists.linux.dev,
linuxppc-dev@lists.ozlabs.org,
Sergey Senozhatsky <senozhatsky@chromium.org>,
Minchan Kim <minchan@kernel.org>
Subject: Re: [RFC PATCH] mm: z3fold: rename CONFIG_Z3FOLD to CONFIG_Z3FOLD_DEPRECATED
Date: Sun, 14 Jan 2024 15:14:09 -0800 [thread overview]
Message-ID: <CAJD7tkZt_cX=wm9Sp7MuLBxYQ=Hvidz3p9bA1gKhHN+wVVCiOA@mail.gmail.com> (raw)
In-Reply-To: <CAKEwX=O7nYs_syDbMO34K=tqDw8aX51mnZVj4tCLO_N6h-u_pg@mail.gmail.com>
On Sun, Jan 14, 2024 at 2:42 PM Nhat Pham <nphamcs@gmail.com> wrote:
>
> On Sun, Jan 14, 2024 at 10:49 AM Yosry Ahmed <yosryahmed@google.com> wrote:
> >
> > On Fri, Jan 12, 2024 at 4:38 PM Nhat Pham <nphamcs@gmail.com> wrote:
> > >
> > > On Fri, Jan 12, 2024 at 3:37 PM Yosry Ahmed <yosryahmed@google.com> wrote:
> > > >
> > > > On Fri, Jan 12, 2024 at 11:42 AM Nhat Pham <nphamcs@gmail.com> wrote:
> > > > >
> > > > > On Fri, Jan 12, 2024 at 11:31 AM Yosry Ahmed <yosryahmed@google.com> wrote:
> > > > > >
> > > > > > The z3fold compressed pages allocator is not widely used, most users use
> > > > > > zsmalloc. The only disadvantage of zsmalloc in comparison is the
> > > > > > dependency on MMU, and zbud is a more common option for !MMU as it was
> > > > > > the default zswap allocator for a long time.
> > > > >
> > > > > Johannes and I were chatting about this the other day. We might be
> > > > > able to disable certain zsmalloc behavior in the case of !MMU, making
> > > > > it available there too. Once that's happened, we can outright remove
> > > > > z3fold and zbud, and have one allocator to rule them all? :)
> > > >
> > > > (Adding Sergey and Minchan for visibility)
> > > >
> > > > I didn't want to bring up the zsmalloc MMU dependency in this thread
> > > > to reduce noise, but that's also what I had in mind. Sergey and I were
> > > > also chatting about this the other day :)
> > > >
> > > > I thought deprecating z3fold is the low hanging fruit. Then, once we
> > > > can sort out the MMU dependency in zsmalloc, we can go after zbud as
> > > > well.
> > >
> > > Makes sense to me. Should we do the same thing to zbud? We probably
> > > have even less of a case for it, no?
> >
> > Do you mean declare it as deprecated now? I initially thought that
> > would only be appropriate to do after zsmalloc has no dependency on
> > MMU, so that we can confidently say zbud has no practical use case.
>
> Ah, I misread your email. My bad. Personally, I'd like to declare both
> (zbud and z3fold) as deprecated. That said, no strong feelings here -
> as long as (eventually) we move towards retiring both of them. So my
> original ACK still holds.
>
> Not entirely sure which should we remove first between zbud and z3fold
> though. I was under the assumption that z3fold is slightly better, but
> that could be my bias for shiny new things showing :)
My rationale is that zbud was the default zswap allocator for a long
time, so it's the one we should keep for now as it is more likely to
have users. That said, I don't know of any users of either zbud or
z3fold, and I am fine starting with deprecating either.
next prev parent reply other threads:[~2024-01-14 23:14 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-12 19:31 Yosry Ahmed
2024-01-12 19:42 ` Nhat Pham
2024-01-12 23:37 ` Yosry Ahmed
2024-01-13 0:38 ` Nhat Pham
2024-01-14 18:49 ` Yosry Ahmed
2024-01-14 22:42 ` Nhat Pham
2024-01-14 23:14 ` Yosry Ahmed [this message]
2024-01-16 15:38 ` Christoph Hellwig
2024-01-16 20:19 ` Yosry Ahmed
2024-01-22 7:42 ` Christoph Hellwig
2024-01-22 20:49 ` Yosry Ahmed
2024-01-24 21:40 ` Yosry Ahmed
2024-01-12 20:13 ` Nhat Pham
2024-01-15 12:26 ` Vitaly Wool
2024-01-15 16:47 ` Yosry Ahmed
2024-01-16 4:27 ` Sergey Senozhatsky
2024-01-15 20:01 ` Nhat Pham
2024-01-16 16:46 ` Chris Down
2024-01-16 16:44 ` Chris Down
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='CAJD7tkZt_cX=wm9Sp7MuLBxYQ=Hvidz3p9bA1gKhHN+wVVCiOA@mail.gmail.com' \
--to=yosryahmed@google.com \
--cc=akpm@linux-foundation.org \
--cc=aneesh.kumar@kernel.org \
--cc=chenhuacai@kernel.org \
--cc=christophe.leroy@csgroup.eu \
--cc=hannes@cmpxchg.org \
--cc=kernel@xen0n.name \
--cc=linmiaohe@huawei.com \
--cc=linux-mm@kvack.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=loongarch@lists.linux.dev \
--cc=minchan@kernel.org \
--cc=mpe@ellerman.id.au \
--cc=naveen.n.rao@linux.ibm.com \
--cc=nphamcs@gmail.com \
--cc=npiggin@gmail.com \
--cc=senozhatsky@chromium.org \
--cc=vitaly.wool@konsulko.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