명령어/Linux

[RHEL] cpupower CPU 주파수와 전력 상태 조회·설정

jykim23 2026. 7. 18. 19:05
반응형

부제: 거버너와 C-state를 한 명령으로 들여다보기

cpupower frequency-info    # 현재 거버너, 주파수 범위, 드라이버
cpupower idle-info         # C-state(유휴 상태) 목록
cpupower info              # 성능 편향(perf bias) 설정
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU
  CPUs which run at the same hardware frequency: Not Available
  available cpufreq governors: Not Available
  boost state support:
    Supported: no
    Active: no

cpupower는 kernel-tools 패키지에 들어 있는 CPU 전력·주파수 관리 도구다. 데비안은 이 기능을 linux-tools 계열로 흩어 담지만, RHEL 계열은 kernel-tools 하나로 묶어 제공한다. 거버너 확인, C-state 조회, 주파수 조정을 서브커맨드로 처리한다. 위 출력은 가상화 환경이라 cpufreq 드라이버가 노출되지 않아 대부분 Not Available로 나온다. 물리 서버에서는 governor와 주파수 범위가 실제 값으로 채워진다.

이렇게도 쓴다

특정 CPU만 골라 주파수 정보를 본다.

cpupower -c 0 frequency-info

 

지원하는 서브커맨드를 확인한다.

cpupower --help

 

유휴 상태 진입 통계를 하드웨어 모니터로 본다(지원 시).

cpupower monitor

 

거버너를 성능 모드로 바꾼다(물리 서버에서만, 조회로 먼저 확인).

cpupower frequency-info && cpupower frequency-set -g performance

 

powercap(RAPL) 전력 제한 정보를 조회한다.

cpupower powercap-info

 

특정 C-state를 비활성화한다(지연 민감 워크로드 튜닝).

cpupower idle-set -d 3
반응형