debuggers.hg

changeset 20961:d28a351f0589

xend: Enlarge the memory balloon size for domain creation since shadow
pre-allocation size has changed from 1M to 4M.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Feb 10 09:07:48 2010 +0000 (2010-02-10)
parents 6dd69b92d131
children 869884b93584
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Feb 10 09:06:59 2010 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Feb 10 09:07:48 2010 +0000
     1.3 @@ -2519,9 +2519,8 @@ class XendDomainInfo:
     1.4          # There is an implicit memory overhead for any domain creation. This
     1.5          # overhead is greater for some types of domain than others. For
     1.6          # example, an x86 HVM domain will have a default shadow-pagetable
     1.7 -        # allocation of 1MB. We free up 4MB here to be on the safe side.
     1.8 -        # 2MB memory allocation was not enough in some cases, so it's 4MB now
     1.9 -        balloon.free(4*1024, self) # 4MB should be plenty
    1.10 +        # allocation of 4MB. We free up 16MB here to be on the safe side.
    1.11 +        balloon.free(16*1024, self) # 16MB should be plenty
    1.12  
    1.13          ssidref = 0
    1.14          if security.on() == xsconstants.XS_POLICY_USE: