Method for allocating memory for virtual machine, storage medium and computer program architecture
A computer program, a technology for allocating memory, applied in computing, program control design, program control devices, etc., can solve problems such as inability to meet high-performance requirements, affecting the smoothness of virtual machine running, etc., to ensure memory usage and prevent insufficient memory. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment 1
[0016] A computer includes a processor and a computer-readable storage medium on which an executable computer program is stored. The computer program is the code of the KVM module (a computer program framework for realizing virtualization), and the processor executes the above computer program to realize the functions of the KVM module.
[0017] The above KVM module creates KVM virtual machines 1, 2, and 3 on a computer (hereinafter referred to as a host machine), and each virtual machine 1, 2, and 3 is used to run different business systems. The user establishes a database in advance, and then manually evaluates the pre-occupied memory requirements X, Y, and Z corresponding to multiple reference virtual machines 4, 5, and 6 running business systems A, B, and C based on experience. The memory requirements X, Y, and Z include the reserved memory requirements required by the reference virtual machine startup process and the reserved memory requirements required by the business s...
Embodiment 2
[0022] A computer includes a processor and a computer-readable storage medium on which an executable computer program is stored. The computer program is the code of the KVM module (a computer program framework for realizing virtualization), and the processor executes the above computer program to realize the functions of the KVM module.
[0023] The above KVM module creates KVM virtual machines 1, 2, and 3 on the computer (hereinafter referred to as the host machine). Virtual machine 1 and virtual machine 2 have started and run business systems A and B respectively.
[0024] When virtual machine 3 needs to be powered on, assuming that virtual machine 3 is about to run business system A, the KVM module queries which business systems are run by virtual machines 1 and 2 running on the host machine, and finds that virtual machine 1 runs business system A. It is the same as the business system to be run by the virtual machine 3 that needs to be powered on. Then collect the actual a...
Embodiment 3
[0028] The present embodiment is substantially the same as the second embodiment, and only the differences between the present embodiment and the second embodiment are described below, specifically as follows:
[0029]Create a shared disk on which information about each virtual machine running on each host machine is stored, including the business system running on the virtual machine, the amount of memory actually used, and the maximum amount of CPU resources and memory that can be allocated. Assuming that virtual machine 4 on another host runs business system C, if virtual machine 3 that needs to be powered on is about to run business system C, then the KVM module inquires from the shared disk that virtual machine 4 runs the business system that virtual machine 3 will run The business system C, which is the same as the business system, obtains the amount of memory actually used by the virtual machine 4 from the shared disk, and estimates the pre-occupied memory demand of the ...
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