]> git.ipfire.org Git - thirdparty/util-linux.git/commit - configure.ac
lscpu: Print physical cpu information
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Wed, 25 Nov 2015 20:10:39 +0000 (12:10 -0800)
committerKarel Zak <kzak@redhat.com>
Wed, 2 Dec 2015 10:33:58 +0000 (11:33 +0100)
commitbd9b94d12a6158b6080630085f77e59ac1b7de26
tree0587821cdfe45cdc6311ff5eca6ef5b6a6b9181f
parent4ba2a6e515dc41805526ce976993a9b019abd082
lscpu: Print physical cpu information

lscpu currently prints information for CPUs configured in the system.
In case of KVM or other virtualized guest operating systems, this
refers to the virtual system, and bears no relation to the physical
topology of the system.

It would be useful if lscpu could also display the physical topology
info when available:

$ ./lscpu
Architecture:          ppc64le
Byte Order:            Little Endian
CPU(s):                16
On-line CPU(s) list:   0-15
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             16
NUMA node(s):          1
Model:                 IBM pSeries (emulated by qemu)
Hypervisor vendor:     KVM
Virtualization type:   para
L1d cache:             64K
L1i cache:             32K
NUMA node0 CPU(s):     0-15
Physical sockets:      2 <<< New
Physical chips:        4 <<< New
Physical cores/chip:   4 <<< New

For now, physical topology information is available on platforms that
support the following RTAS (Real time abstraction service) call provided
by librtas:

rtas_get_sysparm(PROCESSOR_MODULE_INFO).

Currently this call is available to the PowerVM (pHYP) guests on PowerPC.
With a patch propoosed to PowerKVM, this RTAS call would also be available
to PowerKVM guests.

Based on input from Nishanth Aravamudan and Karel Zak.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
configure.ac
sys-utils/Makemodule.am
sys-utils/lscpu.1
sys-utils/lscpu.c