All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Deegan <Tim.Deegan@citrix.com>
To: Paul Durrant <Paul.Durrant@citrix.com>
Cc: "Dong, Eddie" <eddie.dong@intel.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir@xen.org>,
	"Zhang, Xiantao" <xiantao.zhang@intel.com>
Subject: Re: RE: Reducing I/O introduced domain scheduling
Date: Tue, 12 Oct 2010 10:46:57 +0100	[thread overview]
Message-ID: <20101012094657.GD4007@whitby.uk.xensource.com> (raw)
In-Reply-To: <291EDFCB1E9E224A99088639C47620228CF821D4D8@LONPMAILBOX01.citrite.net>

At 10:30 +0100 on 12 Oct (1286879457), Paul Durrant wrote:
> My concern is a read from a non-MMIO page following a write to an MMIO page.

Yes, buffering MMIO in the general case is totally unsafe.  That's why
the existing buffered-MMIO ring is only used for VGA.

Tim.

>   Paul
> 
> > -----Original Message-----
> > From: Keir Fraser [mailto:keir.xen@gmail.com] On Behalf Of Keir
> > Fraser
> > Sent: 12 October 2010 10:19
> > To: Paul Durrant; Dong, Eddie
> > Cc: xen-devel@lists.xensource.com; Zhang, Xiantao
> > Subject: Re: [Xen-devel] RE: Reducing I/O introduced domain
> > scheduling
> > 
> > No, you can't  vmexit on a fence. I don't know whether that matters,
> > so long
> > as buffered writes get flushed before the guest can observe their
> > effects
> > (presumably via some kind of I/O read). Agree that generalising the
> > buffered
> > I/O concept feels a bit dodgy however.
> > 
> >  -- Keir
> > 
> > On 12/10/2010 10:15, "Paul Durrant" <Paul.Durrant@citrix.com> wrote:
> > 
> > > Just wondering... does Xen/can Xen take VM exits on fences? If not
> > then I
> > > don't see you could safely buffer MMIO writes.
> > >
> > >   Paul
> > >
> > >> -----Original Message-----
> > >> From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-
> > >> bounces@lists.xensource.com] On Behalf Of Dong, Eddie
> > >> Sent: 12 October 2010 02:12
> > >> To: Keir Fraser
> > >> Cc: xen-devel@lists.xensource.com; Dong, Eddie; Zhang, Xiantao
> > >> Subject: [Xen-devel] Reducing I/O introduced domain scheduling
> > >>
> > >> Keir:
> > >> When running vConsolidation on top of Xen in  a 4-core
> > >> platform, we noticed the I/O introduced scheduling per CPU is ~3K
> > >> Hz, which seems to be too frequent and cause frequent involve of
> > >> domain 0 / Qemu, which may polute cache of the guest and thus
> > >> increase CPI (cycle per instruction).
> > >>
> > >> We are thinking if we can reduce the domin switch here, and
> > >> think the output of I/O can be buffered and return immediately.
> > The
> > >> buffered I/O can be flushed out at next IN emulation (or any
> > >> Hypervisor emulated I/O) or timeout such as 10 or 100 us to
> > >> guarantee minimal response.
> > >>
> > >> Ideally it can cover both PIO & MMIO, but we can start from
> > >> PIO.
> > >>
> > >> How do you think of that?
> > >>
> > >> Thx, Eddie
> > >> _______________________________________________
> > >> Xen-devel mailing list
> > >> Xen-devel@lists.xensource.com
> > >> http://lists.xensource.com/xen-devel
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xensource.com
> > > http://lists.xensource.com/xen-devel
> > 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

-- 
Tim Deegan <Tim.Deegan@citrix.com>
Principal Software Engineer, XenServer Engineering
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

      parent reply	other threads:[~2010-10-12  9:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-12  1:12 Reducing I/O introduced domain scheduling Dong, Eddie
2010-10-12  6:38 ` Keir Fraser
2010-10-12  7:19   ` Dong, Eddie
2010-10-12  8:47     ` Keir Fraser
2010-10-12  8:55       ` James Harper
2010-10-12  9:15 ` Paul Durrant
2010-10-12  9:18   ` Keir Fraser
2010-10-12  9:30     ` Paul Durrant
2010-10-12  9:44       ` Keir Fraser
2010-10-12  9:46       ` Tim Deegan [this message]

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=20101012094657.GD4007@whitby.uk.xensource.com \
    --to=tim.deegan@citrix.com \
    --cc=Paul.Durrant@citrix.com \
    --cc=eddie.dong@intel.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xensource.com \
    --cc=xiantao.zhang@intel.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.