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:
parent
d1264ba3bf
commit
efcb477299
2 changed files with 21 additions and 0 deletions
19
profiles/realtime-virtual-guest/script.sh
Normal file
19
profiles/realtime-virtual-guest/script.sh
Normal 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 $@
|
||||
|
|
@ -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 "$?"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue