From 4f64286321162f6919abc2cf3a0cc0472e68398c Mon Sep 17 00:00:00 2001 From: Alexander Troosh Date: Tue, 5 Nov 2013 10:16:38 +0100 Subject: lscpu: support non sequentially numbering of CPUs lscpu don't work correctly on my system with: $ cat /sys/devices/system/cpu/possible 0-1,4-5,8-9,12-13 [kzak@redhat.com: - coding style, - add commit message - add real_cpu_num() macro, - fix functions where we need idx as well as CPU number] Signed-off-by: Karel Zak --- sys-utils/lscpu.1 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys-utils/lscpu.1') diff --git a/sys-utils/lscpu.1 b/sys-utils/lscpu.1 index 3ce82171a..bf81a44df 100644 --- a/sys-utils/lscpu.1 +++ b/sys-utils/lscpu.1 @@ -29,6 +29,9 @@ Not all columns are supported on all architectures. If an unsupported column is specified, \fBlscpu\fP prints the column but does not provide any data for it. .SS COLUMNS +Note that topology elements (core, socket, etc.) use sequential unique ID +starting from zero, but CPU logical numbers follow kernel where is no guarantee +of the sequential numbering. .TP .B CPU The logical CPU number of a CPU as used by the Linux kernel. -- cgit v1.2.3-55-g7522