From: Fam Zheng <famz@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
pbonzini@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH RFC] iothread: Add "spawns" property
Date: Fri, 4 Nov 2016 20:10:39 +0800 [thread overview]
Message-ID: <20161104121039.GA6018@lemon> (raw)
In-Reply-To: <20161104110315.GG32673@redhat.com>
On Fri, 11/04 11:03, Daniel P. Berrange wrote:
> On Fri, Nov 04, 2016 at 10:58:04AM +0000, Stefan Hajnoczi wrote:
> > On Wed, Oct 19, 2016 at 04:04:50PM +0800, Fam Zheng wrote:
> > > The option specifies how many threads to spawn under the iothread
> > > object. All threads share the same AioContext so they can safely run
> > > (contend) together.
> > >
> > > With AioContext going away, the spawns will natually enable the block
> > > multi-queue work.
> > >
> > > Signed-off-by: Fam Zheng <famz@redhat.com>
> > >
> > > ---
> > >
> > > Based on v2 of Paolo's RFifoLock removal series, with which the
> > > symmetric contention on the single AioContext is no longer a busy
> > > preempt loop.
> > > ---
> > > include/sysemu/iothread.h | 19 ++++--
> > > iothread.c | 148 ++++++++++++++++++++++++++++++++++------------
> > > 2 files changed, 125 insertions(+), 42 deletions(-)
> >
> > I'm not happy with "IOThread" becoming a group of threads. IOThread
> > should stay the way it is. Instead you should add a new object type
> > that simply groups IOThreads for convenient assignment to devices, e.g.
> > IOThreadGroup. Then multiqueue devices can use an IOThreadGroup to work
> > inside multiple IOThreads.
>
> Do we even need a IOThreadGroup object ? Can't we just explicitly pass
> a list of IOThread object IDs to the device. eg something like
>
> -device virtio-blk-pci,iothread=t1,iothread=t2,iothread=t3
Is that a supported syntax by qdev/QOM?
Fam
next prev parent reply other threads:[~2016-11-04 12:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-19 8:04 [Qemu-devel] [PATCH RFC] iothread: Add "spawns" property Fam Zheng
2016-11-04 10:58 ` Stefan Hajnoczi
2016-11-04 11:03 ` Daniel P. Berrange
2016-11-04 12:10 ` Fam Zheng [this message]
2016-11-04 13:34 ` Eric Blake
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=20161104121039.GA6018@lemon \
--to=famz@redhat.com \
--cc=berrange@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.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).