From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47156 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6215-0005II-No for qemu-devel@nongnu.org; Wed, 13 Oct 2010 10:10:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P620D-00046j-OF for qemu-devel@nongnu.org; Wed, 13 Oct 2010 10:09:14 -0400 Received: from e31.co.us.ibm.com ([32.97.110.149]:37986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P620D-00046S-I7 for qemu-devel@nongnu.org; Wed, 13 Oct 2010 10:08:21 -0400 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by e31.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id o9DDtfiT000755 for ; Wed, 13 Oct 2010 07:55:41 -0600 Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9DE8J0K164404 for ; Wed, 13 Oct 2010 08:08:19 -0600 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9DEC9iA001346 for ; Wed, 13 Oct 2010 08:12:10 -0600 Message-ID: <4CB5BD51.80806@linux.vnet.ibm.com> Date: Wed, 13 Oct 2010 09:08:17 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH v2 6/7] qed: Read/write support References: <1286552914-27014-7-git-send-email-stefanha@linux.vnet.ibm.com> <4CB479D2.7030901@redhat.com> <4CB47D38.3060602@linux.vnet.ibm.com> <4CB48144.9030607@redhat.com> <20101012155953.GA13872@stefan-thinkpad.transitives.com> <4CB489D1.3050204@linux.vnet.ibm.com> <20101013121328.GB8998@stefan-thinkpad.transitives.com> <4CB5AF0D.9000800@redhat.com> <4CB5B2FD.9030205@linux.vnet.ibm.com> <4CB5B908.1020406@redhat.com> <20101013140715.GF8998@stefan-thinkpad.transitives.com> In-Reply-To: <20101013140715.GF8998@stefan-thinkpad.transitives.com> 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 , Christoph Hellwig , Avi Kivity , qemu-devel@nongnu.org On 10/13/2010 09:07 AM, Stefan Hajnoczi wrote: > >>> That means we can maintain the physical size without introducing >>> additional fsync()s in the allocation path. Since we're already >>> writing out the header anyway, the write operation is basically >>> free too. >>> >> I don't see how it is free. It's an extra write. The good news is >> that it's very easy to amortize. >> > We only need to update the header field on disk when we're already > updating the header, so it's not even an extra write operation. > Because we're already writing out the sector that contains that field in the header. Regards, Anthony Liguori > Stefan >