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] [RFC][PATCH] 0/9 Populate-on-demand memory

To: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC][PATCH] 0/9 Populate-on-demand memory
From: "George Dunlap" <George.Dunlap@xxxxxxxxxxxxx>
Date: Wed, 24 Dec 2008 15:13:24 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 24 Dec 2008 07:13:49 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=8Hy+KUJifoPj2IKRKj/Dt03kP8FWsGJ7rWmxlQqU4wA=; b=ASYrzzFQK/WZdYhryB4TyCmK/+FSfztLMG7eI8Ook9ukMb/Xv7+eWmadcdWfb6UUmN CvvuDq5U2JKZnB5kvZsJrl65HD+UKy/ibKELm4cAxAXpvsUd0sJpTq0NcdGxmly833Sb +jCb2zMkwwhad2ZByIF1hB8ImY6hCMTjasbVA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=ckSep/0hCkFihvgYi4z+8Am/9FAfAzXSFB/lvJEPaw+JxVq+naMbIYHs0pyKgJl1R3 7DPf1+dkFI8rH2IAnxWIywcEap3UxybNCQjBqA3TJY/jowehEKtlOoLpXQUA40nQ3MjX nbfQfrhNgaJLK4kB2rJ3q+3xXfdut7JUnpl78=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <0ab6a86a-16ac-47fe-b6fd-6ce56f5b59f9@default>
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: <de76405a0812240555w3ced6a84nbcb05cebd4a2c233@xxxxxxxxxxxxxx> <0ab6a86a-16ac-47fe-b6fd-6ce56f5b59f9@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Dec 24, 2008 at 2:32 PM, Dan Magenheimer
<dan.magenheimer@xxxxxxxxxx> wrote:
> Yes, its just that with your fix, Windows VM users are much more
> likely to use memory overcommit and will need to be "trained" to
> always configure a swap disk to ensure bad things don't happen.
> And this swap disk had better be on a network-based medium or
> live migration won't work.

You mean they may be much more likely to under-provision memory to
their VMs, booting with (say) 64M on the assumption that they can
balloon it up to 512M if they want to?  That seems rather unlikely to
me... if they're not likely to start a Windows VM with 64M normally,
why would they be more likely to start with 64M now?  I'd've thought
it would be likely to go the other way: if they normally boot a guest
with 256M, they can now start with maxmem=1G and memory=256M, and
balloon it up if they want.

> No, I had just given some limited thought to this problem previously,
> had considered the idea of sharing a zero page for the Windows
> start-of-day scrubbing problem, but didn't know if the scrubbing
> always only used zeroes.  If it does, great!  I was worried that
> something like a secure version of Windows might use some other random
> bit pattern, but I'll bet Windows elsewhere assumes that all pages
> start as zero-filled and is thus dependent on start-of-day ZERO
> scrubbing, so I'll bet your approach will always work.

AIUI, Windows has two "free page" lists: zeroed, and dirty.  The
scrubber moves pages from the dirty list to the zero list.  Most of
the page allocation interfaces promise zeroed pages, as would mapping
"anonymous" process memory (not sure the Windows term for that).  So
the most useful state for an un-allocated page to be in is zero,
because there's a high probability that it will have to be zeroed
before it's used anyway.

At any rate, we can cross that bridge if we ever come to it. :-)

 -George

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