Re: Poor performance with qemu

2010-04-08 Thread Christoph Hellwig
On Thu, Apr 08, 2010 at 06:36:15PM +0300, Avi Kivity wrote: > Shouldn't it do that then? What's the point of fsyncing guest data if > qcow2 metadata is volatile? Not my territory - but in the end getting qcow2 as-is solid in face of crashes will be an uphill battel - I'd rather recommend not us

Re: Poor performance with qemu

2010-04-08 Thread Avi Kivity
On 04/08/2010 06:34 PM, Christoph Hellwig wrote: On Thu, Apr 08, 2010 at 06:28:54PM +0300, Avi Kivity wrote: When it updates qcow2 metadata or when the guest issues a barrier. It's relatively new. I have a patch that introduces cache=volatile somewhere. qcow2 does not issues any fsy

Re: Poor performance with qemu

2010-04-08 Thread Christoph Hellwig
On Thu, Apr 08, 2010 at 06:28:54PM +0300, Avi Kivity wrote: > When it updates qcow2 metadata or when the guest issues a barrier. It's > relatively new. I have a patch that introduces cache=volatile somewhere. qcow2 does not issues any fsyncs by itself, it only passes throught the guests ones.

Re: Poor performance with qemu

2010-04-08 Thread Chris Mason
On Thu, Apr 08, 2010 at 06:28:54PM +0300, Avi Kivity wrote: > On 04/08/2010 06:26 PM, Chris Mason wrote: > >> > >>>Once the O_DIRECT read patch is in, you can switch to that, or tell qemu > >>>to use a writeback cache instead. > >>Even with writeback qemu will issue a lot of fsyncs. > >Oh, I didn't

Re: Poor performance with qemu

2010-04-08 Thread Christoph Hellwig
On Thu, Apr 08, 2010 at 11:26:15AM -0400, Chris Mason wrote: > With O_DIRECT the writeback rates are very reasonable. I'll work up a > way to pass the barrier down from the guest to btrfs to force logging of > updated metadata when required. Barriers are implemented in the guest kernel using queu

Re: Poor performance with qemu

2010-04-08 Thread Avi Kivity
On 04/08/2010 06:26 PM, Chris Mason wrote: Once the O_DIRECT read patch is in, you can switch to that, or tell qemu to use a writeback cache instead. Even with writeback qemu will issue a lot of fsyncs. Oh, I didn't see that when I was testing, when does it fsync? When it

Re: Poor performance with qemu

2010-04-08 Thread Chris Mason
On Thu, Apr 08, 2010 at 05:58:17PM +0300, Avi Kivity wrote: > On 03/30/2010 03:56 PM, Chris Mason wrote: > >On Sun, Mar 28, 2010 at 05:18:03PM +0200, Diego Calleja wrote: > >>Hi, I'm using KVM, and the virtual disk (a 20 GB file using the "raw" > >>qemu format according to virt-manager and, of cour

Re: Poor performance with qemu

2010-04-08 Thread Gordan Bobic
Avi Kivity wrote: On 03/30/2010 03:56 PM, Chris Mason wrote: On Sun, Mar 28, 2010 at 05:18:03PM +0200, Diego Calleja wrote: Hi, I'm using KVM, and the virtual disk (a 20 GB file using the "raw" qemu format according to virt-manager and, of course, placed on a btrfs filesystem, running the la

Re: Poor performance with qemu

2010-04-08 Thread Avi Kivity
On 03/30/2010 03:56 PM, Chris Mason wrote: On Sun, Mar 28, 2010 at 05:18:03PM +0200, Diego Calleja wrote: Hi, I'm using KVM, and the virtual disk (a 20 GB file using the "raw" qemu format according to virt-manager and, of course, placed on a btrfs filesystem, running the latest mainline git)

Re: Poor performance with qemu

2010-03-30 Thread Chris Mason
On Sun, Mar 28, 2010 at 05:18:03PM +0200, Diego Calleja wrote: > Hi, I'm using KVM, and the virtual disk (a 20 GB file using the "raw" > qemu format according to virt-manager and, of course, placed on a btrfs > filesystem, running the latest mainline git) is awfully slow, no matter > what OS is run

Poor performance with qemu

2010-03-29 Thread Markus Suvanto
>Hi, I'm using KVM, and the virtual disk (a 20 GB file using the "raw" >qemu format according to virt-manager and, of course, placed on a btrfs >filesystem, running the latest mainline git) is awfully slow, no matter >what OS is running inside the VM. The PCBSD installer says it's copying >data at

Poor performance with qemu

2010-03-28 Thread Diego Calleja
Hi, I'm using KVM, and the virtual disk (a 20 GB file using the "raw" qemu format according to virt-manager and, of course, placed on a btrfs filesystem, running the latest mainline git) is awfully slow, no matter what OS is running inside the VM. The PCBSD installer says it's copying data at a 40-