All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Denis Plotnikov <dplotnikov@virtuozzo.com>
Cc: kwolf@redhat.com, vsementsov@virtuozzo.com, berto@igalia.com,
	qemu-block@nongnu.org, qemu-devel@nongnu.org, mreitz@redhat.com,
	den@openvz.org
Subject: Re: [PATCH v4 4/5] qcow2: add zstd cluster compression
Date: Tue, 03 Mar 2020 15:41:07 +0100	[thread overview]
Message-ID: <87d09txzzw.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20200303133425.24471-5-dplotnikov@virtuozzo.com> (Denis Plotnikov's message of "Tue, 3 Mar 2020 16:34:24 +0300")

Denis Plotnikov <dplotnikov@virtuozzo.com> writes:

> zstd significantly reduces cluster compression time.
> It provides better compression performance maintaining
> the same level of the compression ratio in comparison with
> zlib, which, at the moment, is the only compression
> method available.
>
> The performance test results:
> Test compresses and decompresses qemu qcow2 image with just
> installed rhel-7.6 guest.
> Image cluster size: 64K. Image on disk size: 2.2G
>
> The test was conducted with brd disk to reduce the influence
> of disk subsystem to the test results.
> The results is given in seconds.
>
> compress cmd:
>   time ./qemu-img convert -O qcow2 -c -o compression_type=[zlib|zstd]
>                   src.img [zlib|zstd]_compressed.img
> decompress cmd
>   time ./qemu-img convert -O qcow2
>                   [zlib|zstd]_compressed.img uncompressed.img
>
>            compression               decompression
>          zlib       zstd           zlib         zstd
> ------------------------------------------------------------
> real     65.5       16.3 (-75 %)    1.9          1.6 (-16 %)
> user     65.0       15.8            5.3          2.5
> sys       3.3        0.2            2.0          2.0
>
> Both ZLIB and ZSTD gave the same compression ratio: 1.57
> compressed image size in both cases: 1.4G
>
> Signed-off-by: Denis Plotnikov <dplotnikov@virtuozzo.com>
[...]
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index a67eb8bff4..84889fb741 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -4401,11 +4401,12 @@
>  # Compression type used in qcow2 image file
>  #
>  # @zlib:  zlib compression, see <http://zlib.net/>
> +# @zstd:  zstd compression, see <http://github.com/facebook/zstd>
>  #
>  # Since: 5.0
>  ##
>  { 'enum': 'Qcow2CompressionType',
> -  'data': [ 'zlib' ] }
> +  'data': [ 'zlib', { 'name': 'zstd', 'if': 'defined(CONFIG_ZSTD)' } ] }
>  
>  ##
>  # @BlockdevCreateOptionsQcow2:

Like MultiFDCompression less value @none.

QAPI part:
Acked-by: Markus Armbruster <armbru@redhat.com>

[...]



  reply	other threads:[~2020-03-03 14:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-03 13:34 [PATCH v4 0/5] qcow2: Implement zstd cluster compression method Denis Plotnikov
2020-03-03 13:34 ` [PATCH v4 1/5] block/qcow2-threads: fix qcow2_decompress Denis Plotnikov
2020-03-03 13:34 ` [PATCH v4 2/5] qcow2: introduce compression type feature Denis Plotnikov
2020-03-03 14:32   ` Vladimir Sementsov-Ogievskiy
2020-03-03 13:34 ` [PATCH v4 3/5] qcow2: rework the cluster compression routine Denis Plotnikov
2020-03-03 15:43   ` Vladimir Sementsov-Ogievskiy
2020-03-04  7:46   ` Vladimir Sementsov-Ogievskiy
2020-03-03 13:34 ` [PATCH v4 4/5] qcow2: add zstd cluster compression Denis Plotnikov
2020-03-03 14:41   ` Markus Armbruster [this message]
2020-03-04  7:49   ` Vladimir Sementsov-Ogievskiy
2020-03-04 12:46     ` Denis Plotnikov
2020-03-03 13:34 ` [PATCH v4 5/5] iotests: 287: add qcow2 compression type test Denis Plotnikov
2020-03-04 11:27   ` Vladimir Sementsov-Ogievskiy
2020-03-04 13:01     ` Denis Plotnikov

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=87d09txzzw.fsf@dusky.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=berto@igalia.com \
    --cc=den@openvz.org \
    --cc=dplotnikov@virtuozzo.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=vsementsov@virtuozzo.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.