Skip to content

Instantly share code, notes, and snippets.

@Enough7
Last active July 28, 2023 16:49
Show Gist options
  • Save Enough7/516599ef258c9e194bb299471e8129da to your computer and use it in GitHub Desktop.
Save Enough7/516599ef258c9e194bb299471e8129da to your computer and use it in GitHub Desktop.
Command to CPU-Scaling, -temps & -frequencies
while true; do lscpu | grep MHz; sensors | grep "Tctl:"; cat /proc/cpuinfo | grep "cpu MHz"; sleep 1; done
# even better command:
watch -n 1 -d 'lscpu | grep MHz; sensors | grep "Tctl:"; cat /proc/cpuinfo | grep "cpu MHz";' # see `man watch` for more info

Results in the following repeatedly output, until stoped with Ctrl + C

CPU(s) scaling MHz:              98%
CPU max MHz:                     4467,2852
CPU min MHz:                     2200,0000
Tctl:         +81.1°C  
cpu MHz		: 4441.832
cpu MHz		: 4441.832
cpu MHz		: 4441.825
cpu MHz		: 4441.825
cpu MHz		: 4441.817
cpu MHz		: 4441.825
cpu MHz		: 4441.829
cpu MHz		: 4441.824
cpu MHz		: 4441.828
cpu MHz		: 4441.822
cpu MHz		: 4441.825
cpu MHz		: 4441.817
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment