From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
|description=This test case verifies the CPUs can be dynamically added to and removed from Fedora Xen DomU guests. | |description=This test case verifies the CPUs can be dynamically added to and removed from Fedora Xen DomU guests. | ||
|actions= | |actions= | ||
# Shut down the | # Shut down the rawhide domU guest. | ||
# Edit the Xen configuration file for the domU guest to make the "vcpus" parameter equal to the number of CPUs you have in your machine. For instance, if you have a system with 2 dual-core processors, set the vcpus parameter in the guest configuration file to 4. | # Edit the Xen configuration file for the domU guest to make the "vcpus" parameter equal to the number of CPUs you have in your machine. For instance, if you have a system with 2 dual-core processors, set the vcpus parameter in the guest configuration file to 4. | ||
# Start up the | # Start up the rawhide domU guest. | ||
# Once the guest is booted, inside the guest run <pre>$> getconf _NPROCESSORS_ONLN</pre> This number should match what you set in the guest configuration file above. | # Once the guest is booted, inside the guest run <pre>$> getconf _NPROCESSORS_ONLN</pre> This number should match what you set in the guest configuration file above. | ||
# Now on the dom0, unplug some vcpus from the guest <pre>$> xm vcpu-set | # Now on the dom0, unplug some vcpus from the guest <pre>$> xm vcpu-set rawhide 2</pre> | ||
# Inside the guest, run <pre>$> getconf _NPROCESSORS_ONLN</pre> again. This should now be 2. | # Inside the guest, run <pre>$> getconf _NPROCESSORS_ONLN</pre> again. This should now be 2. | ||
# Repeat the above test, varying the number of processors you plug and unplug. Note that you can never plug in more vcpus than you started with, but you can unplug all the way down to a single vcpu. | # Repeat the above test, varying the number of processors you plug and unplug. Note that you can never plug in more vcpus than you started with, but you can unplug all the way down to a single vcpu. |
Latest revision as of 14:44, 15 September 2009
Description
This test case verifies the CPUs can be dynamically added to and removed from Fedora Xen DomU guests.
How to test
- Shut down the rawhide domU guest.
- Edit the Xen configuration file for the domU guest to make the "vcpus" parameter equal to the number of CPUs you have in your machine. For instance, if you have a system with 2 dual-core processors, set the vcpus parameter in the guest configuration file to 4.
- Start up the rawhide domU guest.
- Once the guest is booted, inside the guest run
$> getconf _NPROCESSORS_ONLN
This number should match what you set in the guest configuration file above. - Now on the dom0, unplug some vcpus from the guest
$> xm vcpu-set rawhide 2
- Inside the guest, run
$> getconf _NPROCESSORS_ONLN
again. This should now be 2. - Repeat the above test, varying the number of processors you plug and unplug. Note that you can never plug in more vcpus than you started with, but you can unplug all the way down to a single vcpu.
- Put some load on the guest (for example, a kernel compile), and repeat the above test, varying the number of processors you plug and unplug.
Expected Results
- The guest should not crash while plugging and unplugging vcpus.
- There should be no softlockup or other warnings while plugging and unplugging vcpus.