Hi,
This patch series adds support for specifying NUMA topology for guests.
<cpu>
...
<topology sockets='2' cores='4' threads='2'/>
<numa>
<cell cpus='0-7' mems='512000'/>
<cell cpus='8-15' mems='512000'/>
</numa>
...
</cpu>
This change allows libvirt to generate -numa options for QEMU/KVM.
Changes since v0
----------------
- Patch re-organization as per danpb's comments.
- Use of virBufferAsPrintf instead of snprintf as per danpb's comments.
- Use "cell" instead of "node" as per danpb's suggestion.
- Add a helper to truncate virBuffer as per Eric's suggestion.
- Add documentation.
- Add testcases
- Add basic validity check for cpus specified in <numa> ... </numa>
Testing
--------
The patches pass all tests except domainschema test. I think this is not
a real failure, but the test is probably failing to pickup the
right domaincommon.rng file. Will investigate further.
TEST: domainschematest
........................................ 40
........................................ 80
.........!.............................. 120
........................................ 160
.................!...................... 200
........................................ 240
........................................ 280
........................................ 320
... 323 FAILED
daemon-conf fails, but it fails even without my patches too. I guess my
patches are really affecting it.
TEST: daemon-conf
.....!!!!!!...!!!!!!!!!!!!!!!!!!!./daemon-conf: line 98: kill: (7811) - No such
process
! 34 FAILED
v0
--
-
https://www.redhat.com/archives/libvir-list/2011-October/msg00025.html
RFC
---
-
http://permalink.gmane.org/gmane.comp.emulators.libvirt/44626
Regards,
Bharata.