Received: from eggs.gnu.org ([208.118.235.92]:60766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYSUq-0007K5-3T for qemu-devel@nongnu.org; Tue, 13 Nov 2012 21:14:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYSUn-0001nW-1Z for qemu-devel@nongnu.org; Tue, 13 Nov 2012 21:14:32 -0500 Received: from mail.valinux.co.jp ([210.128.90.3]:52921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYSUm-0001Ur-OI for qemu-devel@nongnu.org; Tue, 13 Nov 2012 21:14:28 -0500 Date: Wed, 14 Nov 2012 11:14:22 +0900 From: Isaku Yamahata Message-ID: <20121114021422.GI12124@valinux.co.jp> References: <87390dcw7l.fsf@trasno.org> <50A27528.2030900@redhat.com> <50A27EBF.3090402@redhat.com> <50A2806E.20605@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50A2806E.20605@redhat.com> Subject: Re: [Qemu-devel] Migration ToDo list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: quintela@redhat.com, qemu-devel qemu-devel , Michael Roth , Orit Wasserman , benoit.hudzia@sap.com, chegu_vinod@hp.com On Tue, Nov 13, 2012 at 06:16:30PM +0100, Paolo Bonzini wrote: > Il 13/11/2012 18:09, Orit Wasserman ha scritto: > >> > > >>> >> b) do scatter/gather of the pages? > > I would prefer to postpone changing the protocol and start with using iov (writev) > > for sending the pages (still sending header and than the page). Later we can > > move to scatter/gather I'm not sure of how large the performance gain will be. > >> > > >> > c) Remove compression of non-zero repetitive pages. > > +1 > > we can look of identify the zero pages without calling is_dup_page which looks > > expensive. > > Identifying ballooned zero pages is useful, because those cause the > clear_page calls in the kernel even in a guest that has been running for > a while. > > But a generic solution doesn't really matter, because is_dup_page and > clear_page shouldn't really be in the profile in practice, except in > microbenchmarks. I guess mincore(2) can be used as easy way to detect non-mapped page. This is just implementation detail anyway. -- yamahata