tuned/0001-port-realtime-virtual-host-profile-to-Fedora.patch
Jaroslav Škarvada 32564e9836 added tscdeadline_latency.flat benchmark
resolves: rhbz#1504680
2017-11-13 16:25:24 +01:00

37 lines
1.5 KiB
Diff

@@ -, +, @@
---
profiles/realtime-virtual-host/run-tscdeadline-latency.sh | 4 ++--
profiles/realtime-virtual-host/script.sh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
--- a/profiles/realtime-virtual-host/run-tscdeadline-latency.sh
+++ a/profiles/realtime-virtual-host/run-tscdeadline-latency.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-QEMU=/usr/libexec/qemu-kvm
+QEMU=$(type -P qemu-kvm || echo /usr/libexec/qemu-kvm)
if [ ! -f /sys/module/kvm/parameters/lapic_timer_advance_ns ]; then
echo "/sys/module/kvm/parameters/lapic_timer_advance_ns not found"
@@ -14,7 +14,7 @@ for i in `seq 1000 500 7000`; do
chrt -f 1 taskset -c $1 $QEMU -enable-kvm -device pc-testdev \
-device isa-debug-exit,iobase=0xf4,iosize=0x4 \
-display none -serial stdio -device pci-testdev \
- -kernel /usr/share/qemu-kvm/tscdeadline_latency.flat \
+ -kernel /usr/share/tuned/tscdeadline_latency.flat \
-cpu host | grep latency | cut -f 2 -d ":" > $dir/out
A=0
--- a/profiles/realtime-virtual-host/script.sh
+++ a/profiles/realtime-virtual-host/script.sh
@@ -26,7 +26,7 @@ start() {
if [ -f $ltanfile -a ! -f ./lapic_timer_adv_ns ]; then
- if [ -f /usr/share/qemu-kvm/tscdeadline_latency.flat ]; then
+ if [ -f /usr/share/tuned/tscdeadline_latency.flat ]; then
tempdir=`mktemp -d`
isolatedcpu=`echo "$TUNED_isolated_cores_expanded" | cut -f 1 -d ","`
sh ./run-tscdeadline-latency.sh $isolatedcpu > $tempdir/lat.out
--