PiBooster:一种提高准虚拟机页表管理性能的轻量级方法
PiBooster: A Light-Weight Approach to Performance Improvements in Page Table Management for Paravirtual Virtual-Machines
摘要:
在半虚拟化中,客户机操作系统的页表管理组件被适当地修补,以保证管理程序的安全性。然而,他们都没有足够的重视性能的改善,这导致了两个明显的性能问题。首先,这种安全补丁加剧了客户页表分配的执行路径变得非常长的问题,这将因此增加进程创建和退出的延迟。其次,补丁引入了许多额外的IOTLB刷新,导致额外的IOTLB未命中,并且未命中将对所有外围设备的I/O性能产生负面影响。在本文中,我们提出了PiBooster,一种新的轻量级的方法来提高页表管理的性能。首先,PiBooster通过PiBooster缓存缩短了页表分配(解)的执行路径,PiBooster缓存维护专用的缓冲区用于服务页表分配(解)。其次,PiBooster通过细粒度验证方案消除了额外的IOTLB未命中,该方案单独执行页表和DMA验证,而不是同时执行两者。我们在Xen上实现了一个原型,Linux作为客户内核。我们在Xen(166 SLoC)和Linux内核(350 SLoC)上做了一些小的修改。我们从微观和宏观两个方面来评估I/O性能。微观实验结果表明,PiBooster能够完全消除负载稳定环境中额外的IOTLB刷新,并有效地将页表分配时间平均减少47%。宏基准测试结果表明,该方法使进程创建和退出的时延平均降低了16%。此外,SPECINT、lmbench和netperf结果表明,PiBooster对CPU计算、网络I/O和磁盘I/O没有负面性能影响。
英文摘要:
In paravirtualization, the page table management components of the guest operating systems are properly patched for the security guarantees of the hypervisor. However, none of them pay enough attentions to the performance improvements, which results in two noticeable performance issues. First, such security patches exacerbate the problem that the execution paths of the guest page table (de)allocations become extremely long, which would consequently increase the latencies of process creations and exits. Second, the patches introduce many additional IOTLB flushes, leading to extra IOTLB misses, and the misses would have negative impacts on I/O performance of all peripheral devices. In this paper, we propose PiBooster, a novel lightweight approach for improving the performance in page table management. First, PiBooster shortens the execution paths of the page table (de)allocations by the PiBooster cache, which maintains dedicated buffers for serving page table (de)allocations. Second, PiBooster eliminates the additional IOTLB misses with a fine-grained validation scheme, which performs page table and DMA validations separately, instead of doing both together. We implement a prototype on Xen with Linux as the guest kernel. We do small modifications on Xen (166 SLoC) and Linux kernel (350 SLoC). We evaluate the I/O performance in both micro and macro ways. The micro experiment results indicate that PiBooster is able to completely eliminate the additional IOTLB flushes in the workload-stable environments, and effectively reduces (de)allocation time of the page table by 47% on average. The macro benchmarks show that the latencies of the process creations and exits are expectedly reduced by 16% on average. Moreover, the SPECINT,lmbench and netperf results indicate that PiBooster has no negative performance impacts on CPU computation, network I/O, and disk I/O.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。