All of lore.kernel.org
 help / color / mirror / Atom feed
From: June Park <june@pythonplayer123.dev>
To: Matthew Sakai <msakai@redhat.com>, dm-devel@lists.linux.dev
Subject: Re: [PATCH 1/2] vdo: add zstd compression support
Date: Mon, 27 Jul 2026 22:43:06 +0900	[thread overview]
Message-ID: <012e81d2-dd6e-4977-b385-d7ac890be2a2@pythonplayer123.dev> (raw)
In-Reply-To: <178a5039-1817-4e13-8937-12eee8b26cc6@redhat.com>

Hello! Thank you for the thoughtful comments.

> I have to ask, what is the motivation for this change? Do you have a workload that shows some kind of improvement from this proposal?

My initial testing in QEMU, storing files from the kernel source tree, showed noticeable improvements in compression ratio (around 2.4 to 3.5), even though vdo uses small block sizes. However, I did notice that certain types of data (such as long synthetic streams of repeating bytes) showed far less improvement with zstd, at the expense of more CPU cycles. I had concluded that it could outperform LZ4 in some workloads in terms of compression ratio, for more CPU, a trade-off that could be made on a case-by-case basis.

The discussion you linked to proposes the ability to swap the algorithm without reformatting. My current implementation tries to reduce breaking changes as much as possible, so I had decided on storing the compression algorithm directly in the volume geometry, instead of for every block. This has the downside of requiring reformatting, but since the focus of vdo is deduplication, I don't think the large amounts of additional machinery needed to support live changes is justified.

June

      reply	other threads:[~2026-07-27 13:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-23 16:13 [PATCH 1/2] vdo: add zstd compression support Rhajune Park
2026-07-23 16:13 ` [PATCH 2/2] Documentation: device-mapper: document VDO zstd Rhajune Park
2026-07-23 16:18   ` Matthew Sakai
2026-07-23 16:21     ` Matthew Sakai
2026-07-24  1:28 ` [PATCH 1/2] vdo: add zstd compression support Matthew Sakai
2026-07-27 13:43   ` June Park [this message]

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=012e81d2-dd6e-4977-b385-d7ac890be2a2@pythonplayer123.dev \
    --to=june@pythonplayer123.dev \
    --cc=dm-devel@lists.linux.dev \
    --cc=msakai@redhat.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 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.