Re: [Qemu-devel] qemu-img create: set "nocow" flag to solve performance issue on btrfs

2013-09-27 Thread Paolo Bonzini
Il 27/09/2013 10:58, Chun Yan Liu ha scritto: >> If so, you could run QEMU with "cache=unsafe" and have >> basically the same data safety guarantees as "cache=writeback" on >> every other file system. > "cache=unsafe" means it never calls fsync() ? Yes. However, metadata writes are still done and

Re: [Qemu-devel] qemu-img create: set "nocow" flag to solve performance issue on btrfs

2013-09-27 Thread Chun Yan Liu
>>> On 9/27/2013 at 12:56 AM, in message <5244673f.4000...@redhat.com>, Paolo Bonzini wrote: > Il 26/09/2013 12:30, Chunyan Liu ha scritto: > > > > > > > > 2013/9/26 Paolo Bonzini mailto:pbonz...@redhat.com>> > > > > Il 26/09/2013 09:58, Stefan Hajnoczi ha scritto: > > > On W

Re: [Qemu-devel] qemu-img create: set "nocow" flag to solve performance issue on btrfs

2013-09-26 Thread Paolo Bonzini
Il 26/09/2013 12:30, Chunyan Liu ha scritto: > > > > 2013/9/26 Paolo Bonzini mailto:pbonz...@redhat.com>> > > Il 26/09/2013 09:58, Stefan Hajnoczi ha scritto: > > On Wed, Sep 25, 2013 at 02:38:36PM +0800, Chunyan Liu wrote: > >> Btrfs has terrible performance when hosting VM images,

Re: [Qemu-devel] qemu-img create: set "nocow" flag to solve performance issue on btrfs

2013-09-26 Thread Chunyan Liu
2013/9/26 Paolo Bonzini > Il 26/09/2013 09:58, Stefan Hajnoczi ha scritto: > > On Wed, Sep 25, 2013 at 02:38:36PM +0800, Chunyan Liu wrote: > >> 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

Re: [Qemu-devel] qemu-img create: set "nocow" flag to solve performance issue on btrfs

2013-09-26 Thread Chunyan Liu
2013/9/26 Stefan Hajnoczi > On Wed, Sep 25, 2013 at 02:38:36PM +0800, Chunyan Liu wrote: > > 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 would be to turn off COW >

Re: [Qemu-devel] qemu-img create: set "nocow" flag to solve performance issue on btrfs

2013-09-26 Thread Paolo Bonzini
Il 26/09/2013 09:58, Stefan Hajnoczi ha scritto: > On Wed, Sep 25, 2013 at 02:38:36PM +0800, Chunyan Liu wrote: >> 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 would be

Re: [Qemu-devel] qemu-img create: set "nocow" flag to solve performance issue on btrfs

2013-09-26 Thread Stefan Hajnoczi
On Wed, Sep 25, 2013 at 02:38:36PM +0800, Chunyan Liu wrote: > 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 would be to turn off COW > attributes on VM files (since havin

[Qemu-devel] qemu-img create: set "nocow" flag to solve performance issue on btrfs

2013-09-25 Thread Chunyan Liu
Hi, List, 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 would be to turn off COW attributes on VM files (since having copy on write for this kind of data is not useful). We c