省電力でサーバー運用

By siteadministrator, 5 1月, 2020

cpudynは、CPU のクロックを変更と、 ハードディスクを監視して spin down させる。

apt install cpudyn

/etc/default/cpudynを編集する。例は、4つのハードディスクをすべて対象にする場合、2分間アクセスが無ければ、spindownさせる。

################################################
# DISK OPTIONS # (disabled by default)
################################################
#
# Timeout to put the disk in standby mode if there was no # io during that period (in seconds)
# TIMEOUT=120
#
# Specified disks to spindown (comma separated devices)
#
DISKS=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd

CPUのクロック周波数の確認は、

grep "cpu MHz" /proc/cpuinfo

 

タグ

コメント