cpufreqd 사용시 frequency 고정이 안 되네요.
글쓴이: dorado2 / 작성시간: 토, 2005/01/29 - 8:30오후
데비안에 apt-get install cpufreqd 해서 cpufreqd를 깔았습니다.
IBM X40을 쓰고 있구요, 그래서 원래 최대 1300MHz까지 동작하는데 보통 땐 600MHz로 동작이 잘 되고, 컴파일하거나 cpu load가 높아지면 freqeuncy scaling이 잘 동작하는 것 같습니다. (gkrellm을 띄워놓고 보면...)
그런데 mplayer로 영화를 볼 때 1000MHz로 고정이 되도록 설정이 되어 있는데, 실제로는 그렇게 동작하질 않습니다.
계속 600MHz로 동작을 하다가 순간적으로 cpu 점유율이 동영상 재생으로 인해 높아질 때만 cpu frequency가 1200~1300 정도로 동작을 합니다.
그러다 재생 중임에도 불구하고 600MHz로 떨어지구요.
이와 관련된 문제를 겪으셨거나 해결하신 분 계신가요?
아래는 제 cpufreqd.conf 입니다. 구글에서 찾은 것을 가져다가 조금만 고쳐서 쓰고 있습니다.
# see cpufreqd.conf(5) manpage for a complete reference #---------------------------------------------------------------------- [General] pidfile=/var/run/cpufreqd.pid poll_interval=2 pm_type=acpi # (acpi, apm or pmu) # Uncomment the following line to enable ACPI workaround # acpi_workaround=1 verbosity=4 # (if you want a minimal logging set to 5) #===================[ PROFILES ]======================================= # For range check: # /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq # /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq #---------------------------------------------------------------------- # # AC-Powered: High Performance # [Profile] name=ac_powered_high minfreq=1300000 maxfreq=1300000 policy=performance # # AC-Powered: Normal # [Profile] name=ac_powered_normal minfreq=800000 maxfreq=1200000 policy=performance # # AC-Powered: Low speed # [Profile] name=ac_powered_low minfreq=600000 maxfreq=600000 policy=powersave #---------------------------------------------------------------------- # # Battery-Powered: High Performance # [Profile] name=bat_powered_high minfreq=800000 maxfreq=1200000 policy=powersave # # Battery-Powered: Normal # [Profile] name=bat_powered_normal minfreq=600000 maxfreq=1000000 policy=powersave # # Battery-Powered: Low speed # [Profile] name=bat_powered_low minfreq=600000 maxfreq=600000 policy=powersave # # Battery-Powered: Low Battery # [Profile] name=bat_low minfreq=600000 maxfreq=600000 policy=powersave #---------------------------------------------------------------------- # # Constant Frequency # [Profile] name=dvd minfreq=1000000 maxfreq=1000000 policy=performance #---------------------------------------------------------------------- # # Constant Frequency High # [Profile] name=presentation minfreq=1200000 maxfreq=1200000 policy=performance #===================[ RULES ]======================================= # Calculation of the rule: # + ac = 8 hits # + cpu = 4 hits # + bat = 2 hits # + prg = 1 hit # =============== # -> Invoke rule with 15, 7, 3, 1 hit # # => Set battery_interval = 0-100 for all ac-modes # to get the hits there. #---------------------------------------------------------------------- # # AC-Powered mode, low load # [Rule] name=ac_on_low ac=on cpu_interval=0-50 battery_interval=0-100 profile=ac_powered_low # # AC-Powered mode, normal operation # [Rule] name=ac_on_normal ac=on cpu_interval=51-70 battery_interval=0-100 profile=ac_powered_normal # # AC-Powered mode, high load # [Rule] name=ac_on_high ac=on cpu_interval=71-100 battery_interval=0-100 profile=ac_powered_high #---------------------------------------------------------------------- # # Battery-Powered, low load # [Rule] name=bat_on_low ac=off cpu_interval=0-50 battery_interval=50-100 profile=bat_powered_low # # Battery-Powered, normal load # [Rule] name=bat_on_normal ac=off cpu_interval=51-70 battery_interval=50-100 profile=bat_powered_normal # # Battery-Powered, high load # [Rule] name=bat_on_high ac=off cpu_interval=71-100 battery_interval=50-100 profile=bat_powered_high # # Battery-Powered, low bat # [Rule] name=bat_low ac=off cpu_interval=0-100 battery_interval=0-50 profile=bat_low #---------------------------------------------------------------------- # # Don't switch frequencies while watching dvd # [Rule] name=dvd_watch_ac programs=xine,mplayer,avidemux ac=on cpu_interval=0-100 battery_interval=0-100 profile=dvd [Rule] name=dvd_watch_bat programs=xine,mplayer,avidemux ac=off cpu_interval=0-100 battery_interval=0-100 profile=dvd #---------------------------------------------------------------------- # # Don't switch frequencies while watching dvd # [Rule] name=pres_ac programs=xvncviewer,vncserver ac=on cpu_interval=0-100 battery_interval=0-100 profile=presentation [Rule] name=pres_bat programs=xvncviewer,vncserver ac=off cpu_interval=0-100 battery_interval=0-100 profile=presentation #---------------------------------------------------------------------- # # Compiling should be fast if battery state is ok, or ac # [Rule] name=compiling_ac ac=on programs=make,gcc,cpp,g77,lf95,ifort,ifc,icc cpu_interval=0-100 profile=ac_powered_high [Rule] name=compiling_bat ac=off programs=make,gcc,cpp,g77,lf95,ifort,ifc,icc cpu_interval=0-100 battery_interval=25-100 profile=bat_powered_high
Forums:
댓글 달기