public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Dor Laor <dor.laor@gmail.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: kvm-devel@lists.sourceforge.net, Avi Kivity <avi@qumranet.com>
Subject: Re: [PATCH 0/6] In kernel PIT patch
Date: Thu, 06 Mar 2008 01:24:26 +0200	[thread overview]
Message-ID: <1204759466.4708.33.camel@localhost.localdomain> (raw)
In-Reply-To: <47CF2723.8070200@codemonkey.ws>


On Wed, 2008-03-05 at 17:05 -0600, Anthony Liguori wrote:
> Dor Laor wrote:
> > On Wed, 2008-03-05 at 19:30 +0200, Avi Kivity wrote:
> >   
> >>
> >> Playing a movie is better than any benchmark; it reflects actual user 
> >> experience in a real and important use case.  Benchmarks are substitutes 
> >> for real use cases, not the goal of the optimization.
> >>
> >>     
> >
> > I forgot to mention that the benchmark is measuring time drift in the
> > guest. Playing a movie in winxp changes the guest clock frequency from
> > 100HZ to 1000HZ, thus causing a 250HZ host to coalesce pit irqs.
> >
> > So good pic & pit combination can handle guest multimedia without drifts
> > while insufficient implementation just can't.
> >   
> 
> I'll try out these patches in the next day or so.  Is the expectation 
> that Standard HAL + in-kernel APIC/PIT will have smoother playback than 
> ACPI HAL w/o in-kernel APIC/PIT?  I presume that the ACPI HAL is 
> unaffected by in-kernel PIT?
> 

Standard HAL + userspace pic + -tdf option should give no guest time
drift (actually sometimes massive correction of irq injection do the
opposite, also since time drifts without -dtf it might look better but
the movie does not runs in real time).
Standard HAL + in-kernel pit patch + in-kernel irqchip should not drift.
All other combinations should drift (sometimes you need to overload the
cpu to see the drift).

As for ACPI hal, the in-kernel apic doesn't drift, it also enable having
flex priority or Avi's tpr optimization that boost overall performance.

ACPI HAL should not be affected by the in-kernel pit.

> Regards,
> 
> Anthony Liguori
> 
> 


-------------------------------------------------------------------------
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/

  reply	other threads:[~2008-03-05 23:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-04 10:22 [PATCH 0/6] In kernel PIT patch Yang, Sheng
2008-03-04 15:52 ` Anthony Liguori
2008-03-04 23:18   ` Dor Laor
2008-03-05  0:50     ` Anthony Liguori
2008-03-05  3:41       ` Yang, Sheng
2008-03-05  4:25         ` Anthony Liguori
2008-03-05  5:18           ` Yang, Sheng
2008-03-05 10:14       ` Dor Laor
2008-03-05 14:58         ` Anthony Liguori
2008-03-05 17:30           ` Avi Kivity
2008-03-05 22:40             ` Dor Laor
2008-03-05 23:05               ` Anthony Liguori
2008-03-05 23:24                 ` Dor Laor [this message]
2008-03-06 20:56             ` Anthony Liguori
2008-03-06 21:17               ` Dor Laor

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=1204759466.4708.33.camel@localhost.localdomain \
    --to=dor.laor@gmail.com \
    --cc=anthony@codemonkey.ws \
    --cc=avi@qumranet.com \
    --cc=dor.laor@qumranet.com \
    --cc=kvm-devel@lists.sourceforge.net \
    /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