...
【24h】

Selective hardware/software memory virtualization

机译:选择性的硬件/软件内存虚拟化

获取原文
获取原文并翻译 | 示例
           

摘要

As virtualization becomes a key technique for supporting cloud computing, much effort has been made to reduce virtualization overhead, so a virtualized system can match its native performance. One major overhead is due to memory or page table virtualization. Conventional virtual machines rely on a shadow mechanism to manage page tables, where a shadow page table maintained by the VMM (Virtual Machine Monitor) maps virtual addresses to machine addresses while a guest maintains its own virtual to physical page table. This shadow mechanism will result in expensive VM exits whenever there is a page fault that requires synchronization between the two page tables. To avoid this cost, both Intel and AMD provide hardware assists, EPT (extended page table) and NPT (nested page table), to facilitate address translation. With the hardware assists, the MMU (Memory Management Unit) maintains an ordinary guest page table that translates virtual addresses to guest physical addresses. In addition, the extended page table as provided by EPT translates from guest physical addresses to host physical or machine addresses. NPT works in a similar style. With EPT or NPT, a guest page fault can be handled by the guest itself without triggering VM exits. However, the hardware assists do have their disadvantage compared to the conventional shadow mechanism - the page walk yields more memory accesses and thus longer latency. Our experimental results show that neither hardware-assisted paging (HAP) nor shadow paging (SP) can be a definite winner. Despite the fact that in over half of the cases, there is no noticeable gap between the two mechanisms, an up to 34% performance gap exists for a few benchmarks. We propose a dynamic switching mechanism that monitors TLB misses and guest page faults on the fly, and dynamically switches between the two paging modes. Our experiments show that this new mechanism can match and, sometimes, even beat the better performance of HAP and SP.
机译:由于虚拟化已成为支持云计算的一项关键技术,因此已经做出了很多努力来减少虚拟化开销,因此虚拟化的系统可以匹配其本机性能。一个主要的开销是由于内存或页表虚拟化。常规的虚拟机依赖于影子机制来管理页表,其中VMM(虚拟机监视器)维护的影子页表将虚拟地址映射到计算机地址,而来宾维护其自己的虚拟到物理页表。每当存在需要在两个页面表之间进行同步的页面错误时,此影子机制将导致昂贵的VM退出。为了避免这种成本,Intel和AMD都提供了硬件帮助,即EPT(扩展页表)和NPT(嵌套页表),以简化地址转换。在硬件协助下,MMU(内存管理单元)维护一个普通的来宾页表,该表将虚拟地址转换为来宾物理地址。另外,EPT提供的扩展页表从来宾物理地址转换为主机物理地址或机器地址。 《不扩散核武器条约》的工作方式与此类似。使用EPT或NPT,来宾页面错误可以由来宾自身处理,而不会触发VM退出。但是,与传统的影子机制相比,硬件辅助确实有其缺点-页面遍历会产生更多的内存访问,从而导致更长的延迟。我们的实验结果表明,硬件辅助分页(HAP)和影子分页(SP)都不是绝对的赢家。尽管在一半以上的情况下,两种机制之间没有明显的差距,但对于一些基准而言,性能差距高达34%。我们提出了一种动态切换机制,该机制可动态监控TLB丢失和来宾页面故障,并在两种寻呼模式之间动态切换。我们的实验表明,这种新机制可以匹配甚至有时击败HAP和SP的更好性能。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号