From: Tim Deegan Subject: Re: pre-reservation of memory for domain creation Date: Tue, 9 Feb 2010 13:47:40 +0000 Message-ID: <20100209134740.GG368@whitby.uk.xensource.com> References: <6CADD16F56BC954D8E28F3836FA7ED7112A79326F2@shzsmsx501.ccr.corp.intel.com> <4B4D8A9402000078000299C3@vpn.id2.novell.com> <6CADD16F56BC954D8E28F3836FA7ED7112A7932EBF@shzsmsx501.ccr.corp.intel.com> <4B4EEB300200007800029E45@vpn.id2.novell.com> <20100114124619.GE30054@whitby.uk.xensource.com> <4B70490D020000780002E4AD@vpn.id2.novell.com> <20100209103958.GC368@whitby.uk.xensource.com> <4B715347020000780002E6DD@vpn.id2.novell.com> <20100209113454.GF368@whitby.uk.xensource.com> <4B7165F1020000780002E726@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <4B7165F1020000780002E726@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: Dongxiao Xu , "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org At 12:41 +0000 on 09 Feb (1265719265), Jan Beulich wrote: > >OK; the early allocation, for a domain with no vcpus and no RAM, is a > >constant 4 MiB, and just needs to be added to whatever overheads are > >already being taken into account (domain and vcpu structs, VMCBs, &c). > > The issue is that this used to be 1Mb. Hence the question whether > in fact it needs to be 4Mb now (which it got increased to when max > HVM vCPU-s got grown to 128). > > The point here is that on one hand there's no clear picture how > much memory is really needed before the full shadow allocation > gets set up, and on the other hand Keir is recalling issues > resulting from not growing the amount to 4Mb. Righto. The change from 1MB to 4MB is not the right fix for those issues -- instead, Xend ought to set the shadow memory allocation before it allocates vcpus. Tim -- Tim Deegan Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)