Thursday, 15 July 2010

virtualization - How to find out the pinned vCPUs? -


I am working on a setup where I am using a QBSE / KVM and libvirt on a fedora 18 host for a Ubuntu VM I'm playing. Now I have pinned 2 vCPUs for my VM. I can see vipu pinned using virsh. But, is there any other way to find out? Ideally, I want to type the function which will return the pinned vCPU number / ID.

You can determine which pinning CPU in the domain XML for vcpu to determine See the Use section. By default, vcpu is pinned on all physical CPUs.

For example:

  & lt; Cputune & gt; & Lt; Vcpupin vcpu = "0" cpuset = "1-4, ^ 2" /> & Lt; Vcpupin vcpu = "1" cpuset = "0,1" /> & Lt; / Cputune & gt;    

No comments:

Post a Comment