猫鯖:cpufrequtils入れてるんですが・・・

Ubuntuで、cpufrequtils入れてEIST効かせてるんだけど、
CPUクロックがどのぐらいで動いてるのかなー?
などと思ったのでmuninのpluginで調べてみた。
ちょうどいいのがあったのでこちらから借用、公開ありがとうございます。

で、その結果がこれなんですが・・・あれ?( ゚д゚)ポカーン

sarasa.nekolove.jp-cpuspeed-20080901day.png

えーっと、ほとんど全時間1.6GHzで動いてるという認識でよかでしょーか?
そして最大が2.13GHz?これ2.66GHzのCPUなんですが(;´Д`)
ラグとかが無いならいいんだけど・・・鯖で遊んでる人の意見求む。

調べてみたら
cpufreqの動作モード、governorが”powersave”になってた
その上、クロックが上がる条件がCPU使用率85%になってて、ほとんど上がらない。

/sys/devices/system/cpu/cpu0/cpufreq$ sudo grep "" *
affected_cpus:0 1
cpuinfo_cur_freq:1603000
cpuinfo_max_freq:2670000
cpuinfo_min_freq:1603000
scaling_available_frequencies:2670000 2403000 2136000 1870000 1603000
scaling_available_governors:ondemand userspace conservative powersave performance
scaling_cur_freq:2670000
scaling_driver:acpi-cpufreq
scaling_governor:powersave
scaling_max_freq:2670000
scaling_min_freq:1603000

$ cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
85

なんで、手動でondemandにしても元に戻ってダメ。
cpufreqを導入してcpufreq.confをちょっと書き換えて(コメント外したり、いらないのコメントしたり)
再起動!(リブートしないと有効にならなかった、cpufreq入れた直後だから?)

あふたー↓

$ cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to [email protected], please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which need to switch frequency at the same time: 0 1
hardware limits: 1.60 GHz - 2.67 GHz
available frequency steps: 2.67 GHz, 2.40 GHz, 2.14 GHz, 1.87 GHz, 1.60 GHz
available cpufreq governors: ondemand, userspace, conservative, powersave, performance
current policy: frequency should be within 1.60 GHz and 2.67 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 1.60 GHz.
analyzing CPU 1:
driver: acpi-cpufreq
CPUs which need to switch frequency at the same time: 0 1
hardware limits: 1.60 GHz - 2.67 GHz
available frequency steps: 2.67 GHz, 2.40 GHz, 2.14 GHz, 1.87 GHz, 1.60 GHz
available cpufreq governors: ondemand, userspace, conservative, powersave, performance
current policy: frequency should be within 1.60 GHz and 2.67 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 1.60 GHz.

これでもCPUクロックは上がらない(´Д⊂ヽ
CPU使用率の閾値が85のままなんで当たり前なんですが・・・
Dualコアだとシングルプロセスなsrcdsは最大50%しか行かないんですよねー
しょうがないのでcpufreq.confを書き換えて、CPUのクロックが上がる閾値を大幅に引き上げる
参考にしたのはこちら

コンソールで見てる限りだと、一応ちゃんとあがったり下がったりしてるみたい
ただ、切り替えがものすっごい頻繁に起きてるんだけど、大丈夫かこれ( ̄∇ ̄;)
とりあえず(利用者から)文句が無ければOKってことにしようっと(´ω`)

*余談*
リプレース前のAthlon X2鯖の時だと、C’n’Qでクロックが変動するときに鯖が一瞬止まるのね
コンソール見ながらLAN内でやってるときのだから、原因は明らかに鯖
当時はCentOSだからcpuspeedなんだけど・・・切り替え時間かなんかで影響が出てたっぽい

タイトルとURLをコピーしました