Received: from eggs.gnu.org ([2001:4830:134:3::10]:33755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgtwo-0002In-3O for qemu-devel@nongnu.org; Thu, 14 Nov 2013 05:14:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgtwj-0006zV-2Z for qemu-devel@nongnu.org; Thu, 14 Nov 2013 05:14:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgtwi-0006zC-Qg for qemu-devel@nongnu.org; Thu, 14 Nov 2013 05:14:44 -0500 Date: Thu, 14 Nov 2013 11:14:39 +0100 From: Kevin Wolf Message-ID: <20131114101439.GB9755@dhcp-200-207.str.redhat.com> References: <1384416928-3441-1-git-send-email-cyliu@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] qemu-img: set nocow flag to new file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: Chunyan Liu , stefanha@redhat.com, qemu-devel@nongnu.org Am 14.11.2013 um 10:44 hat Alex Benn=E9e geschrieben: >=20 > cyliu@suse.com writes: >=20 > > Set NOCOW flag to newly created images to solve performance issues on= btrfs. > > > > Btrfs has terrible performance when hosting VM images, even more when= the guest > > in those VM are also using btrfs as file system. One way to mitigate = this bad > > performance is to turn off COW attributes on VM files (since having c= opy on > > write for this kind of data is not useful). > >=20 > It's been a while since I had to mess with this performance mystery but > I recall you also need to ensure the partition needs to be mounted with > the nodatacow mount option. Unless this has changed we should probably > warn the user about that. >From the information I read today while looking at this patch, the nodatacow mount option seems just to influence the default for newly created files. That is, if you set the flag like this patch is doing, it has the same effect as running qemu-img create while having mounted the file system with nodatacow. Never tried it on my own, though, so take it with a grain of salt. Kevin