KVM/Xen and libvirt: currentMemory, memory and ballooning

memory: 客户机最大使用的物理机内存上限。物理机器在boot使用的最大内存。

currentMemory: 如果设置的话,一旦机器被boot起来之后,相应模块被加载了,客户机就会调整它的内存到这个值。

若客户机为linux,即使有一个balloon驱动,也不会像期望的那样运行,当memory被设置高于currentMemory,客户机就不会“看到”,也不会使用它应该有的内存。理想情况下,客户机报告的Used Memory应该被客户机可见和使用。

实验证明,当memory设置的比currentMemory大的时候,free -m 报告的可见内存要小于currentMemory

链接

http://braastad.org/blog/2012/09/kvmxen-and-libvirt-currentmemory-memory-and-ballooning-where-did-my-memory-go/

原文地址:https://www.cnblogs.com/zhangzhang/p/2937619.html