From Fedora Project Wiki

(add sort key)
Line 5: Line 5:
 
# Shutdown the guest and edit your xen configuration file (e.g. in <code>/etc/xen</code>). Either add or modify the "maxmem" parameter in that file, adjusting it to the amount of memory you have in your machine minus 1GB (to save for the dom0).  For example, if you have a machine with 4GB of memory, then set the maxmem parameter to 3000.
 
# Shutdown the guest and edit your xen configuration file (e.g. in <code>/etc/xen</code>). Either add or modify the "maxmem" parameter in that file, adjusting it to the amount of memory you have in your machine minus 1GB (to save for the dom0).  For example, if you have a machine with 4GB of memory, then set the maxmem parameter to 3000.
 
# Start guest again. Check that the same amount of memory is available as before, again using <code>free -m</code>.
 
# Start guest again. Check that the same amount of memory is available as before, again using <code>free -m</code>.
# Balloon down the Dom0. On the command-line of the Dom0, as root run <pre>$> xm mem-set 0 900</pre> Check that Dom0 now only has 900Mb available.
+
# Balloon down the Dom0. On the command-line of the Dom0, as root run <pre>$> virsh setmem Domain-0 $(( 900 * 1024 ))</pre> Check that Dom0 now only has 900Mb available.
# Balloon up the guest using <pre>$> xm mem-set f11 3000</pre>. Wait about 20 seconds and use <code>free -m</code> to check the guest now has the specified amount of memory available.
+
# Balloon up the guest using <pre>$> virsh setmem f11 $(( 3000 * 1024 ))</pre> Wait about 20 seconds and use <code>free -m</code> to check the guest now has the specified amount of memory available.
 
# Repeat the last step for a number of different values.  Especially if you have a machine with > 4GB of memory, repeatedly balloon the guest above and below the 4GB boundary.
 
# Repeat the last step for a number of different values.  Especially if you have a machine with > 4GB of memory, repeatedly balloon the guest above and below the 4GB boundary.
 
|results=
 
|results=

Revision as of 09:02, 4 May 2009

Description

This test case checks that a Fedora 11 Xen DomU can balloon to various memory sizes.


How to test

  1. Use $> free -m to check the memory available to the guest.
  2. Shutdown the guest and edit your xen configuration file (e.g. in /etc/xen). Either add or modify the "maxmem" parameter in that file, adjusting it to the amount of memory you have in your machine minus 1GB (to save for the dom0). For example, if you have a machine with 4GB of memory, then set the maxmem parameter to 3000.
  3. Start guest again. Check that the same amount of memory is available as before, again using free -m.
  4. Balloon down the Dom0. On the command-line of the Dom0, as root run
    $> virsh setmem Domain-0 $(( 900 * 1024 ))
    Check that Dom0 now only has 900Mb available.
  5. Balloon up the guest using
    $> virsh setmem f11 $(( 3000 * 1024 ))
    Wait about 20 seconds and use free -m to check the guest now has the specified amount of memory available.
  6. Repeat the last step for a number of different values. Especially if you have a machine with > 4GB of memory, repeatedly balloon the guest above and below the 4GB boundary.

Expected Results

  1. Guest should not crash while ballooning up and down, no matter what values are given.