Commit 16400a54 authored by anarcat's avatar anarcat

run tasks only on idle CPU time (ionice -c3)

this greatly improves overall performance during mass migrations, at the
cost of slower job processing

requested and sponsored by praxis
parent f5b7d2ee
......@@ -25,6 +25,7 @@ USER="aegir"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
NICE=10
IONICE=idle
# Exit if the package is not installed
[ -x $DAEMON ] || exit 0
......@@ -52,7 +53,7 @@ do_start()
--make-pidfile --pidfile $PIDFILE --startas $DAEMON \
--test > /dev/null \
|| return 1
start-stop-daemon --nice $NICE --start --quiet -c $USER --background \
start-stop-daemon --nice $NICE --iosched $IONICE --start --quiet -c $USER --background \
--make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
$DAEMON_ARGS \
|| return 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment