qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	efcount.@irqsave.net
Subject: Re: [Qemu-devel] QCOW2 deduplication design
Date: Wed, 09 Jan 2013 09:32:18 -0700	[thread overview]
Message-ID: <50ED9B92.6080303@redhat.com> (raw)
In-Reply-To: <CAJSP0QVHY2XLyUw6-pGt8pf_S9XP0xe_e1LKKP-Yf3UvakxASQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]

On 01/09/2013 09:16 AM, Stefan Hajnoczi wrote:

>> I.6) max refcount reached
>> The L2 hash block of the cluster is written in order to remember at next startup
>> that it must not be used anymore for deduplication. The hash is dropped from the
>> gtrees.
> 
> Interesting case.  This means you can no longer take snapshots
> containing this cluster because we cannot track references :(.
> 
> Worst case: guest fills the disk with the same 4 KB data (e.g.
> zeroes).  There is only a single data cluster but the refcount is
> maxed out.  Now it is not possible to take a snapshot.

Except that a sector of all zeroes should be represented as a hole,
rather than occupying a cluster (that is, since all zeros is the most
likely value for a very common data, but also has a special case
representation that doesn't take any clusters at all, we should take
advantage of that).  But your point remains for a disk that reuses
another common 4KB cluster more than the refcount allows (for example,
how many copies of COPYING do you have on your disk?).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

  reply	other threads:[~2013-01-09 16:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-09 15:24 [Qemu-devel] QCOW2 deduplication design Benoît Canet
2013-01-09 16:16 ` Stefan Hajnoczi
2013-01-09 16:32   ` Eric Blake [this message]
2013-01-10  6:59     ` Stefan Hajnoczi
2013-01-09 16:40   ` Benoît Canet
2013-01-10  8:16     ` Stefan Hajnoczi
2013-01-10 15:18       ` Benoît Canet
2013-01-10 15:28         ` Stefan Hajnoczi
2013-01-09 20:57   ` Benoît Canet

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=50ED9B92.6080303@redhat.com \
    --to=eblake@redhat.com \
    --cc="efcount."@irqsave.net \
    --cc=kwolf@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=stefanha@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 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).