开发者

Xen and KVM kernel compile slowdown [closed]

开发者 https://www.devze.com 2023-04-12 11:01 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this 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开发者_如何学JAVA kernel compile by more than a factor of 2. What causes this?


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号