linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nhat Pham <nphamcs@gmail.com>
To: igor.b@beldev.am
Cc: Shakeel Butt <shakeel.butt@linux.dev>,
	Vitaly Wool <vitaly.wool@konsulko.se>,
	linux-mm@kvack.org,  akpm@linux-foundation.org
Subject: Re: [PATCH] mm: add zblock allocator
Date: Thu, 3 Apr 2025 14:54:00 -0700	[thread overview]
Message-ID: <CAKEwX=O6ewkzG+GTxh6K=HterkNM=61r7aL+ZrXNdURveVsPcg@mail.gmail.com> (raw)
In-Reply-To: <6d5ed99eb91c5d13b8c16dde6f8df4d9@beldev.am>

On Tue, Apr 1, 2025 at 11:45 PM <igor.b@beldev.am> wrote:
>
> Hi Shakeel,
>
> 2025-04-02 03:16 Shakeel Butt wrote:
> > Hi Vitaly,
> >
> > On Tue, Apr 01, 2025 at 07:17:54PM +0200, Vitaly Wool wrote:
> >> zblock is a special purpose allocator for storing compressed pages.
> >> It stores integer number of compressed objects per its block. These
> >> blocks consist of several physical pages (2**n, i. e. 1/2/4/8).
> >>
> >> With zblock, it is possible to densely arrange objects of various
> >> sizes
> >> resulting in low internal fragmentation. Also this allocator tries to
> >> fill incomplete blocks instead of adding new ones,  in many cases
> >> providing a compression ratio substantially higher than z3fold and
> >> zbud
> >> (though lower than zmalloc's).
> >>
> >> zblock does not require MMU
> >
> > Can you explain why not requiring MMU is important for your use-case?
> > Also what exactly is your use-case? Are you planning to use zblock
> > through zram or zswap or something new?
>
> We have 2 use cases for a zpool backend: data centers (zswap) and small
> MMU less devices, this is where zram comes ito play. We know that zram
> over zpool patch is still out of tree but we also know the story behind
> that :)

In the upstream tree, zram also depends on MMU. It is probably
different in your private tree, but please keep the conversation and
documentation aligned with the reality of upstream :)


  parent reply	other threads:[~2025-04-03 21:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-01 17:17 Vitaly Wool
2025-04-01 18:24 ` Nhat Pham
2025-04-01 21:44   ` Vitaly
2025-04-01 23:16 ` Shakeel Butt
2025-04-02  6:45   ` igor.b
2025-04-02 16:24     ` Shakeel Butt
2025-04-03 21:54     ` Nhat Pham [this message]
2025-04-02 13:03 ` kernel test robot

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='CAKEwX=O6ewkzG+GTxh6K=HterkNM=61r7aL+ZrXNdURveVsPcg@mail.gmail.com' \
    --to=nphamcs@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=igor.b@beldev.am \
    --cc=linux-mm@kvack.org \
    --cc=shakeel.butt@linux.dev \
    --cc=vitaly.wool@konsulko.se \
    /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