From: Alex Williamson <alex.williamson@hp.com>
To: Mark McLoughlin <markmc@redhat.com>
Cc: Avi Kivity <avi@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH] kvm:virtio-net: Run TX from the I/O thread
Date: Thu, 22 Jan 2009 11:36:08 -0700 [thread overview]
Message-ID: <1232649368.20605.52.camel@bling> (raw)
In-Reply-To: <1232628508.4533.16.camel@blaa>
On Thu, 2009-01-22 at 12:48 +0000, Mark McLoughlin wrote:
> On Thu, 2009-01-22 at 14:12 +0200, Avi Kivity wrote:
>
> > My worry with this change is that increases cpu utilization even more
> > than it increases bandwidth, so that our bits/cycle measure decreases.
>
> Yep, agreed it's important to watch out for this.
>
> > The descriptors (and perhaps data) are likely on the same cache as the
> > vcpu, and moving the transmit to the iothread will cause them to move to
> > the iothread's cache.
>
> We flush from the I/O thread right now.
>
> We only ever flush from the vcpu thread when the ring fills up, which
> rarely happens from what I've observed.
Sorry to have come in late to the discussion, but it seems like maybe it
needed another kick after a couple months anyway. As noted, we are
mostly (almost exclusively?) doing TX from the timer anyway, so this
change or Mark's previous patch series don't really change current cache
effects. I am curious what happens to latency with Mark's series since
that isn't really addressed by the charts, hopefully good things without
the tx_timer.
A thread per device or perhaps even a thread per RX/TX stream seems like
a logical goal, but these current patches do provide a worthwhile
incremental improvement. Perhaps we could affinitize the guest to do
I/O on a specific vcpu via _PXM methods in ACPI so we can provide hints
to the scheduler to keep a vcpu thread and it's associated I/O threads
nearby. Thanks,
Alex
--
Alex Williamson HP Open Source & Linux Org.
next prev parent reply other threads:[~2009-01-22 18:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-21 23:08 [PATCH] kvm:virtio-net: Run TX from the I/O thread Alex Williamson
2009-01-22 12:12 ` Avi Kivity
2009-01-22 12:48 ` Mark McLoughlin
2009-01-22 18:36 ` Alex Williamson [this message]
2009-01-22 12:47 ` Mark McLoughlin
2009-01-22 13:41 ` Avi Kivity
2009-01-22 18:43 ` Anthony Liguori
2009-01-22 13:42 ` Avi Kivity
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=1232649368.20605.52.camel@bling \
--to=alex.williamson@hp.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=markmc@redhat.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