From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abmKL-0002Ww-IR for qemu-devel@nongnu.org; Fri, 04 Mar 2016 04:47:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abmKK-0006XX-My for qemu-devel@nongnu.org; Fri, 04 Mar 2016 04:47:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abmKK-0006XR-I6 for qemu-devel@nongnu.org; Fri, 04 Mar 2016 04:47:16 -0500 Date: Fri, 4 Mar 2016 11:47:09 +0200 From: "Michael S. Tsirkin" Message-ID: <20160304114519-mutt-send-email-mst@redhat.com> References: <1457001868-15949-1-git-send-email-liang.z.li@intel.com> <20160303174615.GF2115@work-vm> <20160304075538.GC9100@rkaganb.sw.ru> <20160304083550.GE9100@rkaganb.sw.ru> <20160304090820.GA2149@work-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [RFC qemu 0/4] A PV solution for live migration optimization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Li, Liang Z" Cc: "ehabkost@redhat.com" , "kvm@vger.kernel.org" , "quintela@redhat.com" , "qemu-devel@nongnu.org" , "linux-kernel@vger.kernel.org" , "Dr. David Alan Gilbert" , "linux-mm@kvack.org" , Roman Kagan , "amit.shah@redhat.com" , "pbonzini@redhat.com" , "akpm@linux-foundation.org" , "virtualization@lists.linux-foundation.org" , "rth@twiddle.net" On Fri, Mar 04, 2016 at 09:12:12AM +0000, Li, Liang Z wrote: > > Although I wonder which is cheaper; that would be fairly expensive for the > > guest wouldn't it? And you'd somehow have to kick the guest before > > migration to do the ballooning - and how long would you wait for it to finish? > > About 5 seconds for an 8G guest, balloon to 1G. Get the free pages bitmap take about 20ms > for an 8G idle guest. > > Liang Where is the time spent though? allocating within guest? Or passing the info to host? If the former, we can use existing inflate/deflate vqs: Have guest put each free page on inflate vq, then on deflate vq. -- MST