1
0
Fork 0
tuned/profiles/realtime/script.sh
Jaroslav Škarvada d8b925ae65
realtime: fixed misleading error message if no isolated cores are set
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-03-30 15:07:49 +02:00

26 lines
405 B
Bash
Executable file

#!/bin/sh
. /usr/lib/tuned/functions
start() {
if [ -z "$TUNED_isolated_cores" ]; then
echo "no isolated cores set, realtime profile not correctly activated" >&2
exit 1
fi
# move threads off the selected cpu cores
tuna -c "$TUNED_isolated_cores" -i
return "$?"
}
stop() {
return 0
}
verify() {
tuna -c "$TUNED_isolated_cores" -P
return "$?"
}
process $@