I am running ZoneMinder in a non-dedicated server. The server is also performing other tasks… some of them may happen to interfere with ZoneMinder.
From my understanding, zma and amc are the components that really need to run in "real time". I would like to set their niceness to -10 or even -15… is there an option somewhere for that? I couldn't find it in the docs.
Edit: meanwhile, i'm using a script to renice processes every hour:
Code: Select all
#/bin/bash
PRI=-10
for MON in 1 2
do
for CMD in zma zmc zmf
do
curl -s -XPOST -d "user=renicer&pass=readonly" "http://localhost/zm/api/monitors/daemonStatus/id:$MON/daemon:$CMD.json" | grep -oE 'pid\s*=\s*([0-9]+)' | sed -nE 's/pid\s*=\s*([0-9]+)/\1/pm' | xargs renice -n $PRI
done
done