Re: [Qemu-devel] [PATCH for-2.8] mirror: do not flush every time the disks are synced

2016-11-14 Thread Jeff Cody
On Wed, Nov 09, 2016 at 05:01:31PM -0500, Paolo Bonzini wrote: > > > - Original Message - > > From: "Jeff Cody" > > To: "Paolo Bonzini" > > Cc: qemu-devel@nongnu.org, qemu-bl...@nongnu.org, js...@redhat.com > > Sent: Wednesday, November 9, 2016 7:38:26 PM > > Subject: Re: [PATCH for-2.8

Re: [Qemu-devel] [PATCH for-2.8] mirror: do not flush every time the disks are synced

2016-11-09 Thread Paolo Bonzini
- Original Message - > From: "Jeff Cody" > To: "Paolo Bonzini" > Cc: qemu-devel@nongnu.org, qemu-bl...@nongnu.org, js...@redhat.com > Sent: Wednesday, November 9, 2016 7:38:26 PM > Subject: Re: [PATCH for-2.8] mirror: do not flush every time the disks are > synced > > On Wed, Nov 09,

Re: [Qemu-devel] [PATCH for-2.8] mirror: do not flush every time the disks are synced

2016-11-09 Thread Jeff Cody
On Wed, Nov 09, 2016 at 05:20:08PM +0100, Paolo Bonzini wrote: > This puts a huge strain on the disks when there are many concurrent > migrations. With this patch we only flush twice: just before issuing > the event, and just before pivoting to the destination. If management > will complete the j

[Qemu-devel] [PATCH for-2.8] mirror: do not flush every time the disks are synced

2016-11-09 Thread Paolo Bonzini
This puts a huge strain on the disks when there are many concurrent migrations. With this patch we only flush twice: just before issuing the event, and just before pivoting to the destination. If management will complete the job close to the BLOCK_JOB_READY event, the cost of the second flush sho