For the last couple of days I've been playing around with qemu/kvm.
I've built LFS on it from a Fedora 19 host and I'm disappointed with the
VM performance.
On my host system, LFS-7.4, I can build binutils with a SBU benchmark of
129 seconds. Using that same LFS-7.4 system, I run qemu. I settled on
the following to try to enhance performance:
qemu -enable-kvm -boot c \
-drive file=/mnt/qemu1/fedora.img,if=virtio \
-m 2G \
-cdrom Fedora-19-x86_64-DVD.iso \
-machine accel=kvm -cpu host \
-netdev type=tap,script=/etc/qemu-ifup,id=net0 \
-device virtio-net-pci,netdev=net0
It works fine and will boot into either Fedora 19 or LFS-SVN-20120922.
On either the Fedora or LFS-SVN a new build of binutils using the
instructions in Chapter 5 gives a time of about 225 seconds. That's
slower than the native build in that it takes about 1.75 times as long.
I even created a ram disk and built binutils there, but the build time
is about the same as to the qemu virtual disk.
Does anyone have any different experiences with performance if a VM?
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page