1
0
Fork 0
tuned/profiles/realtime/script.sh
Jaroslav Škarvada 8ec878cb50 realtime: fixed / simplified profile according to comments
tuna now do isolation of cores (-i)

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-06-23 09:15:57 +02:00

26 lines
392 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 activating"
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 $@