I finished an LFS 7.4 install in VMware recently (Ubuntu 12.04 LTS host) and was not disappointed with the performance... Binutils clocked in at roughly 75 seconds if I recall correctly. However, I'm not in a position to build LFS on this host system directly, so I have no basis for comparison. The host hardware is a Sandy Bridge era i7 (3.4 GHz) with 32 GB of RAM. VM is configured to use 2 of the 4 cores, and has 2 GB of RAM allocated to it.
I'm not hugely surprised that your ramdisk didn't make a noticeable difference, as this sort of work seems largely CPU-bound. One thought would be to look into adjusting qemu's "nice" value to see if that gets the build time closer to that of the native hardware. -wpl On Sun, Sep 22, 2013 at 6:48 PM, Bruce Dubbs <bruce.du...@gmail.com> wrote: > 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 >
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page