Question

In this slide deck on Xen vs KVM, the benchmarks indicate that CPU and disk is nearly as fast under virtualization (~10% slowdown). Yet virtualization slows down a kernel compile by more than a factor of 2. What causes this?

Was it helpful?

Solution

A Linux kernel compile is a process heavy operation (lots of short-lived processes). Process creation/destruction involves setting up and tearing down MMU state. MMU virtualization is expensive (especially in software). There is a VMware whitepaper that shows the improvement in compile-time benchmarks when hardware MMU virtualization is used. I don't think the hardware used in the referenced slide provides hardware MMU virtualization. I don't know if either KVM or Xen support it (but I suspect so).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top