qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH RFC] meson: add option to use zstd for qcow2 compression by d


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [PATCH RFC] meson: add option to use zstd for qcow2 compression by default
Date: Thu, 1 Jul 2021 12:54:40 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

17.06.2021 22:51, Vladimir Sementsov-Ogievskiy wrote:
Recently we added support of zstd to qcow2 format, as zstd seems to be
better than zlib in general, and which is important (as qcow2
compression used mostly for backups) compressed writes are faster with
zstd.

Let's add a build option to use zstd by default.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---

Hi all! We want to use zstd as a default compression type for newly
created qcow2 images in upcoming Virtuozzo 8.

I am not sure, how much the community interested in such option,
probably I should just keep a downstream-only patch changing the
default.

But if you like it, I'd be happy to only set new config option in our
qemu build instead of maintaining extra downstream-only patch :)

So, it's an RFC. I also can split the patch so that refactoring of
qcow2_co_create() go in a separate preparation patch.

Another RFC question, shouldn't we move to zstd by default in upstream
too?



First: the biggest difficulty with zstd as default is updating all iotests to 
work in such conditions. I'm working on this now and hope to post series soon, 
which just improves iotests to support IMGOPTS='compression_type=zstd'. That's 
a first step which is good anyway and don't change any default.

Next: I have a doubt now. Maybe, better way of having alternative default in 
downstream project is introcuducing a kind of configuration file for Qemu? Qemu 
will parse it if exist, and we can ship such a file in rpm package. Something 
like /etc/qemu.conf. Any thoughts? Did something like this ever considered?

Benefit of configuration file vs build options is obvious: you can change a 
default without recompiling.


--
Best regards,
Vladimir



reply via email to

[Prev in Thread] Current Thread [Next in Thread]