From: "Jan Beulich" Subject: RE: pre-reservation of memory for domain creation Date: Thu, 14 Jan 2010 09:00:16 +0000 Message-ID: <4B4EEB300200007800029E45@vpn.id2.novell.com> References: <4B4CA40C0200007800029657@vpn.id2.novell.com> <4B4CAEB9020000780002969A@vpn.id2.novell.com> <6CADD16F56BC954D8E28F3836FA7ED7112A79326F2@shzsmsx501.ccr.corp.intel.com> <4B4D8A9402000078000299C3@vpn.id2.novell.com> <6CADD16F56BC954D8E28F3836FA7ED7112A7932EBF@shzsmsx501.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <6CADD16F56BC954D8E28F3836FA7ED7112A7932EBF@shzsmsx501.ccr.corp.intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Tim Deegan , Dongxiao Xu Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> "Xu, Dongxiao" 14.01.10 08:19 >>> > Currently guest initialization process in xend (XendDomainInfo.py) = is:=20 > > _constructDomain() --> domain_create() --> domain_max_vcpus() ... --> > _initDomain() --> shadow_mem_control() ... While the patch certainly matches what I had in mind, with this sequence it is clear that the tools still will need adjustment: The full ballooning = only happens from _initDomain(), and hence the pre-reservation (from _constructDomain) of 4Mb would still be too small for large vCPU counts. I wonder though what all this memory is needed for before the domain (not to speak of secondary CPUs) actually gets started. If that could be got under control, tools side adjustment would not be necessary. Tim? Jan