cpufreqd 사용시 frequency 고정이 안 되네요.

dorado2의 이미지

데비안에 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


댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.