diff options
author | Sukadev Bhattiprolu | 2015-11-25 21:10:39 +0100 |
---|---|---|
committer | Karel Zak | 2015-12-02 11:33:58 +0100 |
commit | bd9b94d12a6158b6080630085f77e59ac1b7de26 (patch) | |
tree | 0587821cdfe45cdc6311ff5eca6ef5b6a6b9181f /sys-utils/lscpu.1 | |
parent | Merge branch 'races' of git://github.com/kerolasa/lelux-utiliteetit (diff) | |
download | kernel-qcow2-util-linux-bd9b94d12a6158b6080630085f77e59ac1b7de26.tar.gz kernel-qcow2-util-linux-bd9b94d12a6158b6080630085f77e59ac1b7de26.tar.xz kernel-qcow2-util-linux-bd9b94d12a6158b6080630085f77e59ac1b7de26.zip |
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>
Diffstat (limited to 'sys-utils/lscpu.1')
-rw-r--r-- | sys-utils/lscpu.1 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys-utils/lscpu.1 b/sys-utils/lscpu.1 index 5502da3d1..26487d23f 100644 --- a/sys-utils/lscpu.1 +++ b/sys-utils/lscpu.1 @@ -9,13 +9,21 @@ lscpu \- display information about the CPU architecture .BR \-h | \-V .SH DESCRIPTION .B lscpu -gathers CPU architecture information from sysfs and /proc/cpuinfo. The +gathers CPU architecture information from sysfs, /proc/cpuinfo and any +applicable architecture-specific libraries (e.g. librtas on Powerpc). The command output can be optimized for parsing or for easy readability by humans. The information includes, for example, the number of CPUs, threads, cores, sockets, and Non-Uniform Memory Access (NUMA) nodes. There is also information about the CPU caches and cache sharing, family, model, bogoMIPS, byte order, and stepping. +In virtualized environments, the CPU architecture information displayed +reflects the configuration of the guest operating system which is +typically different from the physical (host) system. On architectures that +support retreiving physical topology information, +.B lscpu +also displays the number of physical sockets, chips, cores in the host system. + Options that result in an output table have a \fIlist\fP argument. Use this argument to customize the command output. Specify a comma-separated list of column labels to limit the output table to only the specified columns, arranged |