1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-28 11:21:44 +03:00
libvirt/tests/nodeinfodata
Chris Lalancette aa2f6f96dd Get thread and socket information in virsh nodeinfo.
The current code for "nodeinfo" is pretty naive
about socket and thread information.  To determine the
sockets, it just takes the number of cpus and divides
by the number of cores.  For the thread count, it always
sets it to 1.  With more recent Intel machines, however,
hyperthreading is again an option, meaning that these
heuristics no longer work and give bogus numbers.  This
patch goes through /sys to get the additional
information so we properly report it.

Note that I had to edit the tests not to report on
socket and thread counts, since these are determined
dynamically now.

v2: As pointed out by Eric Blake, gnulib provides
    count-one-bits (which is LGPLv2+).  Use it instead
    of a hand-coded popcnt.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
2010-03-08 09:26:04 -05:00
..
linux-nodeinfo-1.cpuinfo remove all trailing blank lines 2009-07-16 15:06:42 +02:00
linux-nodeinfo-1.meminfo Split out generic nodeinfo API 2007-07-25 23:16:30 +00:00
linux-nodeinfo-1.txt Get thread and socket information in virsh nodeinfo. 2010-03-08 09:26:04 -05:00
linux-nodeinfo-2.cpuinfo remove all trailing blank lines 2009-07-16 15:06:42 +02:00
linux-nodeinfo-2.meminfo Split out generic nodeinfo API 2007-07-25 23:16:30 +00:00
linux-nodeinfo-2.txt Get thread and socket information in virsh nodeinfo. 2010-03-08 09:26:04 -05:00
linux-nodeinfo-3.cpuinfo Split out generic nodeinfo API 2007-07-25 23:16:30 +00:00
linux-nodeinfo-3.meminfo Split out generic nodeinfo API 2007-07-25 23:16:30 +00:00
linux-nodeinfo-3.txt Get thread and socket information in virsh nodeinfo. 2010-03-08 09:26:04 -05:00
linux-nodeinfo-4.cpuinfo remove all trailing blank lines 2009-07-16 15:06:42 +02:00
linux-nodeinfo-4.meminfo Split out generic nodeinfo API 2007-07-25 23:16:30 +00:00
linux-nodeinfo-4.txt Get thread and socket information in virsh nodeinfo. 2010-03-08 09:26:04 -05:00
linux-nodeinfo-5.cpuinfo remove all trailing blank lines 2009-07-16 15:06:42 +02:00
linux-nodeinfo-5.meminfo Split out generic nodeinfo API 2007-07-25 23:16:30 +00:00
linux-nodeinfo-5.txt Get thread and socket information in virsh nodeinfo. 2010-03-08 09:26:04 -05:00
linux-nodeinfo-6.cpuinfo remove all trailing blank lines 2009-07-16 15:06:42 +02:00
linux-nodeinfo-6.meminfo Split out generic nodeinfo API 2007-07-25 23:16:30 +00:00
linux-nodeinfo-6.txt Get thread and socket information in virsh nodeinfo. 2010-03-08 09:26:04 -05:00