port realtime virtual host profile to Fedora
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c3e18790ec
commit
d41ee92a3a
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue