WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] what happens when a PoD page is touched?

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] what happens when a PoD page is touched?
From: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
Date: Mon, 16 May 2011 11:05:20 +0100
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, Paul Durrant <Paul.Durrant@xxxxxxxxxx>, xen devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 16 May 2011 03:07:21 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=D4VTjmZPyTZ3aOELC5YpdheDtZ/+wbKhQcbTbZ/jVMM=; b=iJZ/9/HgRc3FNIguGG83CNSl/fxT11Te1AzC0cJKaBoPhiDKboDqEVlN5hBWixB07H 6XlTKR73exF8hFW2BUgqvHF2YwAJsitewpcyYmla1zokX2FNJpEbn2EX6KFFtlE6nygB PV6binDul7FhQfkuXnIIZFpY6g+nFDAGq52xc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=ZYY0jogOv/tFaOUOlKp7LoFwlak86iVqHLop1bwoU9wpuGuQd7BNs4hnolHaaIKdCJ m8qfSkSsMYZcjVylPCHgk6GFck2orevKrjci5ei4iFIdvG2hZYhfjrm0R66y3zqoUbId jyUFAAo6y/yoU4gJkdnAff5zqdQUmo+jSWH9g=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D01D570EB@trantor>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AEC6C66638C05B468B556EA548C1A77D01D57078@trantor> <20110516083905.GP24068@xxxxxxxxxxxxxxxxxxxxxxx> <291EDFCB1E9E224A99088639C4762022B37FC178F9@xxxxxxxxxxxxxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01D570EB@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, May 16, 2011 at 10:22 AM, James Harper
<james.harper@xxxxxxxxxxxxxxxx> wrote:
> I've not seen any slowdown on boot with any version of Windows until I
> go to actually do the balloon down...

You mean, you don't see slowness on boot unless you boot with maxmem
!= memory (i.e,. in PoD mode)?

For one thing, after the balloon driver is finished with its initial
allocation, there shouldn't be any sweeping; if there is, then it may
be that you're not actually inflating the balloon as much as Xen
thinks you should.

Before the balloon driver is done, the emergency sweep could be an
issue.  We had a bunch of stuff in XenServer in our most recent
release to try to mitigate this, but it was all pretty hacky and
unsuitable for upstreaming.  I determined that it just needs to be
re-written in a way that actually made things Better; I haven't gotten
a chance to do that yet.

It looks like ATM the sweep is limited to doing 2MiB at a time; so if
you have a reasonably sized guest, every other superpage that gets hit
will cause another sweep -- potentially a big problem.

I have a patch that attempts to greedily re-grab pages after a sweep;
I'll check to see if it applies to tip, and if so, I'll send it to you
to see if that helps any.

 -George

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel