]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/lscpu.c
lscpu: add SCALMHZ% and "CPU scaling MHz:"
authorKarel Zak <kzak@redhat.com>
Mon, 24 May 2021 10:24:33 +0000 (12:24 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 24 May 2021 11:39:53 +0000 (13:39 +0200)
commit9b9e4f5d06be55f4b9e1a52b448055933df92c6b
tree473a370f5e634f54281475847a34a61f180adbd3
parent419861d5bf1704e3d76b1402450fe81a77b08c90
lscpu: add SCALMHZ% and "CPU scaling MHz:"

$ lscpu
...
  Model name:           Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
    CPU family:         6
    Model:              60
    Thread(s) per core: 2
    Core(s) per socket: 4
    Socket(s):          1
    Stepping:           3
    CPU(s) scaling MHz: 61%
    CPU max MHz:        4400.0000
    CPU min MHz:        800.0000
...

$ lscpu -e=CPU,MAXMHZ,MINMHZ,MHZ,SCALMHZ%
CPU    MAXMHZ   MINMHZ      MHZ SCALMHZ%
  0 4400.0000 800.0000 2800.000      64%
  1 4400.0000 800.0000 4000.146      91%
  2 4400.0000 800.0000 2800.000      64%
  3 4400.0000 800.0000 2800.000      64%
  4 4400.0000 800.0000 2800.000      64%
  5 4400.0000 800.0000 4400.000     100%
  6 4400.0000 800.0000  800.000      18%
  7 4400.0000 800.0000 2800.000      64%

Addresses: https://github.com/karelzak/util-linux/issues/1314
Signed-off-by: Karel Zak <kzak@redhat.com>
Documentation/TODO
sys-utils/lscpu-cputype.c
sys-utils/lscpu-topology.c
sys-utils/lscpu.c
sys-utils/lscpu.h