From: Dor Laor <dor.laor@gmail.com>
To: Ryota OZAKI <ozaki.ryota@gmail.com>
Cc: kvm-devel@lists.sourceforge.net, Avi Kivity <avi@qumranet.com>
Subject: Re: question: HPET for multiple VMs
Date: Mon, 24 Mar 2008 00:33:29 +0200 [thread overview]
Message-ID: <1206311609.30051.2.camel@localhost.localdomain> (raw)
In-Reply-To: <5e93dcec0803230832n254d7261ob80b42951114ecf3@mail.gmail.com>
On Mon, 2008-03-24 at 00:32 +0900, Ryota OZAKI wrote:
> Hi Avi,
>
> > If you use the dyntick clock option (the default, IIRC), and a newer
> > host kernel, then the kernel provides high-resolution timers, very
> > likely using HPET internally or some other high resolution clock and
> > event source.
>
> I see. The dyntick clock seems to be more scalable than
> the others. I understood that '-clock hpet' is used for
> boosting one VM (becuase hpet gains best performance
> on virtio), right?
>
> I would like to try dyntick for my multiple VMs environment.
>
> > I think that for newer kernels we already have the desired accuracy.
>
> Yes. In recent versions of kvm, I didn't experience
> any time inaccuracy, although I had only tested under
> several VMs. I'll try the more number of VMs, and
> if time inaccuracy occurs, I would like to report
> that.
>
The problem is not inaccuracy of guest clock (which we do suffer from in
some guests and there is work in progress to fix). The problem is that
qemu_timer is not accurate, thus the virtio tx timer is too slow leading
to not optimized performance for virtio-net.
Try host kernel >= 2.6.24 with dyntick.
> Many thanks,
> ozaki-r
>
> 2008/3/23, Avi Kivity <avi@qumranet.com>:
> > Ryota OZAKI wrote:
> > > Hi all,
> > >
> > > Current kvm allows only one VM to use HPET. Is
> > > there a plan to implement a functionality to
> > > allow multiple VMs to use HPET? If so, how
> > > about the status of that?
> > >
> > >
> >
> >
> > If you use the dyntick clock option (the default, IIRC), and a newer
> > host kernel, then the kernel provides high-resolution timers, very
> > likely using HPET internally or some other high resolution clock and
> > event source.
> >
> >
> > > And I would like to ask right and wrong to
> > > implement the functionality in terms of need
> > > and efficiency (scalability and time accuracy).
> >
> >
> > I think that for newer kernels we already have the desired accuracy.
> > We're not always good at exploiting that accuracy; hence the recent
> > movement of the PIT implementation from userspace to the kernel. But
> > recent discussion leads me to believe it could have been implemented
> > with the userspace PIT as well.
> >
> >
> > --
> > Any sufficiently difficult bug is indistinguishable from a feature.
> >
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> kvm-devel mailing list
> kvm-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kvm-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-03-23 22:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-22 16:16 question: HPET for multiple VMs Ryota OZAKI
2008-03-22 21:56 ` Avi Kivity
2008-03-23 1:08 ` Anthony Liguori
2008-03-23 8:30 ` Avi Kivity
2008-03-23 9:03 ` Dor Laor
2008-03-23 15:32 ` Ryota OZAKI
2008-03-23 22:33 ` Dor Laor [this message]
2008-03-24 6:31 ` Ryota OZAKI
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1206311609.30051.2.camel@localhost.localdomain \
--to=dor.laor@gmail.com \
--cc=avi@qumranet.com \
--cc=dor.laor@qumranet.com \
--cc=kvm-devel@lists.sourceforge.net \
--cc=ozaki.ryota@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox