sasha2002 Blog's

Just another blog from admin's

How To Set CPU Scaling Governor to Max Performance (scaling_governor) —

# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

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

To verify configuration, run:

# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governorperformance
performance
performance
performance

To view and compare current frequency to the min and max scaling, run:

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

3300000

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

1200000

# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

3210156


Categorised as: Linux

Comments are disabled on this post


Comments are closed.