🕰️
2023.09.02 09:22
cpu clock(속도) 조절 Linux CPU Frequency
조회 수 513 추천 수 0 댓글 0
리눅스에서 CPU Frequency 조정할기가 가능하다.
cpufrequtils
-
cpufrequtils를 사용한다.
-
cpufreq-set 명령은 root 권한으로 실행한다.
- cpufreq-info 명령의 결과를 보면 cpufreq-set 명령의 옵션을 알 수 있다.
# cpufreq-info 결과 available cpufreq governors: performance, powersave # 성능 위주 sudo cpufreq-set -g performance # 직접 지정 sudo cpufreq-set -g userspace sudo cpufreq-set -f 1.6GHz
-
부팅시 cpufreq-set 이 자동으로 실행된다.
/etc/init.d/cpufrequtils
파일을 직접 수정하여 옵션을 줄 수 있다.-
Ubuntu Service를 보고 현재 런레벨(보통은 2)에서 자동 실행되도록 설정한다.
-
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
명령으로 사용가능한 governor 목록을 알 수 있다. -
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
명령으로 사용가능한 속도를 알 수 있다. -
GOVERNOR=“performance”
로 변경하고 재부팅 하였음.
-
cpupower / cpupower-gui
-
Change CPU Governor And Frequencies On Linux With cpupower-gui (New Release) - Linux Uprising Blog
- 모든 CPU를 절약모드로
sudo cpupower -c all frequency-set -g powersave
- 모든 CPU를 최고 성능 모드로
sudo cpupower -c all frequency-set -g performance
Turbo Boost
lscpu |egrep "Model name|MHz" Model name: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz CPU MHz: 2600.000 CPU max MHz: 4500.0000 CPU min MHz: 800.0000