Sun xVM: September 2009 Archives

Assigning CPUs works even in Domain-0!

| | Comments (0) | TrackBacks (0)
Just a small note:

It was just a test, but it worked!

You can control the number of CPU cores Dom0 uses (named "Domain-0" in the Sun xVM environment).

This command:

# virsh setvcpus Domain-0 2

results in that:

Sep  2 18:35:16 pgt01 unix: cpu0: externally initiated on-line
Sep  2 18:35:17 pgt01 unix: cpu1: externally initiated on-line
Sep  2 18:35:17 pgt01 unix: cpu2: externally initiated powered-off
Sep  2 18:35:18 pgt01 unix: cpu3: externally initiated powered-off

Crazy.
OS is OpenSolaris snv_121, which was bfu'd from snv_118.

(Setting the memory use and max memory use via virsh setmem and virsh setmaxmen do also work as expected, the system begins to swap out pages and/or flushes zfs cache data on disk).