[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format |
Date: |
Fri, 22 Feb 2013 14:23:51 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Am 22.02.2013 um 14:11 hat Dietmar Maurer geschrieben:
> > > We currently only need 8 bytes per cluster, which results in small files.
> >
> > So how big is the metadata overhead? If you always copy 64k at once (which
> > is a
> > very conservative assumption - at least for the background copy you'll have
> > much larger blocks), then an 8 byte header for each is 0.01%. Increasing
> > that to
> > 0.02% doesn't sound like a huge problem to me.
>
> We do not always write 64K, because we omit regions filled with zeroes.
> So the picture gets a bit worse when you have sparse images.
>
> For example, if you backup a file which mostly contains empty blocks,
> you will duplicate the size of the resulting file!
If describing an empty image takes more than a couple of bytes, you're
doing something seriously wrong. Because for that case it would be easy
enough to have an entry that just says "0 GB - 2 GB" is zero, and
that's it. 16 bytes for 2 GB of virtual disk size, sounds pretty good to
me.
And it would only be needed if VMAs support backing files, because for
normal sparse blocks, I don't even see any reason why the VMA should
contain any information about them. They are never written to, so they
are by definition sparse.
Kevin
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, (continued)
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/21
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Kevin Wolf, 2013/02/21
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/21
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Eric Blake, 2013/02/21
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Stefan Hajnoczi, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Kevin Wolf, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format,
Kevin Wolf <=
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Kevin Wolf, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Kevin Wolf, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Dietmar Maurer, 2013/02/22
- Re: [Qemu-devel] [PATCH v4 4/6] introduce new vma archive format, Kevin Wolf, 2013/02/22
Re: [Qemu-devel] [PATCH v4 0/6] Efficient VM backup for qemu, Stefan Hajnoczi, 2013/02/20