ia64/xen-unstable

changeset 19486:5759a5766cca

xend: Balloon 4MB memory slop when creating a domain

I've found some problems when running 2 guests with and then trying
to install a new machine (no matter whether using virt-manager or
virt-install).

Signed-off-by: Michal Novotny <minovotn@redhat.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Apr 01 11:46:31 2009 +0100 (2009-04-01)
parents 9c552123b130
children 5d701be7c37b
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Apr 01 11:45:22 2009 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Apr 01 11:46:31 2009 +0100
     1.3 @@ -2253,8 +2253,9 @@ 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 2MB here to be on the safe side.
     1.8 -        balloon.free(2*1024, self) # 2MB should be plenty
     1.9 +        # allocation of 1MB. We free up 4MB here to be on the safe side.
    1.10 +        # 2MB memory allocation was not enough in some cases, so it's 4MB now
    1.11 +        balloon.free(4*1024, self) # 4MB should be plenty
    1.12  
    1.13          ssidref = 0
    1.14          if security.on() == xsconstants.XS_POLICY_USE: