[libvirt] [BUG] virHostCPUGetInfoPopulateLinux statistics CPU socket inaccuracy
Martin Kletzander
mkletzan at redhat.com
Fri Jun 28 12:56:30 UTC 2019
On Fri, Jun 28, 2019 at 10:26:49AM +0000, Yuchen wrote:
>only the last numa node /sys/devices/system/node/node*/cpu*/topology/physical_package_id
>nodeinfo 'CPU socket(s)' is not equal to lscpu 'Socket(s)'
>
See `man virsh`, an exceprt here:
nodeinfo
Returns basic information about the node, like number and type of CPU, and
size of the physical memory. The output corresponds to virNodeInfo
structure. Specifically, the "CPU socket(s)" field means number of CPU
sockets per NUMA cell. The information libvirt displays is dependent upon
what each architecture may provide.
For better info you should look at `virsh capabilities`, look for the
`<topology/>` XML node. Shorthand command would be:
virsh capabilities | xpath -e '/capabilities/host/topology' -q
HTH,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190628/a19c2913/attachment-0001.sig>
More information about the libvir-list
mailing list