计算机应用 ›› 2013, Vol. 33 ›› Issue (01): 254-257.DOI: 10.3724/SP.J.1087.2013.00254

• 计算机软件技术 • 上一篇    下一篇

基于Xen虚拟机的内存资源实时监控与按需调整

胡耀1,肖如良1,姜军1,韩佳1,倪友聪1,杜欣1,房丽娜2   

  1. 1. 福建师范大学 软件学院, 福州 350108
    2. 深圳信息职业技术学院 软件学院, 广东 深圳 518172
  • 收稿日期:2012-07-04 修回日期:2012-08-11 出版日期:2013-01-01 发布日期:2013-01-09
  • 通讯作者: 肖如良
  • 作者简介:胡耀(1987-),男,湖南永州人,硕士研究生,主要研究方向:虚拟化计算环境优化;肖如良(1966-),男,湖南娄底人,教授,博士,CCF高级会员,主要研究方向:系统虚拟化、云计算、软件工程;姜军(1989-),男,福建三明人,硕士研究生,主要研究方向:云计算、系统虚拟化。
  • 基金资助:

    福建省科技计划重大项目(2011H6006)

Virtual machine memory of real-time monitoring and adjusting on-demand based on Xen virtual machine

HU Yao1,XIAO Ruliang1,JIANG Jun1,HAN Jia1,NI Youcong1,DU Xin1,FANG Lina2   

  1. 1. Faculty of Software, Fujian Normal University, Fuzhou Fujian 350108, China
    2. Department of Software, Shenzhen Institute of Information Technology, Shenzhen Guangdong 518172, China
  • Received:2012-07-04 Revised:2012-08-11 Online:2013-01-01 Published:2013-01-09
  • Contact: XIAO Ruliang

摘要: 在虚拟计算环境中,难以实时地监控与分配内存资源。针对以上问题,基于Xen虚拟计算环境,提出一种能够实时监控Xen虚拟机内存(VMM)使用情况的XMMC方法并进行了实现。所提方法运用Xen虚拟机提供的超级调用,其不仅能实时地监控虚拟机内存使用情况,而且能实时动态按需分配虚拟机内存。实验结果表明,XMMC方法对虚拟机应用程序造成的性能损失很小,低于5%;能够对客户虚拟机的内存资源占用情况进行实时的监测与按需调整,为多虚拟机的管理提供方便。

关键词: Xen, 虚拟机内存, 实时监控, 按需调整

Abstract: In a Virtual Machine (VM) computing environment, it is difficult to monitor and allocate the VM's memory in real-time. To overcome these shortcomings, a real-time method of monitoring and adjusting memory for Xen virtual machine called Xen Memory Monitor and Control (XMMC) was proposed and implemented. This method used hypercall of Xen, which could not only real-time monitor the VM's memory usage, but also dynamically real-time allocated the VM's memory by demand. The experimental results show that XMMC only causes a very small performance loss, less than 5%, to VM's applications. It can real-time monitor and adjust on demand VM's memory resource occupations, which provides convenience for the management of multiple virtual machines.

Key words: Xen, Virtual Machine Memory (VMM), real-time monitoring, adjusting on-demand

中图分类号: