Created
February 25, 2023 10:25
-
-
Save D4R4/3810e9d88c2d414b51f5464de22f1ca8 to your computer and use it in GitHub Desktop.
CPU performance metrics and tuning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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