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
22 lines
273 B
Bash
Executable file
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 $@
|