A virtual machine memory dynamic management system and method based on memory and swap space
A dynamic management, virtual machine technology, applied in electrical digital data processing, software simulation/interpretation/simulation, instruments, etc., can solve the problems of reduced virtual machine running performance, system performance loss, security risks, etc., to improve performance, reduce System performance loss, the effect of improving security
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com