From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kpm4h-0006zB-ME for qemu-devel@nongnu.org; Tue, 14 Oct 2008 11:44:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kpm4g-0006yq-CT for qemu-devel@nongnu.org; Tue, 14 Oct 2008 11:44:43 -0400 Received: from [199.232.76.173] (port=40383 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kpm4g-0006yn-8T for qemu-devel@nongnu.org; Tue, 14 Oct 2008 11:44:42 -0400 Received: from mx2.redhat.com ([66.187.237.31]:57868) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kpm4f-0004PD-Q8 for qemu-devel@nongnu.org; Tue, 14 Oct 2008 11:44:42 -0400 Message-ID: <48F4BE36.9040309@redhat.com> Date: Tue, 14 Oct 2008 17:43:50 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] Disk integrity in QEMU References: <48EE38B9.2050106@codemonkey.ws> <48EF1D55.7060307@redhat.com> <48F0E83E.2000907@redhat.com> <48F10DFD.40505@codemonkey.ws> <20081012004401.GA9763@acer.localdomain> <48F1CF9E.9030500@redhat.com> <48F23AF1.2000104@codemonkey.ws> <48F24320.9010201@redhat.com> <48F25720.9010306@codemonkey.ws> <48F26171.70109@redhat.com> <48F2681A.1030401@codemonkey.ws> <48F4B904.6000608@redhat.com> <48F4BB93.5030709@codemonkey.ws> In-Reply-To: <48F4BB93.5030709@codemonkey.ws> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Chris Wright , Mark McLoughlin , kvm-devel , Laurent Vivier , qemu-devel@nongnu.org, Ryan Harper Anthony Liguori wrote: > Avi Kivity wrote: >> I don't think O_DIRECT should be qemu's default, since anyone using qemu >> directly is likely a "causal virtualization" user. Management systems >> like ovirt should definitely default to O_DIRECT (really, they shouldn't >> even offer caching). >> > > ovirt isn't a good example because the default storage model is > iSCSI. Since you aren't preserving zero-copy, I doubt that you'll see > any advantage to using O_DIRECT (I suspect the code paths aren't even > different). If you have a hardware iSCSI initiator then O_DIRECT pays off. Even for a software initiator, the write path could be made zero copy. The read path doesn't look good though. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.