* [Qemu-devel] threads on qemu
@ 2008-01-21 15:51 C.W. Betts
2008-01-21 16:00 ` Paul Brook
2008-01-21 16:10 ` Johannes Schindelin
0 siblings, 2 replies; 5+ messages in thread
From: C.W. Betts @ 2008-01-21 15:51 UTC (permalink / raw)
To: qemu-devel
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.
Just an idea I'm throwing out.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] threads on qemu
2008-01-21 15:51 [Qemu-devel] threads on qemu C.W. Betts
@ 2008-01-21 16:00 ` Paul Brook
2008-01-21 16:10 ` Johannes Schindelin
1 sibling, 0 replies; 5+ messages in thread
From: Paul Brook @ 2008-01-21 16:00 UTC (permalink / raw)
To: qemu-devel; +Cc: C.W. Betts
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] threads on qemu
2008-01-21 15:51 [Qemu-devel] threads on qemu C.W. Betts
2008-01-21 16:00 ` Paul Brook
@ 2008-01-21 16:10 ` Johannes Schindelin
2008-01-21 16:57 ` C.W. Betts
1 sibling, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2008-01-21 16:10 UTC (permalink / raw)
To: C.W. Betts; +Cc: qemu-devel
Hi,
On Mon, 21 Jan 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.
This is an idea that comes up every once in a while:
http://lists.gnu.org/archive/html/qemu-devel/2007-07/msg00369.html
Ciao,
Dscho
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] threads on qemu
2008-01-21 16:10 ` Johannes Schindelin
@ 2008-01-21 16:57 ` C.W. Betts
2008-01-21 17:01 ` Daniel P. Berrange
0 siblings, 1 reply; 5+ messages in thread
From: C.W. Betts @ 2008-01-21 16:57 UTC (permalink / raw)
To: qemu-devel
Still, is there a way to make qemu take advantage of multiple cores? They
are pretty commonplace in new computers (is there any selling computer that
doesn't have multiple cores?).
----- Original Message -----
From: "Johannes Schindelin" <Johannes.Schindelin@gmx.de>
To: "C.W. Betts" <computers57@hotmail.com>
Cc: <qemu-devel@nongnu.org>
Sent: Monday, January 21, 2008 9:10 AM
Subject: Re: [Qemu-devel] threads on qemu
> Hi,
>
> On Mon, 21 Jan 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.
>
> This is an idea that comes up every once in a while:
>
> http://lists.gnu.org/archive/html/qemu-devel/2007-07/msg00369.html
>
> Ciao,
> Dscho
>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] threads on qemu
2008-01-21 16:57 ` C.W. Betts
@ 2008-01-21 17:01 ` Daniel P. Berrange
0 siblings, 0 replies; 5+ messages in thread
From: Daniel P. Berrange @ 2008-01-21 17:01 UTC (permalink / raw)
To: qemu-devel
On Mon, Jan 21, 2008 at 09:57:54AM -0700, C.W. Betts wrote:
> Still, is there a way to make qemu take advantage of multiple cores? They
> are pretty commonplace in new computers (is there any selling computer that
> doesn't have multiple cores?).
If you've got recent x86 CPUs, then they may well have hardware virtualization
support, in which case you can use KVM which can take advantage of multiple
cores. At least for native host/guest i686 & x86_64 combos.
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-21 17:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21 15:51 [Qemu-devel] threads on qemu C.W. Betts
2008-01-21 16:00 ` Paul Brook
2008-01-21 16:10 ` Johannes Schindelin
2008-01-21 16:57 ` C.W. Betts
2008-01-21 17:01 ` Daniel P. Berrange
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).