1
0
Fork 0

start/stop rt-entsk daemon on initialization/shutdown

The rt-entsk application, part of newer rt-setup packages,
worksaround a latency issue with static key
IPI's. What it does it:

/*
 * Open a socket, and enable timestamping on it.
 *
 * This is to avoid Chrony from changing timestamping
 * user count from 0->1 and vice-versa, causing
 * static key enable/disable IPIs.
 *
 */

Start/stop the systemctl service from the realtime-virtual-host
and realtime-virtual-guest profiles.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
Marcelo Tosatti 2018-08-31 13:27:12 +02:00 committed by Jaroslav Škarvada
parent d1264ba3bf
commit efcb477299
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#!/bin/sh
. /usr/lib/tuned/functions
start() {
systemctl start rt-entsk
return "$?"
}
stop() {
systemctl stop rt-entsk
return "$?"
}
verify() {
return "$?"
}
process $@

View file

@ -98,6 +98,7 @@ start() {
if [ -f $CACHE_VALUE_FILE ]; then
echo `cat $CACHE_VALUE_FILE` > $KVM_LAPIC_FILE
fi
systemctl start rt-entsk
return 0
}
@ -105,6 +106,7 @@ start() {
stop() {
[ "$1" = "full_rollback" ] && teardown_kvm_mod_low_latency
enable_ksm
systemctl stop rt-entsk
return "$?"
}