From: George Dunlap Subject: Re: [PATCH] PoD: Handle operations properly when domain is dying Date: Wed, 11 Nov 2009 22:49:06 +0000 Message-ID: References: <4AFAF130.7080506@eu.citrix.com> <03e4e061-1aad-4410-ac11-a4fb655b90e1@default> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <03e4e061-1aad-4410-ac11-a4fb655b90e1@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Nov 11, 2009 at 5:58 PM, Dan Magenheimer wrote: > Thanks for the detailed explanation. =A0I think > "Populate on Demand" connotes too much like > "Copy on Write" and doesn't really describe > the essence of what is going on: Booting pre-ballooned. > Thus my confusion. Well, "populate on demand" describes exactly what's actually happening: the p2m table is being populated as it's used, as opposed to being populated all at once at the beginning. If it was allocating memory on demand it would have been called "allocate on demand". :-) > This is of course less than ideal as it ensures that > administrators will choose some safe (probably fairly large) > amount of memory, a significant portion of which will often > be wasted. =A0But I suppose its better than the (much larger) > alternative. PoD is only meant to keep the domain going until the balloon driver loads, which should be fairly early in boot. How much is required changes depending on the OS and the maximum amount of memory; For Windows XP, 32-bit, with 4GiB maximum (i.e., reported in the e820 map), 256 KiB is sufficient to start with (if I recall correctly). For Windows 7, that's a lot higher. I forget the exact number, but it's 1-2GiB to boot with a 4GiB maximum. Citrix is doing extensive testing to find out minimums for a large number of configurations, so that administrators using XenServer can confidently set the value to a minimum knowing that they're neither wasting memory nor risking a crash. :-) -George