Received: from eggs.gnu.org ([208.118.235.92]:56220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYSkw-0003lA-9Z for qemu-devel@nongnu.org; Tue, 13 Nov 2012 21:31:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYSkt-0000eS-7u for qemu-devel@nongnu.org; Tue, 13 Nov 2012 21:31:10 -0500 Received: from mail.valinux.co.jp ([210.128.90.3]:48709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYSks-0000eN-Uf for qemu-devel@nongnu.org; Tue, 13 Nov 2012 21:31:07 -0500 Date: Wed, 14 Nov 2012 11:31:05 +0900 From: Isaku Yamahata Message-ID: <20121114023105.GK12124@valinux.co.jp> References: <87390dcw7l.fsf@trasno.org> <50A27528.2030900@redhat.com> <50A27EBF.3090402@redhat.com> <50A2806E.20605@redhat.com> <20121114021422.GI12124@valinux.co.jp> <50A2FFD8.1050909@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50A2FFD8.1050909@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 Wed, Nov 14, 2012 at 03:20:08AM +0100, Paolo Bonzini wrote: > Il 14/11/2012 03:14, Isaku Yamahata ha scritto: > >> > 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. > > Doesn't work if the page is swapped, doesn't it? Ah, I meant if page is in memory, we can skip is_dup_page for that page. Only check pages that is not-mapped or swapped. If more detailed info is needed, /proc//pagemap would be used. > But I wonder if the clear_page occurrences are because of the problem > described recently on LWN (http://lwn.net/Articles/517465/), and so > really more of a kernel bug than anything else. > > Paolo > -- yamahata