kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Interrupt Assignment on host
@ 2009-10-28 21:16 Erik Rull
  2009-11-01 15:41 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Erik Rull @ 2009-10-28 21:16 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Hi all,

after several tests it seems that the interrupt assignment on the host
systems influences the kvm performance drastically. If eth0, video and usb
are on seperate interrupts the perfomance is way better than if they are
shared (that means on the same one).

Normally this should not matter. But why is it within kvm? Does kvm somehow
hook up into the interrupt service routines?
My guest is Windows XP SP3.

Best regards,

Erik




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Interrupt Assignment on host
  2009-10-28 21:16 Interrupt Assignment on host Erik Rull
@ 2009-11-01 15:41 ` Avi Kivity
  2009-11-05 19:09   ` Erik Rull
  0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2009-11-01 15:41 UTC (permalink / raw)
  To: Erik Rull; +Cc: kvm@vger.kernel.org

On 10/28/2009 11:16 PM, Erik Rull wrote:
> Hi all,
>
> after several tests it seems that the interrupt assignment on the host
> systems influences the kvm performance drastically. If eth0, video and 
> usb
> are on seperate interrupts the perfomance is way better than if they are
> shared (that means on the same one).
>
> Normally this should not matter. But why is it within kvm? Does kvm 
> somehow
> hook up into the interrupt service routines?

No.

> My guest is Windows XP SP3.

Can you describe how performance suffers?

Please provide vmstat (for host int/sec) and "kvm_stat  -l -f 
'exits|irq_exits'" output.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Interrupt Assignment on host
  2009-11-01 15:41 ` Avi Kivity
@ 2009-11-05 19:09   ` Erik Rull
  2009-11-08  8:50     ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Erik Rull @ 2009-11-05 19:09 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm@vger.kernel.org

Avi Kivity wrote:
> On 10/28/2009 11:16 PM, Erik Rull wrote:
>> Hi all,
>>
>> after several tests it seems that the interrupt assignment on the host
>> systems influences the kvm performance drastically. If eth0, video and 
>> usb
>> are on seperate interrupts the perfomance is way better than if they are
>> shared (that means on the same one).
>>
>> Normally this should not matter. But why is it within kvm? Does kvm 
>> somehow
>> hook up into the interrupt service routines?
> 
> No.
> 
>> My guest is Windows XP SP3.
> 
> Can you describe how performance suffers?
> 
> Please provide vmstat (for host int/sec) and "kvm_stat  -l -f 
> 'exits|irq_exits'" output.
> 

I'm sorry, but my target system has no python installed. Any ideas how to 
do that manually?

- Erik


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Interrupt Assignment on host
  2009-11-05 19:09   ` Erik Rull
@ 2009-11-08  8:50     ` Avi Kivity
  0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2009-11-08  8:50 UTC (permalink / raw)
  To: Erik Rull; +Cc: kvm@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 438 bytes --]

On 11/05/2009 09:09 PM, Erik Rull wrote:
>> Can you describe how performance suffers?
>>
>> Please provide vmstat (for host int/sec) and "kvm_stat  -l -f 
>> 'exits|irq_exits'" output.
>>
>
>
> I'm sorry, but my target system has no python installed. Any ideas how 
> to do that manually?

Try the attached bash script.  You'll want debugfs mounted on 
/sys/kernel/debug.

-- 
error compiling committee.c: too many arguments to function


[-- Attachment #2: kvm_stat.bash --]
[-- Type: text/plain, Size: 352 bytes --]

#!/bin/bash

p="/sys/kernel/debug/kvm"

old_exits=0
old_irq_exits=0

while :; do
    exits="$(cat "$p/exits")"
    irq_exits="$(cat "$p/irq_exits")"
    d_exits=$((exits - old_exits))
    d_irq_exits=$((irq_exits - old_irq_exits))
    printf "%10d %10d\n" "$d_exits" "$d_irq_exits"
    sleep 1
    old_exits="$exits"
    old_irq_exits="$irq_exits"
done

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-08  8:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28 21:16 Interrupt Assignment on host Erik Rull
2009-11-01 15:41 ` Avi Kivity
2009-11-05 19:09   ` Erik Rull
2009-11-08  8:50     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).