From: Keir Fraser <keir.fraser@eu.citrix.com>
To: James Harper <james.harper@bendigoit.com.au>,
xen-devel@lists.xensource.com
Subject: Re: TPR write optimization (even improves 2003 sp2)
Date: Wed, 07 Jan 2009 09:20:07 +0000 [thread overview]
Message-ID: <C58A2447.20CEB%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D01550242@trantor>
On 07/01/2009 09:14, "James Harper" <james.harper@bendigoit.com.au> wrote:
> Travis said that the testing he did showed that the value changed every
> write. The 'lazy' bit works by only writing when it actually makes a
> difference (eg don't write TPR until there is an actual interrupt
> pending I think). It's (probably much) less efficient for the case when
> a lower priority interrupt interrupts what should be a higher priority
> interrupt (but isn't, because we haven't written TPR yet), but is much
> more efficient for the most common case where it doesn't get
> interrupted. That's quite a bit more complicated than 'if new_tpr ==
> old_tpr then write else nop'...
Hmmm, you could be right. I suppose xentrace can confirm one way or the
other once you have it set up...
> I'm trying to get xentrace working to get visibility to the TPR writes
> so I can see for myself, but I don't think I am seeing what I want to
> see. Any suggestions on that? (see previous email with an incorrect
> subject of 'xentrace and MSR_READ/MSR_WRITE')
George Dunlap should be able to advise.
> How does flex priority work - does it require any work on the DomU side,
> or does it 'just work'?
It's completely transparent and just works.
> Does the VMExit caused by writing the TPR amount to the same sort of
> overhead as a hypercall? (eg replacing TPR writes with hypercalls is not
> going to make any difference is it?)
Very little. As you say, avoiding the VMEXITs entirely is the key.
-- Keir
next prev parent reply other threads:[~2009-01-07 9:20 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-07 2:09 TPR write optimization James Harper
2009-01-07 2:59 ` TPR write optimization (even improves 2003 sp2) James Harper
2009-01-07 8:57 ` Keir Fraser
2009-01-07 9:14 ` James Harper
2009-01-07 9:20 ` Keir Fraser [this message]
2009-01-07 9:33 ` James Harper
2009-01-07 9:53 ` Keir Fraser
2009-01-07 10:05 ` James Harper
2009-01-07 10:26 ` Keir Fraser
2009-01-07 12:12 ` James Harper
2009-01-07 12:15 ` James Harper
2009-01-07 12:24 ` Keir Fraser
2009-01-07 22:51 ` James Harper
2009-01-08 0:40 ` James Harper
2009-01-08 3:53 ` James Harper
2009-01-08 9:08 ` Keir Fraser
2009-01-08 9:10 ` James Harper
2009-01-08 9:07 ` Keir Fraser
2009-01-08 9:09 ` James Harper
2009-01-08 9:12 ` Keir Fraser
2009-01-08 9:14 ` James Harper
2009-01-08 9:14 ` Keir Fraser
2009-01-08 9:17 ` James Harper
2009-01-07 12:35 ` James Harper
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=C58A2447.20CEB%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=james.harper@bendigoit.com.au \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.