Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7939-0001BE-RJ for qemu-devel@nongnu.org; Thu, 21 May 2009 10:15:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7935-000198-7k for qemu-devel@nongnu.org; Thu, 21 May 2009 10:15:11 -0400 Received: from [199.232.76.173] (port=34176 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7935-00018y-27 for qemu-devel@nongnu.org; Thu, 21 May 2009 10:15:07 -0400 Received: from mx2.redhat.com ([66.187.237.31]:53479) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M7934-0005r1-LR for qemu-devel@nongnu.org; Thu, 21 May 2009 10:15:06 -0400 Date: Thu, 21 May 2009 11:20:15 -0300 From: Glauber Costa Subject: Re: [Qemu-devel] [PATCH] augment info migrate with page status Message-ID: <20090521142015.GB24584@poweredge.glommer> References: <1242861605-12844-1-git-send-email-glommer@redhat.com> <20090521140504.GA10055@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090521140504.GA10055@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org On Thu, May 21, 2009 at 03:05:04PM +0100, Daniel P. Berrange wrote: > On Wed, May 20, 2009 at 07:20:05PM -0400, Glauber Costa wrote: > > This patch augments info migrate output with status about: > > * pages remaining > > * pages transferred > > Could you add 'pages total' and/or possibly 'page size', so apps > using this can more easily do calculations, without having to worry > about hardcoding page sizes for each architecture they deal with. That can be done. > > Oh, what happens if the guest is backed by huge pages ? Does the > 'pages transferred' always count in terms of 4k pages, even if > 2 M & 1 GB pages are in use ? Right now, IIRC, migration code scan pages in multiples of TARGET_PAGE_SIZE. we don't have any code path to deal with pages larger than that. However, I believe it makes sense to be specific that we're talking about TARGET_PAGE_SIZE pages. In the future, we may then have separate lines for each kind of page being transferred. In a nutshell, we can have something in the lines of: pages total: X 4K pages Y 2M pages pages remaining: X' 4k pages Y' 2M pages pages transferred: X'' 4k pages Y'' 2M pages Of course, 2M would only be shown in this example if we are really using any. How do you feel about that?