Dynamic memory management method based on memory hot plug for virtual machine

A technology of dynamic memory and management method, which is applied in the direction of memory address/allocation/relocation, software simulation/interpretation/simulation, program control device, etc., and can solve the problem of inability to expand virtual machine physical address space, unrealized Xen virtual machine, virtual Problems such as the upper limit of machine memory size can be solved to achieve the effect of improving memory utilization, improving scalability, and improving performance

Inactive Publication Date: 2013-05-22
HUAZHONG UNIV OF SCI & TECH
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the balloon driver has defects, such as the inability to expand the physical address space of the virtual machine, resulting in an upper limit on the memory size of the virtual machine; frequent use of the balloon driver will cause the physical address space to be discontinuous, resulting in memory fragmentation
Memory hot-swapping is an important technology of operating system memory management, which can effectively improve the shortcomings of balloon drive, but it has not yet been implemented on Xen virtual machines
[0004] In general, multiple virtual machines running on a single physical machine use static memory allocation, that is, the memory size of the virtual machine is always the same or manually adjusted by the administrator. When the load of the virtual machine changes, insufficient memory or excessive memory utilization may occur. low case

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Dynamic memory management method based on memory hot plug for virtual machine
  • Dynamic memory management method based on memory hot plug for virtual machine
  • Dynamic memory management method based on memory hot plug for virtual machine

Examples

Experimental program
Comparison scheme
Effect test

example

[0106] The dynamic memory management system described in the present invention can be illustrated by specific examples. The experimental environment only needs one PC, and the configuration is as follows:

[0107]

[0108] The modified Xen 4.0 and Linux 2.6.31 kernels of the present invention need to be installed on the physical machine. Both domain U and domain 0 use the Linux 2.6.31 kernel. The three functions of the present invention are tested below.

[0109] (1) Virtual machine memory hot plug test

[0110] (1.1) Initial state: physical machine memory is 2G, domain 0 memory is fixed at 1G (cannot be changed);

[0111] (1.2) Create a virtual machine with 256M memory;

[0112] (1.3) Coarse-grained increase in memory: Use the memory hot-swappable driver to set the virtual machine memory to 512M in the user mode interface of domain 0, and increase the 256M memory, that is, add two sections of memory;

[0113] (1.4) Fine-grained increase of memory: Set the virtual machine memory to 562M,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a dynamic memory management system based on memory hot plug for a virtual machine, comprising a memory monitoring module, a memory distributing module and a memory hot plug module. The memory hot plug module adopts Linux memory hot plug mechanism to realize memory hot plug on a semi-virtual Linux virtual machine, thereby breaking through the initial memory toplimit of the virtual machine and efficiently improving the memory expandability of the virtual machine by increasing and reducing the memory randomly. On one hand, the memory distributing module dynamically predicts the memory requirement of the virtual machine and balances the memory pressure of each virtual machine, thereby being capable of satisfying the memory requirement of the virtual machine and also improving the memory utilization ratio of a physical machine; on the other hand, the memory distributing module can establish a new virtual machine by reasonably reducing the memory of the existing virtual machine when the memory of the physical machine is not enough, thereby realizing memory overuse and improving the memory utilization ratio of the physical machine.

Description

Technical field [0001] The invention belongs to the field of computer applications, relates to memory management of Xen paravirtualized virtual machines, and specifically relates to a dynamic memory management method in a multi-virtual machine environment. Background technique [0002] The resource scale of the current computing system continues to expand, the processing capacity is rapidly enhanced, the types of resources are increasingly abundant, and the application requirements are flexible and diverse. Virtualization technology can dynamically organize multiple computing resources and realize a transparent and scalable computing system architecture, thereby flexibly constructing a computing environment that meets multiple application requirements and improving the efficiency of computing resources. Various virtualization solutions continue to emerge, and the virtualization software Xen is undoubtedly one of the best. Xen is an open source virtual machine project initiated b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/455G06F12/02
Inventor 金海廖小飞马博刘海坤
Owner HUAZHONG UNIV OF SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products