Memory Resource Management in VMware ESX Server

Introduction VMware ESX Server is a thin software layer designed to multiplex hardware resources efficiently among virtual machines. The current system virtualizes the Intel IA-32 architecture In contrast, ESX Server manages system hardware directly, providing significantly higher I/O performance and complete control over resource management. machine addr: real hardware address physical addr: guest OS’s address pmap: data structure for each VM that maps physical addr to machine addr (ppn -> mpn) 注意这就是 EPT 的功能, 只是 2002 年 Intel 还没有 EPT 技术 Reclamation Mechanisms 每个虚拟机都会有一个 constant max size (Virtual Mem), 也就是一旦启动之后就不会变了 Overcommit: 过量使用后收回页替换机制 如果出现 ESX 宿主机承诺了过量的内存页使用量, 就会出现问题: 如何回收? 如果使用基于 pmap 的额外页表机制, 就还要改一下接口, 也就是撤回的页必须以 (VM, Vaddr) 这样的 tuple 形式才能让 ESX 实现页的撤回, 也就是 Meta-level Page Replacement 但是 ESX/VMM 层并不能知道哪个页更适合 evict, 这只有 guest OS 才知道 Double Paging Problem: 这样设计也会导致 double paging 的问题, VMM 撤回了某个特定的 (VM, page), 但是该 VM 在同时也在对应 page 写入了新的内容, 这样就会出现 inconsistency Balloon 机制 ...

2025-09-29 · 7 min · Yuchen You