]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: report more usable cache sizes
authorKarel Zak <kzak@redhat.com>
Tue, 19 Mar 2019 10:09:02 +0000 (11:09 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Mar 2019 10:09:02 +0000 (11:09 +0100)
commite5f721132ec8b8c933a396d8dcb3efcb67854f13
tree7b6ec4a44a58f89dc18736e21bd4bf5083275db0
parentfb3761809fa847cb0012f98c6614d5e8c1f8dbe2
lscpu: report more usable cache sizes

The current version reports cache size as reported by /sys, it means
real size of the one piece of the cache. This way provides minimal
overview about all system as the cache is often shared between CPUs.

It seems better to report all size of the caches in the summary
output. It also does not make sense to report sizes per core (or
socket) as CPU topology may be pretty complicated.

The final solution (not implemented yet) will be to have --list-caches
where we can report all details like all-size, item-size, per-core size,
ways, type, etc.

Addresses: https://github.com/karelzak/util-linux/issues/663
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c