Lambdaカクテル

京都在住Webエンジニアの日記です

Invite link for Scalaわいわいランド

業務用マシンがモッサリしていたけど省電力設定になっていたっぽい

業務マシンはけっこう良いやつを使っているのだけれど、どことなくブラウザの動作がモッサリして気になっていた。

もしかして省電力になっているのではないかと突然思い、様子を見てみると省電力設定になっていた。

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
$ sudo cpupower frequency-info

...
The governor "powersave" may decide which speed to use within this range.
current CPU frequency: 800 MHz (asserted by call to kernel)
...

パワーセーブモードになってる!! 800MHz!!!!!

パフォーマンス優先に設定する。

$ sudo cpupower frequency-set -g performance
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
$ sudo cpupower frequency-info
...
The governor "performance" may decide which speed to use within this range.
current CPU frequency: 3.97 GHz (asserted by call to kernel)
...

永続化する方法は難しそうなので、systemdとかで起動時に一発コマンドを叩く、みたいにするかな〜、と思っている。

動作は、なんとなく高速化した気がする。

Further reading

wiki.archlinux.org

★記事をRTしてもらえると喜びます
Webアプリケーション開発関連の記事を投稿しています.読者になってみませんか?