/etc/init.d
. If you fix the line in this file echo -n ondemand > $CPUFREQ
echo -n performance > $CPUFREQ
/sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
. To do this, I wrote a small init script: #! /bin/sh ### BEGIN INIT INFO # Provides: io-is-busy # Required-Start: $ondemand # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: makes "ondemand" frequency governor to respect iowait load ### END INIT INFO case "$1" in start) start-stop-daemon --start --background --exec /etc/init.d/io-is-busy -- background ;; background) sleep 65 # waiting till ondemand finish its' work echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) echo 0 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;; esac
/etc/init.d/io-is-busy
file, made executable, and written to the system with the command sudo update-rc.d io-is-busy defaults 99 99
.Source: https://habr.com/ru/post/110547/
All Articles