kqemu speed up

Andriy Gapon avg at icyb.net.ua
Fri Nov 4 07:17:35 PST 2005


How much does kqemu speed up qemu ?
What is the typical difference in speed between guest running in
qemu+kqemu and host ?

The reason I am asking is the following:

host (FreeBSD 5.4):
$ /usr/bin/time -h dd if=/dev/random of=/dev/null bs=4 count=100k
102400+0 records in
102400+0 records out
409600 bytes transferred in 0.342956 secs (1194322 bytes/sec)
        0.34s real              0.03s user              0.25s sys

$ fstat /dev/kqemu0
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
root     qemu       18715    9 /dev        203 crw-rw----  kqemu0 rw
/dev/kqemu0


guest (FreeBSD 6.0):
$ /usr/bin/time -h dd if=/dev/random of=/dev/null bs=4 count=10k
10240+0 records in
10240+0 records out
409600 bytes transferred in 59.620314 secs (6870 bytes/sec)
        59.76s real             1.96s user              55.29s sys

As you can see the difference is two orders of magnitude. I think I had
similar figures without kqemu and I thought that with kqemu guest speed
is close to host speed. What gives ?

-- 
Andriy Gapon


More information about the freebsd-emulation mailing list