This website requires JavaScript.
Explore
Help
Sign In
External
/
libvirt
Watch
1
Star
0
Fork
0
You've already forked libvirt
mirror of
https://gitlab.com/libvirt/libvirt.git
synced
2024-10-20 21:19:19 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
6d57950932
libvirt
/
tests
/
nodeinfodata
/
linux-nodeinfo-6.txt
2 lines
39 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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-04 22:28:40 +00:00
CPUs: 4, MHz: 1000, Nodes: 1, Cores: 2
Reference in New Issue
Copy Permalink