Bug 378381 - ballooning doesn't work properly
Summary: ballooning doesn't work properly
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: xen
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Xen Maintainance List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-12 17:58 UTC by Thorsten Scherf
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-12 18:06:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thorsten Scherf 2007-11-12 17:58:09 UTC
Description of problem:
setup: 2GB machine, 1 domU with mem-max of 500M and actual memory usage of 256M,
Dom0 uses 1.8G. When I allocate more memory to DomU using "xm mem-set vm1 400",
there is no error and even "xm list" shows 1800M for Dom0 and 400M for vm1 DomU.
running top inside the DomU only shows ~200M available memory, that's correct. 


Version-Release number of selected component (if applicable):
xen-3.1.0-13.fc8
kernel-xen-2.6.21-2950.fc8




How reproducible:
run xm mem-set to assign more memory to a DomU than available to the system

Steps to Reproduce:
1.see above
2.
3.
  
Actual results:
no error


Expected results:
error that there is no more memory available and that you have to shrink the
memory allocation for dom0 in order to assign more memory to a domU.

Additional info:

Comment 1 Daniel Berrangé 2007-11-12 18:06:38 UTC
The 'mem-set' command merely sets a *target value* for a guest, it does not
attempt to immediately allocate it. The balloon driver in the guest will try to
allocate memory from the hypervisor to meet this target - if there's not enough
available, it will retry (pretty much forever) until it can get enough. In your
case all your memory is assigned to Dom0 so there's nothing for the HV to give
to DomU. You need to lower the allocation for Dom0 manually. This is explicitly
not done automatically.


Note You need to log in before you can comment on or make changes to this bug.