From: Vitaly Wool <vitaly.wool@konsulko.com>
To: Vlastimil Babka <vbabka@suse.cz>
Cc: Ananda Badmaev <a.badmaev@clicknet.pro>, Linux-MM <linux-mm@kvack.org>
Subject: Re: [PATCH] mm: add ztree - new allocator for use via zpool API
Date: Thu, 16 Sep 2021 12:38:23 +0200 [thread overview]
Message-ID: <CAM4kBB+icH1w4DT9VS7uO3ifTcyUPOKbLmPzY7mog5xc0Q-tcA@mail.gmail.com> (raw)
In-Reply-To: <b2fe54ab-ade9-c44c-4ec1-a0dd2e6d4ac9@suse.cz>
On Thu, Sep 16, 2021 at 12:12 PM Vlastimil Babka <vbabka@suse.cz> wrote:
>
> On 9/16/21 10:51, Ananda Badmaev wrote:
> > ztree is a versatile backend for zswap and potentially zram. It got its name
> > due to the usage of red-black trees to store blocks of compressed objects.
> > These blocks consist of several consecutive pages and ztree keeps an integer
> > number of objects per block.
> >
> > For zram, ztree has better worst case malloc() and free() times than zsmalloc,
> > does not deteriorate over time and has slightly worse but comparable compression
> > ratio. For zswap, ztree has better worst case malloc() and free() times than
> > z3fold, better compression ratio than z3fold and supports reclaim unlike zsmalloc.
> >
> > Signed-off-by: Ananda Badmaev <a.badmaev@clicknet.pro>
>
> So how many of these allocators do we need? Minimally IMHO some data should
> be provided for the performance comparison claims above.
> Sounds like if this is based on z3fold (I haven't actually compared the
> code) and better in every aspect, why not just "upgrade" z3fold to ztree then?
We have collected a lot of data and it wouldn't fit in the cover
message. I believe Ananda will follow up with comparison details on
various architectures.
I wouldn't say that ztree is completely based on z3fold, the latter
might have served as an inspiration and ztree shares the idea that
keeping an integral amount of objects per page is a good thing. With
that said, ztree operates on blocks, not on pages which allows for
more flexibility.
~Vitaly
next prev parent reply other threads:[~2021-09-16 10:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-16 8:51 Ananda Badmaev
2021-09-16 10:12 ` Vlastimil Babka
2021-09-16 10:38 ` Vitaly Wool [this message]
2021-09-17 4:33 ` Ананда Бадмаев
2021-09-16 9:33 Vitaly Wool
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=CAM4kBB+icH1w4DT9VS7uO3ifTcyUPOKbLmPzY7mog5xc0Q-tcA@mail.gmail.com \
--to=vitaly.wool@konsulko.com \
--cc=a.badmaev@clicknet.pro \
--cc=linux-mm@kvack.org \
--cc=vbabka@suse.cz \
/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