LKML Archive on
help / color / mirror / Atom feed
From: "Dor Laor" <>
To: "Ingo Molnar" <>, "Avi Kivity" <>
Cc: "kvm-devel" <>,
	"linux-kernel" <>
Subject: RE: [kvm-devel] kvm & dyntick
Date: Fri, 12 Jan 2007 15:25:14 -0800	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

>* Ingo Molnar <> wrote:
>> > dyntick-enabled guest:
>> > - reduce the load on the host when the guest is idling
>> >   (currently an idle guest consumes a few percent cpu)
>> yeah. KVM under -rt already works with dynticks enabled on both the
>> host and the guest. (but it's more optimal to use a dedicated
>> hypercall to set the next guest-interrupt)
>using the dynticks code from the -rt kernel makes the overhead of an
>idle guest go down by a factor of 10-15:
> 2556 mingo     15   0  598m 159m 157m R  1.5  8.0   0:26.20 qemu
>( for this to work on my system i have added a 'hyper' clocksource
>  hypercall API for KVM guests to use - this is needed instead of the
>  running-to-slowly TSC. )
>	Ingo

This is great news for PV guests.

Never-the-less we still need to improve our full virtualized guest
First we need a mechanism (can we use the timeout_granularity?) to
dynamically change the host timer frequency so we can support guests
with 100hz that dynamically change their freq to 1000hz and back.

Afterwards we'll need to compensate the lost alarm signals to the guests
by using one of 
 - hrtimers to inject the lost interrupts for specific guests. The
problem this will increase the overall load.
 - Injecting several virtual irq to the guests one after another (using
interrupt window exit). The question is how the guest will be effected
from this unfair behavior.

Can dyntick help HVMs? Will the answer be the same for guest-dense
hosts? I understood that the main gain of dyn-tick is for idle time.

  parent reply	other threads:[~2007-01-12 23:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-11 16:08 Avi Kivity
2007-01-12  5:34 ` Rik van Riel
2007-01-12  6:20 ` Ingo Molnar
2007-01-12 10:19   ` Ingo Molnar
2007-01-12 17:04     ` Avi Kivity
2007-01-14  8:39       ` Ingo Molnar
2007-01-12 23:25     ` Dor Laor [this message]
2007-01-12 23:39       ` [kvm-devel] " Thomas Gleixner
2007-01-14  8:51       ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \
    --subject='RE: [kvm-devel] kvm & dyntick' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).