From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnz7u-0007SP-Nf for qemu-devel@nongnu.org; Tue, 14 Mar 2017 22:57:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnz7t-0006UL-O0 for qemu-devel@nongnu.org; Tue, 14 Mar 2017 22:57:26 -0400 Date: Wed, 15 Mar 2017 10:57:16 +0800 From: Fam Zheng Message-ID: <20170315025716.GA3088@lemon.lan> References: <1489478243-10366-1-git-send-email-jemmy858585@gmail.com> <420d9095-bde2-6573-e883-ab6b57d4a860@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] migration/block: Avoid involve into blk_drain too frequently List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 858585 jemmy Cc: Eric Blake , stefanha@redhat.com, quintela@redhat.com, dgilbert@redhat.com, qemu-block@nongnu.org, qemu-devel@nongnu.org On Wed, 03/15 10:28, 858585 jemmy wrote: > On Tue, Mar 14, 2017 at 11:12 PM, Eric Blake wrote: > > On 03/14/2017 02:57 AM, jemmy858585@gmail.com wrote: > >> From: Lidong Chen > >> > >> Increase bmds->cur_dirty after submit io, so reduce the frequency involve into blk_drain, and improve the performance obviously when block migration. > > > > Long line; please wrap your commit messages, preferably around 70 bytes > > since 'git log' displays them indented, and it is still nice to read > > them in an 80-column window. > > > > Do you have benchmark numbers to prove the impact of this patch, or even > > a formula for reproducing the benchmark testing? > > > > the test result is base on current git master version. > > the xml of guest os: > > > > > >
function='0x0'/> > > > > > > >
function='0x0'/> > > > i used fio running in guest os. and the context of fio configuration is below: > [randwrite] > ioengine=libaio > iodepth=128 > bs=512 > filename=/dev/vdb > rw=randwrite > direct=1 > > when the vm is not durning migrate, the iops is about 10.7K. > > then i used this command to start migrate virtual machine. > > virsh migrate-setspeed ab3ba978-c7a3-463d-a1d0-48649fb7df00 1000 > virsh migrate --live ab3ba978-c7a3-463d-a1d0-48649fb7df00 > --copy-storage-inc qemu+ssh://10.59.163.38/system > > before apply this patch, during the block dirty save phase, the iops > in guest os is only 4.0K, the migrate speed is about 505856 rsec/s. > after apply this patch, during the block dirty save phase, the iops in > guest os is is 9.5K. the migrate speed is about 855756 rsec/s. Thanks, please include these numbers in the commit message too. Fam