Minor OMV performance tweaks
This commit is contained in:
parent
dff240e1de
commit
18e53b4a1b
@ -115,13 +115,17 @@ InstallOpenMediaVault() {
|
||||
sed -i '/systemctl\ disable\ firstrun/a \
|
||||
\tsync && sleep 30 && reboot' /etc/init.d/firstrun
|
||||
|
||||
# check for necessary performance tuning
|
||||
grep -q ondemand /etc/default/cpufrequtils && sed -i '/^exit\ 0/i \
|
||||
# some performance tuning
|
||||
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
|
||||
echo 10 >/sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor \
|
||||
' /etc/rc.local
|
||||
echo '* * * * * root for i in `pgrep "smbd|afpd|cnid"` ; do ionice -c1 -p $i ; done >/dev/null 2>&1' \
|
||||
>/etc/cron.d/make_samba_and_netatalk_faster
|
||||
chmod 600 /etc/cron.d/make_samba_and_netatalk_faster
|
||||
|
||||
# add SATA port multiplier hint if appropriate
|
||||
[ "${LINUXFAMILY}" = "sunxi" ] && \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user