qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: "C.W. Betts" <computers57@hotmail.com>
Subject: Re: [Qemu-devel] threads on qemu
Date: Mon, 21 Jan 2008 16:00:39 +0000	[thread overview]
Message-ID: <200801211600.40414.paul@codesourcery.com> (raw)
In-Reply-To: <BAY133-DAV15BF23CB83A5183D9EC9BDB93D0@phx.gbl>

On Monday 21 January 2008, C.W. Betts wrote:
> I was thinking, maybe qemu could use threads for at least every processor
> it emulates (on emulated smp computers) and, at the most, every single
> device emulated.  This would help users who have multiple cores, but it
> might impact performance on those of us who don't.

Please read previous discussions on this mailing list.

I'd be surprised if putting device emulation  in a separate thread makes much 
difference. The really slow bits (waiting for IO to complete) are already 
asynchronous. Most other device accesses are very short, so you'd waste more 
time through synchronisation than you gain from putting them is a separate 
thread.

Splitting multiple CPUs into multiple threads is extremely hard to get right, 
especially when your host system provides less strict ordering and atomicity 
guarantees than those required by the guest system.

Paul

  reply	other threads:[~2008-01-21 16:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-21 15:51 [Qemu-devel] threads on qemu C.W. Betts
2008-01-21 16:00 ` Paul Brook [this message]
2008-01-21 16:10 ` Johannes Schindelin
2008-01-21 16:57   ` C.W. Betts
2008-01-21 17:01     ` Daniel P. Berrange

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=200801211600.40414.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=computers57@hotmail.com \
    --cc=qemu-devel@nongnu.org \
    /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).