Skip to content

Commit

Permalink
realtime profiles: dropped tuna invocation from host/guest
Browse files Browse the repository at this point in the history
Tuna is already executed in the realtime profile which is included by
the realtime-virtual-host/guest profiles, there is no need to execute
it twice. Also fixed minor whitespace inconsistency.

Related: rhbz#1472840

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
  • Loading branch information
yarda committed Jul 19, 2017
1 parent e1e662f commit 962bae3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions profiles/realtime-virtual-guest/script.sh
Expand Up @@ -4,12 +4,10 @@

start() {
python /usr/libexec/tuned/defirqaffinity.py "remove" "$TUNED_isolated_cores_expanded" &&
tuna -c "$TUNED_isolated_cores_expanded" -i
return "$?"
}

stop() {
tuna -c "$TUNED_isolated_cores_expanded" -I &&
python /usr/libexec/tuned/defirqaffinity.py "add" "$TUNED_isolated_cores_expanded"
return "$?"
}
Expand Down
4 changes: 1 addition & 3 deletions profiles/realtime-virtual-host/script.sh
Expand Up @@ -6,14 +6,13 @@ ltanfile=/sys/module/kvm/parameters/lapic_timer_advance_ns

start() {
python /usr/libexec/tuned/defirqaffinity.py "remove" "$TUNED_isolated_cores_expanded" &&
tuna -c "$TUNED_isolated_cores_expanded" -i
retval = "$?"

if [ ! $retval -eq 0 ]; then
return $retval
fi

setup_kvm_mod_low_latency
setup_kvm_mod_low_latency

if [ -f lapic_timer_adv_ns.cpumodel ]; then
curmodel=`cat /proc/cpuinfo | grep "model name" | cut -f 2 -d ":" | uniq`
Expand Down Expand Up @@ -48,7 +47,6 @@ start() {

stop() {
[ "$1" = "full_rollback" ] && teardown_kvm_mod_low_latency
tuna -c "$TUNED_isolated_cores_expanded" -I &&
python /usr/libexec/tuned/defirqaffinity.py "add" "$TUNED_isolated_cores_expanded"
return "$?"
}
Expand Down

0 comments on commit 962bae3

Please sign in to comment.