qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Jim C. Brown" <jma5@umd.edu>
To: alexandre.leclerc@gmail.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] About qemu emulation speed (a question) and supported OS
Date: Tue, 13 Sep 2005 09:38:13 -0400	[thread overview]
Message-ID: <20050913133813.GA28356@jbrown.mylinuxbox.org> (raw)
In-Reply-To: <1dc7f0e3050913053635cd61af@mail.gmail.com>

On Tue, Sep 13, 2005 at 08:36:29AM -0400, Alexandre Leclerc wrote:
> Hi all,
> 
> I'm new to qemu and my question is simple and is probably due to my
> ignorance. If I compare qemu and vmware, there is a great deal of
> emulation speed differences.
> 
> - Is it because of what qemu is? (i.e. it is a full emulator of many
> platforms, etc. Meaning that vmware is probably only specialised for
> x86...)

Yes. qemu does dynamic translation, which allows for arbituary combinations
(PPC host and x86 guest, x86 host and PPC guest, SPARC host and PPC guest,
etc.) but is also slower than running code via virtualization, which is what
VMware does (virtualization only works when host and guest are same, e.g.
x86 host and x86 guest or PPC host and PPC guest; it's also not possible (or
at least very hard) to generalize this so virtualizers tend to be tied to a
single computer arch).

> - If no, is it possible that one day qemu reaches the speed of vmware?
> 

qemu itself? Nope.

kqemu/qvm86 don't have this limitation though. Fabrice had said that he wants
kqemu to be able to do total virtualization (both kernel and userland bits);
basically all the translation code of qemu would be left unused but the hardware
emulation would still be shared.

(I'm not sure why Fabrice wants kqemu to do total virtualization: possibly he
wants to turn it into a commercial product.)

> I'm just asking because I'll probably need an emulator for a host
> linux guest winxp in few time. This is for a production environment
> and to develop in windows (so programming in the vm all day long, so
> speed is very important since it impacts productivity.) So I must know
> if it is better for me to buy a vmware licence.
> 

VMware has good speed gains for Windows guests because of the VMware tools
package - it uses custom guest drivers which allow it to get a huge speedup
by avoiding the burden of emulated I/O. qemu doesn't do this, and while it isn't
too difficult to add, I doubt anyone will bother in the near future.

I use qemu (sans kqemu/qvm86) to program in Windows. I use 2000, I found
XP unbearably slow (but the speed would be improved when using kqemu). I find
that the speed of using cygwin gcc in win2000 to be acceptable, but slower than
linux/gnu gcc. It would be much faster with kqemu but I don't know how much.

The nice thing about FOSS: you can give it a test run to see if its fast enough
for your purpose or not.

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

  parent reply	other threads:[~2005-09-13 13:53 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-13 12:36 [Qemu-devel] About qemu emulation speed (a question) and supported OS Alexandre Leclerc
2005-09-13 13:08 ` Adrian Smarzewski
2005-09-13 18:02   ` Alexandre Leclerc
2005-09-13 13:38 ` Jim C. Brown [this message]
2005-09-13 14:58   ` Anthony Liguori
2005-09-13 21:48     ` Jim C. Brown
2005-09-14  0:18       ` Mark Williamson
2005-09-14  2:48       ` Anthony Liguori
2005-09-14  3:48         ` Mark Williamson
2005-09-14  4:27           ` Anthony Liguori
2005-09-14  4:58             ` Mike Swanson
2005-09-14 13:39             ` Jim C. Brown
2005-09-14 18:46               ` Anthony Liguori
2005-09-14 22:42                 ` Jim C. Brown
2005-09-14 13:37         ` Jim C. Brown
2005-09-14 15:47           ` Henrik Nordstrom
2005-09-14 17:53             ` Mark Williamson
2005-09-14 17:18           ` John R. Hogerhuis
2005-09-14 22:34             ` Jim C. Brown
2005-09-14 17:46           ` Mark Williamson
2005-09-15 21:26           ` Karl Magdsick
2005-09-15 23:24             ` Mark Williamson

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=20050913133813.GA28356@jbrown.mylinuxbox.org \
    --to=jma5@umd.edu \
    --cc=alexandre.leclerc@gmail.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).