Linux – current CPU frequency

# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Model name: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
Stepping: 9
CPU MHz: 1868.546
CPU max MHz: 3300.0000
CPU min MHz: 1200.0000
BogoMIPS: 5188.19
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0-3

or:
# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
1378609

or

[max@localhost ~]$ sar -m CPU 1 1
Linux 3.13.6-200.fc20.x86_64 (localhost.localdomain) 04/14/2014 _x86_64_ (4 CPU)

01:43:31 PM CPU MHz
01:43:32 PM all 2299.54
Average: all 2299.54

Find CPU fan speed:

[max@localhost ~]$ sar -m FAN 1 1
Linux 3.13.6-200.fc20.x86_64 (localhost.localdomain) 04/14/2014 _x86_64_ (4 CPU)

01:43:45 PM FAN rpm drpm DEVICE
01:43:46 PM 1 3768.00 3768.00 thinkpad-isa-0000
Average: 1 3768.00 3768.00 thinkpad-isa-0000

Find CPU temperature:

[max@localhost ~]$ sar -m TEMP 1 1
Linux 3.13.6-200.fc20.x86_64 (localhost.localdomain) 04/14/2014 _x86_64_ (4 CPU)

01:45:53 PM TEMP degC %temp DEVICE
01:45:54 PM 1 44.00 0.00 acpitz-virtual-0
01:45:54 PM 2 44.00 50.57 coretemp-isa-0000
01:45:54 PM 3 39.00 44.83 coretemp-isa-0000
01:45:54 PM 4 43.00 49.43 coretemp-isa-0000
01:45:54 PM 5 44.00 0.00 pkg-temp-0-virtual-

Average: TEMP degC %temp DEVICE
Average: 1 44.00 0.00 acpitz-virtual-0
Average: 2 44.00 50.57 coretemp-isa-0000
Average: 3 39.00 44.83 coretemp-isa-0000
Average: 4 43.00 49.43 coretemp-isa-0000
Average: 5 44.00 0.00 pkg-temp-0-virtual-

Leave a Reply