kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: dlaor@redhat.com, virtualization@lists.linux-foundation.org,
	Chris Wright <chrisw@redhat.com>,
	Mark McLoughlin <markmc@redhat.com>,
	kvm@vger.kernel.org, Brian Stein <bstein@redhat.com>,
	Herbert Xu <herbert.xu@redhat.com>, Dor Laor <dor@redhat.com>,
	Avi Kivity <avi@redhat.com>, Yaron Haviv <yaronh@voltaire.com>,
	Shahar Klein <shahark@voltaire.com>,
	Anthony Liguori <aliguori@us.ibm.com>
Subject: Re: TODO list for qemu+KVM networking performance v2
Date: Wed, 10 Jun 2009 17:53:58 +0300	[thread overview]
Message-ID: <20090610145358.GB28601@redhat.com> (raw)
In-Reply-To: <200906110009.34671.rusty@rustcorp.com.au>

On Thu, Jun 11, 2009 at 12:09:33AM +0930, Rusty Russell wrote:
> On Wed, 10 Jun 2009 03:56:31 pm Dor Laor wrote:
> > Rusty Russell wrote:
> > > The current theoretical hole is that the host suppresses notifications
> > > using the VIRTIO_AVAIL_F_NO_NOTIFY flag, but we can get a number of
> > > notifications in before it gets to that suppression.  You can use a
> > > counter to improve this: you only notify when they're equal, and inc when
> > > you notify.  That way you suppress further notifications even if the
> > > other side takes ages to wake up. In practice, this shouldn't be played
> > > with until we have full aio (or equiv in kernel) for other side: host
> > > xmit tends to be too fast at the moment and we get a notification per
> > > packet anyway.
> >
> > Xen ring has the exact optimization for ages. imho we should have it
> > too, regardless of aio.
> > It reduces #vmexits/spurious wakeups and it is very simple to implement.
> 
> But look at number of wakeups received vs notifications sent: I just don't see 
> any benefit there at the moment.  As I said, improving the host code might 
> change that significantly.
> 
> And implementing it the other way is v. v. hard given the nature of interrupts 
> (shared and coalesced).

I agree it's not such a simple thing to implement race-free,
so I do buy the argument that we shouldn't unless it gives
a performance benefit.

But I don't understand how aio will make implementing it easier -
or are you merely saying that it will make it worthwhile?

-- 
MST

  reply	other threads:[~2009-06-10 14:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 16:43 TODO list for qemu+KVM networking performance v2 Michael S. Tsirkin
2009-06-04 17:16 ` Gregory Haskins
2009-06-04 17:29   ` Michael S. Tsirkin
2009-06-04 17:50     ` Gregory Haskins
2009-06-04 18:10       ` Michael S. Tsirkin
2009-06-10  3:39 ` Rusty Russell
2009-06-10  6:26   ` Dor Laor
2009-06-10 14:39     ` Rusty Russell
2009-06-10 14:53       ` Michael S. Tsirkin [this message]
2009-06-10 15:18         ` Avi Kivity
2009-06-10 15:54           ` Michael S. Tsirkin
2009-06-10 16:08             ` Avi Kivity
2009-06-10 16:28               ` Michael S. Tsirkin

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=20090610145358.GB28601@redhat.com \
    --to=mst@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=bstein@redhat.com \
    --cc=chrisw@redhat.com \
    --cc=dlaor@redhat.com \
    --cc=dor@redhat.com \
    --cc=herbert.xu@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=markmc@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --cc=shahark@voltaire.com \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=yaronh@voltaire.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;
as well as URLs for NNTP newsgroup(s).