From: "André Braga" <meianoite@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] QCow v2
Date: Tue, 11 Jul 2006 14:43:40 -0300 [thread overview]
Message-ID: <2ad73a0607111043l71188aeckf58756bd3dfb48f9@mail.gmail.com> (raw)
In-Reply-To: <46d6db660607110430w74fa175avc0f01a52bb91f44a@mail.gmail.com>
I'm not sure about LZMA, but I'd really like to see this experiment
done with LZO. The compression/decompression speeds of LZO are
fantastic, and I really don't care to shave off every bit of
compressible information as long as it doesn't impact performance as
hard as cqcow does.
There will naturally be people willing to sacrifice speed for space,
so having multiple compression algorithms each targetting a different
scenario would be great.
Something like LZO for compression/decompression speed, LZMA for
maximum speed saving, and deflate (zlib) as a compromise between the
two.
I'm only not sure if 4k is an optimal block size. Given a block size
it's trivial to map which clusters belong to which block, adding that
to a trivial caching algorithm which keeps the "k" latest accessed
blocks in RAM and lazily flushes them to the image (either forced by a
predefined flush frequency of perhaps 2 flushes per minute or by
necessity, to bring another block into the cache; the candidate to go
away could be chosen by LRU).
Just curious: how does CQCOW handle block writes which produce a
compressed cluster larger than the original? Say, the data entropy of
a given cluster increased. Will CQCOW move every block a bit forward
(big, big, big overhead), will it mark the previously occupied space
as free and keep a block index and a bitmap of holes in the file and
then use a best-fit algorithm to choose a block to put in there in the
future (which would mean image-internal fragmentation), or does it
leave the management details to the host file system (and then one has
no control about how fragmented the image gets, unless one runs a
defrag utility on the host)? Is there another solution I'm missing?
Thanks for the attention,
A.
On 7/11/06, Christian MICHON <christian.michon@gmail.com> wrote:
> ok, I did this experiment (long and painful).
>
> a XP2003/SP1 qemu guest required 964,231,168 bytes qcow image.
> zlib qcow image became 459,686,368 bytes.
> lzma estimation (4k clusters) is 437,038,838 bytes.
>
> Yes, 5% are still gained, but the time to get the lzma'ed qcow is
> disastrous (especially on systems with anti-virus and anti-malware).
>
> Do you still think it's worth it ?
>
next prev parent reply other threads:[~2006-07-11 17:45 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-04 2:45 [Qemu-devel] QCow v2 Nathaniel McCallum
2006-07-04 8:12 ` Johannes Schindelin
2006-07-04 8:49 ` Raphaël Rigo
2006-07-04 9:23 ` Fabrice Bellard
2006-07-04 10:44 ` Christian MICHON
2006-07-04 10:57 ` Fabrice Bellard
2006-07-04 11:28 ` Julian Seward
2006-07-04 11:01 ` Johannes Schindelin
2006-07-04 11:13 ` Elefterios Stamatogiannakis
2006-07-04 13:51 ` Christian MICHON
2006-07-04 15:04 ` Natalia Portillo
2006-07-11 11:30 ` Christian MICHON
2006-07-11 17:43 ` André Braga [this message]
2006-07-04 11:14 ` Christian MICHON
2006-07-04 11:26 ` Fabrice Bellard
2006-07-04 12:13 ` Christian MICHON
2006-07-04 12:22 ` Fabrice Bellard
2006-07-04 13:03 ` Christian MICHON
2006-07-04 13:16 ` Christian MICHON
2006-07-04 13:28 ` Johannes Schindelin
2006-07-04 13:01 ` Nathaniel McCallum
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=2ad73a0607111043l71188aeckf58756bd3dfb48f9@mail.gmail.com \
--to=meianoite@gmail.com \
--cc=qemu-devel@nongnu.org \
/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 NNTP newsgroup(s).