Dynamic management method and system for virtual machine memory on the basis of memory and Swap space

A dynamic management and virtual machine technology, applied in the direction of electrical digital data processing, software simulation/interpretation/simulation, program control design, etc., can solve problems such as high security risks, system performance loss, and virtual machine operating performance degradation, and achieve improved The effects of security, performance improvement, and system performance reduction

Active Publication Date: 2017-12-12
HARBIN INST OF TECH
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to solve the problem that the existing virtual machine memory scheduling algorithm will cause system performance loss when using the Swap space, and only use in-band monitoring in the virtual machine memory monitoring, so that the running performance of the virtual machine is reduced and the security risks are high. Therefore, a virtual machine memory dynamic management system and method based on memory and Swap space are proposed

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 management method and system for virtual machine memory on the basis of memory and Swap space
  • Dynamic management method and system for virtual machine memory on the basis of memory and Swap space
  • Dynamic management method and system for virtual machine memory on the basis of memory and Swap space

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach 1

[0019] Specific implementation mode one: the virtual machine memory dynamic management system based on memory and Swap space of this embodiment, such as figure 1 As shown, it includes the monitoring module, computing module and execution module set in the privileged domain, where:

[0020] The monitoring module is used to send the address of the data to be read to the virtual machine, and receive the data to be read returned by the virtual machine; it is also used to send the data to be read to the computing module.

[0021] The calculation module is used to calculate the target memory size that should be allocated to the virtual machine after receiving the data to be read.

[0022] An execution module, configured to adjust the memory of the virtual machine according to the size of the target memory.

[0023] In a virtualization environment, virtual machines are allocated a fixed memory space at the beginning of creation, which may cause some virtual machines to use swap spac...

specific Embodiment approach 2

[0026] Embodiment 2: The difference between this embodiment and Embodiment 1 is that the monitoring module is a LibVMI tool.

[0027] During the implementation process, we tried to use Libvirt and LibVMI to collect memory information, but because the interface for collecting information in Libvirt cannot be used in the Xen virtual machine, and this interface cannot obtain the size of the buffer and cache of the virtual machine system, so in the end Use LibVMI for out-of-band acquisition.

[0028] Other steps and parameters are the same as those in Embodiment 1.

specific Embodiment approach 3

[0029] Specific embodiment three: the difference between this embodiment and specific embodiment one or two is that the calculation module specifically includes:

[0030] The first calculation unit is used when When , determine the active memory T of the virtual machine with the largest active memory m Is it equal to the average active memory of all virtual machines where T i is the active memory of the i-th virtual machine; N is the total memory of all running virtual machines.

[0031] If T m and are not equal, the calculation formula of the target memory allocation parameter τ of the virtual machine at the next moment is If the value of τ calculated at this time is less than 0, the value of τ is assigned as 0; if the value of τ calculated at this time is greater than 1, the value of τ is assigned as 1; where ξ is the reserved space set according to experience; if T m and If they are equal, assign τ to 1.

[0032] Put the determined τ value into the formula G...

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 relates to the field of virtual machine memory management, in particular to a dynamic management method and system for virtual machine memory on the basis of memory and Swap space. In order to eliminate the defects that system performance loss is caused when an existing virtual machine memory scheduling algorithm uses the Swap space and in-band monitoring is used in virtual machine memory monitoring to cause low virtual machine operation performance and high potential safety hazard, the invention puts forward the dynamic management method and system for the virtual machine memory on the basis of the memory and the Swap space. The system comprises a monitoring module, a calculation module and an execution module, wherein the monitoring module, the calculation module and the execution module are arranged in a privileged domain; the monitoring module is used for sending the address of to-be-read data to the virtual machine and receiving the to-be-read data returned from the virtual machine and is also used for sending the to-be-read data to the calculation module; the calculation module is used for calculating a target memory size which needs to be distributed to the virtual machine; and the execution module is used for regulating the memory of the virtual machine according to the target memory size. The system is suitable for the dynamic management tool of the memory.

Description

technical field [0001] The invention relates to the field of virtual machine memory management, in particular to a virtual machine memory dynamic management system and method based on memory and Swap space. Background technique [0002] The research on virtual machine memory dynamic management is mainly divided into memory management mechanism and dynamic scheduling algorithm. The memory management mechanism includes memory monitoring methods and memory scheduling tools. Dynamic scheduling algorithm refers to the decision-making mechanism for memory allocation to virtual machines during their running. . The memory monitoring methods in the memory management mechanism mainly include traditional internal monitoring and the current popular out-of-band monitoring. Internal monitoring refers to installing an information collection plug-in inside the virtual machine and sending the information to the outside, which often brings some security risks. And to a certain extent, the ru...

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 Applications(China)
IPC IPC(8): G06F9/455
CPCG06F9/45558G06F2009/45583
Inventor 张伟哲何慧王德胜谢虎成刘亚维余翔湛郝萌鲁刚钊白恩慈
Owner HARBIN INST OF 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