[libvirt-users] Allocating Sockets Cores and Threads.

Hi, Is there any other way I could allocate sockets, cores and threads to my virtual machine? I looked over the virsh man page and I didn't find anything that talks about sockets, threads and cores. I edited the vm xml file and added this... <cpu> <topology sockets='1' cores='2' threads='1'/> </cpu> Saw this in the libvirt documents, http://libvirt.org/formatdomain.html Setting this up shows me a single core in my vm, but I don't see any sockets and threads. Can somebody tell me how to do it in a right way so that I see all sockets, cores and threads allocated in my vm. Thanks joe

I'm checked out my /proc/cpuinfo file and I'm finding the following changes. Physical ID : 0 Siblings : 1 core id :0 cpu cores :1 apicid :0 initial apicid:0 This is what I noticed when I edited the vm with this ... <cpu> <topology sockets='1' cores='2' threads='4'/> </cpu> Thanks Joe On Tue, Jan 18, 2011 at 2:50 PM, joe fu <joefuu10@gmail.com> wrote:
Hi,
Is there any other way I could allocate sockets, cores and threads to my virtual machine? I looked over the virsh man page and I didn't find anything that talks about sockets, threads and cores. I edited the vm xml file and added this...
<cpu> <topology sockets='1' cores='2' threads='1'/> </cpu>
Saw this in the libvirt documents, http://libvirt.org/formatdomain.html
Setting this up shows me a single core in my vm, but I don't see any sockets and threads. Can somebody tell me how to do it in a right way so that I see all sockets, cores and threads allocated in my vm.
Thanks joe

On 18/01/2011, at 9:25 PM, joe fu wrote:
I'm checked out my /proc/cpuinfo file and I'm finding the following changes.
Physical ID : 0 Siblings : 1 core id :0 cpu cores :1 apicid :0 initial apicid:0
This is what I noticed when I edited the vm with this ... <cpu> <topology sockets='1' cores='2' threads='4'/> </cpu>
Hi Joe, Looking at the same part of the XML description as you did: http://libvirt.org/formatdomain.html#elementsCPU You're right, in that it shows we have some kind of capacity to process that info. Some questions that might help us find the answer: + What's the virtualisation host you're trying this out on? i.e. KVM/Xen/vSphere/ESX/VirtualBox/etc + Which version of libvirt is it running? + What guest OS's have you tried with? Regards and best wishes, Justin Clift

Hi justin, I guess I'm too late. Thanks for the response anyway. So, let me getinto thepoint right away. +What's the virtualisation host you're trying this out on? KVM. +Which version of libvirt is it running? Compiled against library: libvir 0.8.3 Using library: libvir 0.8.3 Using API: QEMU 0.8.3 Running hypervisor: QEMU 0.9.1 + What guest OS's have you tried with? Debian (Lenny) AMD64. Thanks, Joe On Thu, Jan 20, 2011 at 11:34 AM, Justin Clift <jclift@redhat.com> wrote:
On 18/01/2011, at 9:25 PM, joe fu wrote:
I'm checked out my /proc/cpuinfo file and I'm finding the following changes.
Physical ID : 0 Siblings : 1 core id :0 cpu cores :1 apicid :0 initial apicid:0
This is what I noticed when I edited the vm with this ... <cpu> <topology sockets='1' cores='2' threads='4'/> </cpu>
Hi Joe,
Looking at the same part of the XML description as you did:
http://libvirt.org/formatdomain.html#elementsCPU
You're right, in that it shows we have some kind of capacity to process that info.
Some questions that might help us find the answer:
+ What's the virtualisation host you're trying this out on?
i.e. KVM/Xen/vSphere/ESX/VirtualBox/etc
+ Which version of libvirt is it running?
+ What guest OS's have you tried with?
Regards and best wishes,
Justin Clift
participants (2)
-
joe fu
-
Justin Clift