From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtapH-0001tG-5j for qemu-devel@nongnu.org; Tue, 03 Nov 2015 07:36:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtapC-0004kt-5k for qemu-devel@nongnu.org; Tue, 03 Nov 2015 07:36:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtapC-0004ko-0F for qemu-devel@nongnu.org; Tue, 03 Nov 2015 07:36:30 -0500 From: Juan Quintela In-Reply-To: <56374F11.30309@redhat.com> (Paolo Bonzini's message of "Mon, 2 Nov 2015 12:54:57 +0100") References: <1446449823-25049-1-git-send-email-liang.z.li@intel.com> <56374F11.30309@redhat.com> Date: Tue, 03 Nov 2015 13:36:28 +0100 Message-ID: <878u6fz2cz.fsf@emacs.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [v2 RESEND 0/4] Fix long vm downtime during live migration Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Wanpeng Li , Liang Li , qemu-devel@nongnu.org, yong.y.wang@intel.com, stefanha@redhat.com, amit.shah@redhat.com Paolo Bonzini wrote: > On 02/11/2015 08:36, Liang Li wrote: >> The patch 3ea3b7fa9af067982f34b of kvm introduces a lazy collapsing >> of small sptes into large sptes mechanism, which intend to solve the >> performance drop issue if live migration fails or is canceled. The >> rmap will be scanned in the KVM_SET_USER_MEMORY_REGION ioctl context >> when dirty logging is stopped so as to drop the small sptes, scanning >> the rmap and drop the small sptes is a time consuming operation which >> will take dozens of milliseconds, the actual time depends on VM's >> memory size. For a VM with 8GB RAM, it will take about 30ms. > > I'm okay with these patches. Juan, can they be included in 2.5? Applied, thanks. > > However, the KVM patch is a regression too. Wanpeng, can you look into > doing the collapsing from a work item? > > Thanks, > > Paolo