计算机科学与探索 ›› 2012, Vol. 6 ›› Issue (1): 58-66.DOI: 10.3778/j.issn.1673-9418.2012.01.004

• 学术研究 • 上一篇    下一篇

面向虚拟机环境的Cache动态划分算法设计与实现

李家文, 沈 立   

  1. 国防科学技术大学 计算机学院, 长沙 410073
  • 出版日期:2012-01-01 发布日期:2012-01-01

Design and Implementation of Dynamic Cache Partitioning in Virtualization Environment

LI Jiawen, SHEN Li   

  1. School of Computer Science, National University of Defense Technology, Changsha 410073, China
  • Online:2012-01-01 Published:2012-01-01

摘要: 为改善虚拟化系统的cache隔离性, 提高系统的整体性能, 面向虚拟化环境设计并实现了一种cache动态划分算法。该算法采用页面着色的思想, 通过为虚拟机分配私有颜色页面来实现cache的划分, 同时能够根据虚拟机的cache需求为其动态调整cache容量。在Xen虚拟环境中实现了该算法。实验结果表明, 该算法可以在较低开销的情况下, 显著提高多虚拟机上并发程序的全局性能。

关键词: 动态cache划分, 性能隔离, 虚拟机

Abstract: In order to improve cache isolation performance and system performance in virtualization environment, this paper designs and implements a dynamic cache partitioning algorithm. It uses page coloring strategy to implement cache partitioning, in which private color pages are allocated to virtual machine (VM) and cache capacity can be adjusted on demand. The paper implements the method in Xen virtualization environment. Experimental results show that the method can boost system performance for applications running concurrently on different VMs with low overhead.

Key words: dynamic cache partitioning, performance isolation, virtual machine