From: "Jan Beulich" Subject: RE: pre-reservation of memory for domain creation Date: Fri, 22 Jan 2010 08:13:59 +0000 Message-ID: <4B596C57020000780002B7F2@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> <4B588DC4020000780002B5E2@vpn.id2.novell.com> <6CADD16F56BC954D8E28F3836FA7ED711318B68794@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: <6CADD16F56BC954D8E28F3836FA7ED711318B68794@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" 22.01.10 05:28 >>> >Hi, Jan, > This patch may not work because when allocating 128 pages for >each vcpu, tool side hasn't balloon so much memory for it. So the >allocation may fail. > What about this solution, we change the tool side to balloon >more memory for pre-reserve memory (For example 8M),and >pre-alloc 4M for domain creation (which works for 128 vcpus)? Based on what information do you judge that 4M will work for 128 vCPU-s? And how did you conclude that ballooning 8M will be sufficient to be able to allocate 4M (before the patch in question 4M got ballooned in order to be able to allocate 1M)?=20 >Anyway like the comment in _constructDomain, it's still somewhat >hacky. Indeed. Which is why I'm concerned about extending this hack. Jan