You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
1.2 KiB

diff --git a/profiles/realtime-virtual-guest/script.sh b/profiles/realtime-virtual-guest/script.sh
index 33cb730..ce94a4b 100755
--- a/profiles/realtime-virtual-guest/script.sh
+++ b/profiles/realtime-virtual-guest/script.sh
@@ -2,8 +2,13 @@
. /usr/lib/tuned/functions
+KTIMER_LOCKLESS_FILE=/sys/kernel/ktimer_lockless_check
+
start() {
systemctl start rt-entsk
+ if [ -f $KTIMER_LOCKLESS_FILE ]; then
+ echo 1 > $KTIMER_LOCKLESS_FILE
+ fi
return "$?"
}
diff --git a/profiles/realtime-virtual-host/script.sh b/profiles/realtime-virtual-host/script.sh
index 8ff5509..be1804f 100755
--- a/profiles/realtime-virtual-host/script.sh
+++ b/profiles/realtime-virtual-host/script.sh
@@ -5,6 +5,7 @@
CACHE_VALUE_FILE=./lapic_timer_adv_ns
CACHE_CPU_FILE=./lapic_timer_adv_ns.cpumodel
KVM_LAPIC_FILE=/sys/module/kvm/parameters/lapic_timer_advance_ns
+KTIMER_LOCKLESS_FILE=/sys/kernel/ktimer_lockless_check
QEMU=$(type -P qemu-kvm || echo /usr/libexec/qemu-kvm)
TSCDEADLINE_LATENCY="/usr/share/qemu-kvm/tscdeadline_latency.flat"
if [ ! -f "$TSCDEADLINE_LATENCY" ]; then
@@ -100,6 +101,10 @@ start() {
fi
systemctl start rt-entsk
+ if [ -f $KTIMER_LOCKLESS_FILE ]; then
+ echo 1 > $KTIMER_LOCKLESS_FILE
+ fi
+
return 0
}