strange cpu number from xm info
Hi,
I see this output from xm info:
# xm info ...
release : 2.6.32.21-45.6xen
version : #1 SMP Wed Feb 29 23:42:59 EST 2012
machine : x86_64nr_cpus : 8nr_nodes : 1cores_per_socket : 4threads_per_core : 1cpu_mhz : 2826
I thought nr_cpus = nr_nodes * cores_per_socket * threads_per_core
But the above output is not.
Could anyone explain it a little?
Thanks,
Zhigang
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Zhigang Wang <[email protected]> 04/06/12 2:45 PM >>>
nr_cpus: 8nr_nodes: 1cores_per_socket: 4threads_per_core: 1I thought
nr_cpus=nr_nodes*cores_per_socket*threads_per_core
nr_cpus = nr_nodes * sockets_per_node * cores_per_socket * threads_per_core
Jan
Quoted 8 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Zhigang Wang <[email protected]> 04/06/12 2:45 PM >>>
nr_cpus: 8nr_nodes: 1cores_per_socket: 4threads_per_core: 1I thought
nr_cpus=nr_nodes*cores_per_socket*threads_per_core
nr_cpus=nr_nodes*sockets_per_node*cores_per_socket*threads_per_core
It seems on xm/xl info we don't show how many sockets_per_node. Can we do that in the future?
It seems this machine has: sockets_per_node = 2.
Thanks very much Jan.
Zhigang
Quoted 15 lines
From: Zhigang Wang
Sent: Friday, April 06, 2012 2:01 PM
To: Jan Beulich
Cc: [email protected]
Subject: Re: [Xen-devel] strange cpu number from xm infoQuoted 8 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Zhigang Wang <[email protected]> 04/06/12 2:45 PM >>>
nr_cpus: 8nr_nodes: 1cores_per_socket: 4threads_per_core: 1I thought
nr_cpus=nr_nodes*cores_per_socket*threads_per_core
nr_cpus=nr_nodes*sockets_per_node*cores_per_socket*threads_per_core
Quoted 8 lines
It seems on xm/xl info we don't show how many
sockets_per_node. Can we do that in the future?It seems this machine has:
sockets_per_node= 2.Thanks very much Jan.
Zhigang
Hi Zhigang --
Unfortunately, the world of CPUs is getting more complicated and can no longer be described so simply. See for example:
http://lists.xen.org/archives/html/xen-devel/2009-11/msg00885.html
On a Friday afternoon, this makes my head hurt...
Dan
Quoted 11 lines · Zhigang Wang
Quoted 8 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Zhigang Wang <[email protected]> 04/06/12 2:45 PM >>>
nr_cpus: 8nr_nodes: 1cores_per_socket: 4threads_per_core: 1I thought
nr_cpus=nr_nodes*cores_per_socket*threads_per_core
nr_cpus=nr_nodes*sockets_per_node*cores_per_socket*threads_per_coreIt seems on xm/xl info we don't show how many
sockets_per_node. Can we do that in the future?
We can and should. Are you able to send a patch for xl at least?
Thanks,
Ian.
Quoted 11 lines
It seems this machine has:
sockets_per_node= 2.Thanks very much Jan.
Zhigang
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 8 lines · Ian Campbell
Quoted 7 lines · Zhigang Wang
Quoted 6 lines · Jan Beulich
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Zhigang Wang <[email protected]> 04/06/12 2:45 PM >>>
nr_cpus: 8nr_nodes: 1cores_per_socket: 4threads_per_core: 1
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
I thought
nr_cpus=nr_nodes*cores_per_socket*threads_per_core
nr_cpus=nr_nodes*sockets_per_node*cores_per_socket*threads_per_coreIt seems on xm/xl info we don't show how many
sockets_per_node. Can we do that in the future?We can and should. Are you able to send a patch for xl at least?
Here is another case:
# xm info
...
nr_cpus : 48
nr_nodes : 8
cores_per_socket : 12
threads_per_core : 1This HP BL685 G7 (4 socket x 12 cores).
Actually sockets_per_node = 0.5. Xen calculates it correctly.
Should we should s 0.5 for sockets_per_node? Or just ignore sockets_per_node?
Thanks,
Zhigang
Quoted 12 lines · Zhigang Wang
Quoted 3 lines
We can and should. Are you able to send a patch for xl at least?
Here is another case:
# xm info ... nr_cpus : 48 nr_nodes : 8 cores_per_socket : 12 threads_per_core : 1
Quoted 6 lines
This HP BL685 G7 (4 socket x 12 cores).
Actually
sockets_per_node= 0.5. Xen calculates it correctly.Should we should s 0.5 for
sockets_per_node? Or just ignoresockets_per_node?
I looked a bit into this and found out there has been some discussion already on why such a "counter" (sockets_per_node) has been removed and shouldn't be reintroduced, and those archs yielding fractional numbers for it seem to be right that cause:
http://old-list-archives.xen.org/xen-changelog/2010-04/msg00074.html
http://old-list-archives.xen.org/archives/html/xen-devel/2010-02/msg00005.html
Not sure what TheRightThing is here, just wanted to point these out...
Regards,
Dario
Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel