Skip to content

Instantly share code, notes, and snippets.

@D4R4
Created February 25, 2023 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save D4R4/3810e9d88c2d414b51f5464de22f1ca8 to your computer and use it in GitHub Desktop.
Save D4R4/3810e9d88c2d414b51f5464de22f1ca8 to your computer and use it in GitHub Desktop.
CPU performance metrics and tuning
uname -a
lsb_release -a
lscpu | grep "MHz".
sudo dmidecode -t processor | grep "Speed"
lshw -c cpu | egrep "capacity|size"
sudo lshw -c cpu | egrep "capacity|size"
head /sys/devices/system/cpu/cpu0/cpufreq/scaling_*
yum install -y powertop
powertop
vmstat 1
# this one actually changes the CPU idle time and bossts performance somehow. you can see the change in the output of "cpupower frequency-info".
cpupower idle-set --disable-by-latency 0
# however it raises the temprature of the server and electricity consumption of the machine. You can enable idle mechanisms by below:
cpupower idle-set -E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment