Linux Kernel Summit discussions
 help / color / mirror / Atom feed
From: "Theodore Ts'o" <tytso@mit.edu>
To: ksummit-discuss@lists.linuxfoundation.org
Cc: Vitaly Wool <vitalywool@gmail.com>
Subject: [Ksummit-discuss] [TECH TOPIC] Decoupling ZRAM from a specific backend
Date: Thu, 30 May 2019 02:04:01 -0400	[thread overview]
Message-ID: <20190530060401.GA30835@mit.edu> (raw)

From: Vitaly Wool <vitalywool@gmail.com>

[ Note: The following abstract was submitted via the Linsux Plumbers
  Conference website.  Per the instructions that were posted for the
  Maintainer's / Kernel Summit Call for Proposals[1], the proposal
  should also be posted on the ksummit-discuss list, so that people
  can comment on the proposal, and perhaps start a discussion before
  the summit.

  [1] https://lwn.net/Articles/788378/

  Please note that topic proposals for both the Kernel Summit and the
  Maintainer's Summit are still welcome, and the deadline has been
  extended to June 3rd. -- Ted ]

ZRAM is a compressed RAM based block device implementation which has
gotten a lot of use recently primarily in the Android world. ZRAM
consists of the block device front-end, compressor back-end and memory
allocator back-end. Compressor back-end is accessed via a common API,
and therefore it is easy with ZRAM to select the particular
compression algorithm that fits your special purpose. As opposed to
that, selecting a memory allocator back-end for ZRAM is still not
possible because ZRAM is using zsmalloc API directly.

With that said, zsmalloc is not the only kernel allocator for storing
compressed objects. There also are zbud (up to 2 objects per page) and
z3fold (up to 3 objects per page). Designed to store only integral
number of objects per page, these two have deterministic behavior with
low I/O latencies. Compression ratio suffers for these two of course
-- by much for zbud and not so much for z3fold.

Still z3fold might be a better choice as a backend for ZRAM when
compression ratio is not as important as keeping latencies low. As a
z3fold primary author I keep getting questions when it will be
available for use with ZRAM, and keep answering that it has to be a
result of a wider consensus. To get closer to this, apart from
zsmalloc / z3fold comparisons, this talk will describe in detail how
the existing zpool API should be extended to match ZRAM requirements
and whether there is a performance penalty here as this introduces a
level of indirection.

                 reply	other threads:[~2019-05-30  6:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20190530060401.GA30835@mit.edu \
    --to=tytso@mit.edu \
    --cc=ksummit-discuss@lists.linuxfoundation.org \
    --cc=vitalywool@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).