[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [RFC] Proposed qcow2 extension: subcluster
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [Qemu-devel] [RFC] Proposed qcow2 extension: subcluster allocation |
Date: |
Tue, 11 Apr 2017 10:08:28 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 04/11/2017 09:59 AM, Max Reitz wrote:
>
> Good point, but that also means that (with (2)) you can only use
> subcluster configurations where the L2 entry size increases by a power
> of two. Unfortunately, only one of those configurations itself is a
> power of two, and that is 32.
>
> (With 32 subclusters, you take up 64 bits, which means an L2 entry will
> take 128 bits; with any higher 2^n, you'd take up 2^{n+1} bits and the
> L2 entry would take 2^{n+1} + 64 which is impossible to be a power of two.)
Or we add padding. If you want 64 subclusters, you burn 256 bits per
entry, even though only 192 of those bits are used.
>
> I don't know how useful non-power-of-two subcluster configurations are.
> Probably not at all.
>
> Since using subcluster would always result in the L2 table taking more
> than 512 bytes, you could therefore never guarantee that there is no
> entry overlapping a sector border (except with 32 subclusters).
Yes, there's definite benefits to keeping whatever structure we end up
with aligned so that it naturally falls into sector boundaries, even if
it means more padding bits.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, (continued)
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, Alberto Garcia, 2017/04/11
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, Eric Blake, 2017/04/11
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, Alberto Garcia, 2017/04/12
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, Max Reitz, 2017/04/12
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, Alberto Garcia, 2017/04/13
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, Kevin Wolf, 2017/04/13
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, Alberto Garcia, 2017/04/13
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, Kevin Wolf, 2017/04/11
- Re: [Qemu-block] [Qemu-devel] [RFC] Proposed qcow2 extension: subcluster allocation, Eric Blake, 2017/04/11
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, Max Reitz, 2017/04/11
- Re: [Qemu-block] [Qemu-devel] [RFC] Proposed qcow2 extension: subcluster allocation,
Eric Blake <=
- Re: [Qemu-block] [Qemu-devel] [RFC] Proposed qcow2 extension: subcluster allocation, Max Reitz, 2017/04/11
- Re: [Qemu-block] [Qemu-devel] [RFC] Proposed qcow2 extension: subcluster allocation, Kevin Wolf, 2017/04/11
- Re: [Qemu-block] [Qemu-devel] [RFC] Proposed qcow2 extension: subcluster allocation, Max Reitz, 2017/04/11
- Re: [Qemu-block] [Qemu-devel] [RFC] Proposed qcow2 extension: subcluster allocation, Eric Blake, 2017/04/11
- Re: [Qemu-block] [Qemu-devel] [RFC] Proposed qcow2 extension: subcluster allocation, Max Reitz, 2017/04/11
- Re: [Qemu-block] [RFC] Proposed qcow2 extension: subcluster allocation, Alberto Garcia, 2017/04/12
Re: [Qemu-block] [Qemu-devel] [RFC] Proposed qcow2 extension: subcluster allocation, Denis V. Lunev, 2017/04/12