1
0
Fork 0
tuned/profiles/realtime-virtual-host/script.sh
Marcelo Tosatti 51c50a3a18 realtime-virtual-host profile: remove lapic advancement calculation
The LAPIC advancement improvement is minimal (3 or 4 us) and its
calculation has shown to be problematic under certain
scenarios (for example if qemu-kvm is not installed).

Remove it.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2020-07-22 15:17:48 +02:00

42 lines
832 B
Bash
Executable file

#!/bin/sh
. /usr/lib/tuned/functions
KTIMER_LOCKLESS_FILE=/sys/kernel/ktimer_lockless_check
start() {
setup_kvm_mod_low_latency
disable_ksm
systemctl start rt-entsk
if [ -f $KTIMER_LOCKLESS_FILE ]; then
echo 1 > $KTIMER_LOCKLESS_FILE
fi
return 0
}
stop() {
if [ "$1" = "full_rollback" ]; then
teardown_kvm_mod_low_latency
enable_ksm
fi
systemctl stop rt-entsk
return "$?"
}
verify() {
if [ -f /sys/module/kvm/parameters/kvmclock_periodic_sync ]; then
test "$(cat /sys/module/kvm/parameters/kvmclock_periodic_sync)" = 0
retval=$?
fi
if [ $retval -eq 0 -a -f /sys/module/kvm_intel/parameters/ple_gap ]; then
test "$(cat /sys/module/kvm_intel/parameters/ple_gap)" = 0
retval=$?
fi
return $retval
}
process $@