All of lore.kernel.org
 help / color / mirror / Atom feed
* nested KVM slower than QEMU with gnumach guest kernel
@ 2014-11-11 18:55 Samuel Thibault
  2014-11-11 23:42 ` Jan Kiszka
  0 siblings, 1 reply; 16+ messages in thread
From: Samuel Thibault @ 2014-11-11 18:55 UTC (permalink / raw)
  To: kvm, gleb, pbonzini, abelg, nyh, oritw, benami, muli

Hello,

jenkins.debian.net is running inside a KVM VM, and it runs nested
KVM guests for its installation attempts.  This goes fine with Linux
kernels, but it is extremely slow with gnumach kernels.  I have
reproduced the issue with my laptop with a linux 3.17 host kernel, a
3.16 L1-guest kernel, and an i7-2720QM CPU, with similar results; it's
actually even slower than letting qemu emulate the CPU... For these
tests I'm using the following image:

http://people.debian.org/~sthibault/tmp/netinst.iso

The reference test here boils down to running qemu -cdrom netinst.iso -m
512, choosing the "Automated install" choice, and waiting for "Loading
additional components" step to complete. (yes, the boot menu gets
mangled ATM, there's apparently currently a bug between qemu and grub)

My host is A, my level1-KVM-guest is B.

KVM:
A$ qemu -enable-kvm -cdrom netinst.iso -m 512M
takes ~1 minute.

QEMU:
A$ qemu             -cdrom netinst.iso -m 512M
takes ~7 minutes.

KVM-in-KVM:
B$ qemu -enable-kvm -cdrom netinst.iso -m 512M
takes ~10 minutes, when it doesn't gets completely stuck, which is quite
often, actually...

QEMU-in-KVM:
B$ qemu             -cdrom netinst.iso -m 512M
takes ~7 minutes.

I don't see such horrible slowdown with a linux image.  Is there
something particular that could explain such a difference?  What tools
or counters could I use to investigate which area of KVM is getting
slow?

Samuel

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-12-15  9:41 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-11 18:55 nested KVM slower than QEMU with gnumach guest kernel Samuel Thibault
2014-11-11 23:42 ` Jan Kiszka
2014-11-16 22:18   ` Samuel Thibault
2014-11-17  6:28     ` Jan Kiszka
2014-11-17  8:50       ` Samuel Thibault
2014-11-24  0:42       ` Samuel Thibault
2014-12-15  0:09       ` Samuel Thibault
2014-12-15  9:41         ` Paolo Bonzini
2014-11-17  8:58     ` Gleb Natapov
2014-11-17  9:03       ` Samuel Thibault
2014-11-17  9:04         ` Jan Kiszka
2014-11-17  9:10           ` Samuel Thibault
2014-11-17  9:21             ` Gleb Natapov
2014-11-17  9:37               ` Samuel Thibault
2014-11-17  9:38               ` Samuel Thibault
2014-11-23 21:50           ` Samuel Thibault

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.