<< Java EE 5 Spec (JSR-244) Approved By JCP | Home | Are The Good Days Back? >>

QEMU: Just How Fast Is It?

It runs at 19% of host speed.

I last blogged about my experience with QEMU 71 days ago.

Since then I have brought up several other operating systems on it, including NT 4.0, Windows 2000 and FreeBSD 6.0. One thing I noticed is that the newer OSes has more demand on the system and therefore behaves more sluggishly, to the point of not being very useful.

My latest adventure with QEMU is a second try at Ubuntu 6.06 Beta (Dapper Drake).

Maybe it's because I have experienced Ubuntu once before, or maybe it's because Ubuntu 6.06 Beta is really that much better than 5.10, or maybe it's because I'm getting a little bit impatient with Fedora Core 5's degradations, my impression of Ubuntu has improved, even though it's running very slowly under QEMU.

To measure how much slower the emulated system is compared with the host system, I ran a little bench mark program that I found on the internet. The result can be found in the screenshot below:

The bench mark index is 294.0 on the host OS and 56.0 on the guest OS. So the guest is running at 19% of the speed of the host system, making my AMD64 3500+ look like a P3/700MHz.

Tags :


Re: QEMU: Just How Fast Is It?

a P3/700Mhz running Linux isn't actually that slow...

Re: QEMU: Just How Fast Is It?

No, it's not that slow. It feels rather like my Mac mini: you click on the Firefox icon, you watch the beach ball spin for a while, and then it starts up.

Re: QEMU: Just How Fast Is It?

You might care to try Kqemu which is a kernel module that's supposed to accelerate QEMU's performance. QEMU automatically activates Kqemu support if the module is loaded.

One more thing, you shouldn't try testing any performance-related stuff on Fedora, it's not the fastest distro out there. Maybe Arch or Gentoo, or even SUPER, but certainly not Fedora.

Re: QEMU: Just How Fast Is It?

A combination of factors prevented me from using the kqemu kernel module for acceleration: there's no binary distributions of it for Fedora Core 5/x86_64 and it doesn't compile under GCC 4.0. I know I can build it but only after installing a substantial amount of compatibility packages.

I'm interested mainly on the relative numbers here. The other distributions do sound interesting. Maybe I'll try them out as QEMU guests. :) I'll let you know how many months it takes to emerge a Gentoo system under QEMU, after I figure out how to make kqemu work, of course.

Re: QEMU: Just How Fast Is It?

What I understand is that qemu will not compile with gcc4, but kqemu will.  If your kernel is compiled with gcc4 you have to compile qemu and kqemu with gcc3 and install it.  Then recompile and reinstall kqemu with gcc4 (or what ever the kernel was compiled in) and you will have a working set up.

I guess qemu works with kvm from the latest 2.6.20 kernel as well.  Applications run about %90 as fast as native.  The benchmark I saw (google for kvn qemu kqemu) showed that kqemu was still a little faster but not by too much.

Qemu without kvm or kqemu will run very slow for sure.  The HW will be %100 abstraced from the guest which is slow.  The kvn and kqemu modules allow user space code to run non-emulated on the host CPU.  This makes it run at %100 speed of course.  Only the kernel space code is emulated thus protecting the host OS.

Re: QEMU: Just How Fast Is It?

Thanks for the comment.

I will look into getting kqemu or kvm to work on my (now) FC6 box.

Re: QEMU: Just How Fast Is It?

That benchmark doesn't look right to me - I get about half the index of a AMD64 3800 and with Sandra thats where my CPU scores.
Anyway - without kqemu there is a riduculously low mark and with kqemu I get about 80% of the host on the guest.

QENU: The Open Source Virtualizer

I rerun the benchmark program inside a Debian 4.0 i386 guest OS. And the result is captured in this screenshot: [QEMU Full Virtualization Mode Performance] A comparison with my earlier results shows that the result of 219.0 dhrystone for QEMU in full virtualization mode is 18.4 times the 11.9 dhrystone for QEMU in emulator mode. Note that these benchmarks were run on the same physical hardware. The benchmark result ran in the host OS is 288.6 dhrystone.

Add a comment Send a TrackBack