From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50409 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Otb6L-0004fl-6S for qemu-devel@nongnu.org; Thu, 09 Sep 2010 02:59:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Otb6J-00007e-OO for qemu-devel@nongnu.org; Thu, 09 Sep 2010 02:59:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32785) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Otb6J-00007R-HW for qemu-devel@nongnu.org; Thu, 09 Sep 2010 02:59:15 -0400 Message-ID: <4C8885BB.8020000@redhat.com> Date: Thu, 09 Sep 2010 09:59:07 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] qed: Add QEMU Enhanced Disk format References: <1283767478-16740-1-git-send-email-stefanha@linux.vnet.ibm.com> <4C84E738.3020802@codemonkey.ws> <4C865187.6090508@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Stefan Hajnoczi , qemu-devel@nongnu.org On 09/08/2010 06:07 PM, Stefan Hajnoczi wrote: >>> uint32_t table_size; /* table size, in clusters */ >> Presumably L1 table size? Or any table size? >> >> Hm. It would be nicer not to require contiguous sectors anywhere. How >> about a variable- or fixed-height tree? > Both extents and fancier trees don't fit the philosophy, which is to > keep things straightforward and fast by doing less. With extents and > trees you've got something that looks much more like a full-blown > filesystem. Is there an essential feature or characteristic that QED > cannot provide in its current design? > Not using extents mean that random workloads on very large disks will continuously need to page in L2s (which are quite large, 256KB is large enough that you need to account for read time, not just seek time). Keeping it to two levels means that the image size is limited, not very good for an image format designed in 2010. >> Is the physical image size always derived from the host file metadata? Is >> this always safe? > In my email summarizing crash scenarios and recovery we cover the > bases and I think it is safe to rely on file size as physical image > size. The drawback is that you need a host filesystem and cannot > directly use a bare block device. I think that is acceptable for a > sparse format, otherwise we'd be using raw. Hm, we do have a use case for qcow2-over-lvm. I can't say it's something I like, but a point to consider. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.