All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ksummit-discuss] [TECH TOPIC] Decoupling ZRAM from a specific backend
@ 2019-05-30  6:04 Theodore Ts'o
  0 siblings, 0 replies; only message in thread
From: Theodore Ts'o @ 2019-05-30  6:04 UTC (permalink / raw)
  To: ksummit-discuss; +Cc: Vitaly Wool

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-30  6:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-30  6:04 [Ksummit-discuss] [TECH TOPIC] Decoupling ZRAM from a specific backend Theodore Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.