Le 23/09/2013 03:48, Bruce Dubbs a écrit :
> 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
>
>
170 s on host (running Debian) and 182s on a VM under qemu
(running (B)LFS)

I do not use the virtio interface, but I have
-drive file=/mnt/virtualMachines/qemu/blfs.qcow2,cache=writeback

I do not remember now how I chose the 'cache' part.
But I think it is worth giving it a try.

Regards
Pierre



-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to