diff options
author | Alexander Troosh | 2013-11-05 10:16:38 +0100 |
---|---|---|
committer | Karel Zak | 2013-11-05 12:46:03 +0100 |
commit | 4f64286321162f6919abc2cf3a0cc0472e68398c (patch) | |
tree | 1adfd0ddaffff866c01afcb36a8d7b8255b6b212 /sys-utils/lscpu.1 | |
parent | blockdev: don't use HDIO_GETGEO (diff) | |
download | kernel-qcow2-util-linux-4f64286321162f6919abc2cf3a0cc0472e68398c.tar.gz kernel-qcow2-util-linux-4f64286321162f6919abc2cf3a0cc0472e68398c.tar.xz kernel-qcow2-util-linux-4f64286321162f6919abc2cf3a0cc0472e68398c.zip |
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 <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.1')
-rw-r--r-- | sys-utils/lscpu.1 | 3 |
1 files changed, 3 insertions, 0 deletions
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. |