cpu governor on raspbian
configure cpu governor
cpu情報の確認
cat /proc/cpuinfo
cpuクロック関連ツール導入
apt-get install cpufrequtils
現在のクロックやガバナの表示
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
状態確認
cpufreq-info
cpufreq-info -p
ガバナの変更
cpufreq-set -g ondemand
os起動時のガバナの指定
cp -pi /usr/share/doc/cpufrequtils/examples/cpufrequtils.sample /etc/default/cpufrequtils
vi /etc/default/cpufrequtils
service cpufrequtils restart
Disable swap on raspbian buster
systemctl status dphys-swapfile
systemctl stop dphys-swapfile
systemctl is-active dphys-swapfile
systemctl disable dphys-swapfile
systemctl is-enabled dphys-swapfile
rm /var/swap
Use tmpfs
mount -t tmpfs tmpfs <mount point>
or
cat << END >> /etc/fstab
tmpfs /tmp tmpfs defaults,size=256m,noatime,mode=1777 0 0
END
mount /tmp