1
0
Fork 0
tuned/profiles/realtime/script.sh
P J P 6407ca44c6 profiles: improve realtime verify functions
tuned(8) realtime-virtual-{host|guest} profiles set Kernel and
KVM module parameters via script.sh plugin. These parameters are
to be verified in a verify() function, invoked by tuned-adm verify
command.

This patch updates verify() functions to validate KVM module
parameters.

It moves kernel parameters to the tuned.conf file under the
[sysfs] & [sysctl] plugin sections. And removes call to
disable_ksm function, no longer required.

Fixes: RHBZ#1947858
2021-05-13 15:21:48 +05:30

22 lines
273 B
Bash
Executable file

#!/bin/sh
. /usr/lib/tuned/functions
start() {
return 0
}
stop() {
return 0
}
verify() {
retval=0
if [ "$TUNED_isolated_cores" ]; then
tuna -c "$TUNED_isolated_cores" -P > /dev/null 2>&1
retval=$?
fi
return $retval
}
process $@