-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathck-print-cpu-freq
More file actions
executable file
·31 lines (23 loc) · 889 Bytes
/
Copy pathck-print-cpu-freq
File metadata and controls
executable file
·31 lines (23 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/bash
#
# Collective Knowledge (CK)
#
# See CK LICENSE.txt for licensing details.
# See CK COPYRIGHT.txt for copyright details.
#
# Developer: Grigori Fursin
#
echo "*** Current CPU frequency from scaling:"
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
#echo "*** Current CPU frequency from cpuinfo:"
#sudo cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq
echo "*** Min CPU frequency:"
cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_min_freq
echo "*** Max CPU frequency:"
cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
#echo "*** Current CPU governor:"
#cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
#echo "*** Available CPU governors:"
#sudo cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
#echo "*** Available CPU frequencies:"
#sudo cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies