mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-07 14:51:27 +00:00
Little performance fix for InstallOpenMediaVault example
This commit is contained in:
parent
f0f5e0c3c3
commit
fdfe89f61c
1 changed files with 9 additions and 0 deletions
|
@ -103,6 +103,15 @@ InstallOpenMediaVault() {
|
||||||
\tmv /etc/default/cpufrequtils.bak /etc/default/cpufrequtils' /etc/init.d/firstrun
|
\tmv /etc/default/cpufrequtils.bak /etc/default/cpufrequtils' /etc/init.d/firstrun
|
||||||
sed -i '/systemctl\ disable\ firstrun/a \
|
sed -i '/systemctl\ disable\ firstrun/a \
|
||||||
\tsync && sleep 30 && reboot' /etc/init.d/firstrun
|
\tsync && sleep 30 && reboot' /etc/init.d/firstrun
|
||||||
|
|
||||||
|
# check for necessary performance tuning
|
||||||
|
grep -q ondemand /etc/default/cpufrequtils && sed -i '/^exit\ 0/i \
|
||||||
|
echo ondemand >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor \
|
||||||
|
sleep 0.1 \
|
||||||
|
echo 1 >/sys/devices/system/cpu/cpufreq/ondemand/io_is_busy \
|
||||||
|
echo 25 >/sys/devices/system/cpu/cpufreq/ondemand/up_threshold \
|
||||||
|
echo 10 >/sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor' /etc/rc.local
|
||||||
} # InstallOpenMediaVault
|
} # InstallOpenMediaVault
|
||||||
|
|
||||||
Main "$@"
|
Main "$@"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue