From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpSGQ-0002xz-0f for qemu-devel@nongnu.org; Mon, 13 Oct 2008 14:35:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpSGO-0002wr-Bm for qemu-devel@nongnu.org; Mon, 13 Oct 2008 14:35:29 -0400 Received: from [199.232.76.173] (port=38720 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpSGO-0002wl-59 for qemu-devel@nongnu.org; Mon, 13 Oct 2008 14:35:28 -0400 Received: from mx1.redhat.com ([66.187.233.31]:37417) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KpSGN-0005tJ-LM for qemu-devel@nongnu.org; Mon, 13 Oct 2008 14:35:27 -0400 Message-ID: <48F394C7.6050201@redhat.com> Date: Mon, 13 Oct 2008 14:34:47 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] Disk integrity in QEMU References: <48EE38B9.2050106@codemonkey.ws> <48F38C5E.1080504@redhat.com> <20081013182231.GA6369@shareable.org> In-Reply-To: <20081013182231.GA6369@shareable.org> Content-Type: text/plain; charset=UTF-8; format=flowed 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: qemu-devel@nongnu.org Cc: Chris Wright , Mark McLoughlin , Ryan Harper , Laurent Vivier , kvm-devel Jamie Lokier wrote: > Rik van Riel wrote: >>> When cache=on, read requests may not actually go to the disk. If a >>> previous read request (by some application on the system) has read the >>> same data, then it becomes a simple memcpy(). Also, the host IO >>> scheduler may do read ahead which means that the data may be available >> >from that. >> >> This can be as much of a data integrity problem as >> asynchronous writes, if various qemu/kvm guests are >> accessing the same disk image with a cluster filesystem >> like GFS. > > If there are multiple qemu/kvm guests accessing the same disk image in > a cluster, provided the host cluster filesystem uses a fully coherent > protocol, ordinary cached reads should be fine. (E.g. not NFS). The problem is when the synchronization only happens in the guests, which is a legitimate and common configuration. Ie. the hosts just pass through the IO and the guests run a GFS cluster. Caching either reads or writes at the host level causes problems. -- All rights reversed.