From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ztahk-0001zy-CY for qemu-devel@nongnu.org; Tue, 03 Nov 2015 07:28:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ztahh-0002j4-6P for qemu-devel@nongnu.org; Tue, 03 Nov 2015 07:28:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ztahh-0002is-1A for qemu-devel@nongnu.org; Tue, 03 Nov 2015 07:28:45 -0500 From: Juan Quintela In-Reply-To: <1446449823-25049-2-git-send-email-liang.z.li@intel.com> (Liang Li's message of "Mon, 2 Nov 2015 15:37:00 +0800") References: <1446449823-25049-1-git-send-email-liang.z.li@intel.com> <1446449823-25049-2-git-send-email-liang.z.li@intel.com> Date: Tue, 03 Nov 2015 13:28:42 +0100 Message-ID: <87si4nz2px.fsf@emacs.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [v2 RESEND 1/4] migration: defer migration_end & blk_mig_cleanup Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liang Li Cc: amit.shah@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, yong.y.wang@intel.com Liang Li wrote: > Because of the patch 3ea3b7fa9af067982f34b of kvm, which introduces a > lazy collapsing of small sptes into large sptes mechanism, now > migration_end() is a time consuming operation because it calls > memroy_global_dirty_log_stop(), which will trigger the dropping of small > sptes operation and takes about dozens of milliseconds, so call > migration_end() before all the vmsate data has already been transferred > to the destination will prolong VM downtime. This operation should be > deferred after all the data has been transferred to the destination. > > blk_mig_cleanup() can be deferred too. > > For a VM with 8G RAM, this patch can reduce the VM downtime about 30 ms. > > Signed-off-by: Liang Li > Reviewed-by: Paolo Bonzini Reviewed-by: Juan Quintela And the naming makes more sense even, thanks