Amazon and Xen
Amazon and Xen
Posted Oct 26, 2012 11:06 UTC (Fri) by dunlapg (guest, #57764)In reply to: Amazon and Xen by aliguori
Parent article: An Introduction to Full Virtualization With Xen (Linux.com)
Both Xen and qemu-kvm have interesting parts in Linux and interesting parts outside. So if KVM is Linux, then Xen is Linux; if Xen is not Linux, then KVM (at least qemu-kvm) is not Linux.
Posted Oct 27, 2012 12:39 UTC (Sat)
by pbonzini (subscriber, #60935)
[Link]
On Xen you have two levels of scheduling and two levels of memory management. Xen distributes CPU shares to all domains (including dom0), and dom0 distributes CPU shares among its processes. Xen assigns memory to all domains (including dom0), and dom0 distributes memory among its processes. It's much harder to use a Xen dom0 for non-VM-related tasks, because you can only partly control the resources that dom0 receives.
For power management, Xen has to ask dom0 to process ACPI tables and basically summarize them to the hypervisor. It's even more complicated when it comes to paging, because Xen doesn't do paging on its own---it asks dom0 to page stuff in and out.
Sure, the Xen architecture seems simpler (because you "just" have to handle VCPUs, not arbitrary tasks, and because you "just" have to share memory among a few dozen domains rather than thousands of arbitrary tasks). And to some extent it is, because inventing a new scheduler or memory manager trick is much easier on Xen than on Linux. But in the end I think KVM's performance and simplicity proves that it is not worthwhile, also because every improvement done to favor KVM (think of Andrea Arcangeli's transparent huge pages and AutoNUMA) will benefit every workload, and will effectively have double benefit if you can use it to speed up both the host and the guest.
Posted Oct 27, 2012 12:40 UTC (Sat)
by pbonzini (subscriber, #60935)
[Link]
You knew already what I wrote, which makes me so much more eager to read what you think about it...
Amazon and Xen
Amazon and Xen
