This is a configuration guide to modify CPU performance.
The "scaling_governor" feature enables setting a static frequency to the CPU.
Frequency value must be between scaling_min_freq and scaling_max_freq.
When CPU frequency governor is set to "powersave" mode, CPU is set to the lowest static frequency (within the borders of scaling_min_freq and scaling_max_freq).
To achieve maximum performance, It is recommended to set The CPU frequency governor, "scaling_governor", to "performance" mode.
- CPU frequency scaling - ArchWiki
- Performance Tuning for Mellanox Adapters
- How To Check CPU Core Frequency
1. To view the current scaling_governor value per CPU, run:
# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
2. To set the scaling_governor to "performance" mode for each CPU, run:
# echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
# echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
# echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
3. To verify configuration, run:
# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governorperformance
4. To view and compare current frequency to the min and max scaling, run:
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq