On Tue, Apr 21, 2009 at 10:12:47PM +0200, Ján ONDREJ (SAL) wrote:
On Tue, Apr 21, 2009 at 09:53:20AM +0200, Ján ONDREJ (SAL) wrote:
Another feature enhacement requirement:
can you add an option "--kvm" to use qemu-kvm instead of qemu? It's much faster (aprox 50%) on machines, which support hardware virtualization. Also you need to remove --no-kqemu option, which is not recognized by qemu-kvm. May be ability to run kvm may be autodetected in future, but I think, if there is no kvm support, qemu-kvm will run in normal qemu mode.
Some tests with qemu or kvm:
[ondrejj@work libguestfs]$ time ./fish/guestfish -a /home/images/test.img -m /dev/sda1 launch Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such /file or directory qemu: loading initrd (0x139cb32 bytes) at 0x16c53000
real 0m27.033s user 0m0.016s sys 0m0.047s [ondrejj@work libguestfs]$ time ./fish/guestfish -a /home/images/test.img -m /dev/sda1 launch qemu: loading initrd (0x139cb32 bytes) at 0x0000000016c53000
real 0m7.593s user 0m0.028s sys 0m0.052s [ondrejj@work libguestfs]$
As you can see, it's more than 3.5 times faster. :)
May be you can check, if there is qemu-kvm binary and if does not exist, then use standard qemu. This may be work well on all architectures.
Yes, that's a huge improvement.
Rich.