From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoHzo-00045u-B9 for qemu-devel@nongnu.org; Fri, 10 Oct 2008 09:25:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoHzn-00045g-3r for qemu-devel@nongnu.org; Fri, 10 Oct 2008 09:25:31 -0400 Received: from [199.232.76.173] (port=52067 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoHzn-00045a-10 for qemu-devel@nongnu.org; Fri, 10 Oct 2008 09:25:31 -0400 Received: from mx2.redhat.com ([66.187.237.31]:39562) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KoHzm-0005lE-Jn for qemu-devel@nongnu.org; Fri, 10 Oct 2008 09:25:30 -0400 Message-ID: <48EF56AB.7010502@redhat.com> Date: Fri, 10 Oct 2008 15:20:43 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] Disk integrity in QEMU References: <48EE38B9.2050106@codemonkey.ws> <20081010095829.GC12910@redhat.com> <48EF2DCE.1010308@redhat.com> <200810101359.59897.paul@codesourcery.com> In-Reply-To: <200810101359.59897.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1 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: Paul Brook Cc: Chris Wright , Mark McLoughlin , kvm-devel , Laurent Vivier , qemu-devel@nongnu.org, Ryan Harper Paul Brook wrote: >>> Absoutely agree that the default should be safe. I don't have enough >>> knowledge to say whether O_DIRECT/O_DSYNC is best - which also implies >>> we should choose the best setting by default, because we can't expect >>> users to know the tradeoffs either. >>> >> The fact that there are different use models for qemu implies that the >> default must be chosen at some higher level than qemu code itself. It >> might be done using /etc/qemu or ~/.qemu, or at the management >> interface, but there is no best setting for qemu itself. >> > > This suggests that the most appropriate defaults are for the users that are > least likely to be using a management tool. I'd guess that the server > partitioning folks are most likely to be using a management tool, so qemu > defaults should be setup for casual/development use. I don't have hard data > to back this up though. > I agree (as my own uses are of the development kind). That rules out O_DIRECT as the qemu-level default. However I'm not sure writeback is a good default, it's too risky (though I've never been bitten; and I've had my share of host crashes). -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.