Memory allocation method, device and system for virtual machine
A memory allocation and virtual machine technology, applied in the computer field, can solve problems such as uncertainty of saleable memory, encroachment of virtual machine content, and no solution proposed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] According to an embodiment of the present invention, an embodiment of a memory allocation method for a virtual machine is also provided. It should be noted that the steps shown in the flow charts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions , and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0029] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computing device, or a similar computing device. figure 2 A block diagram of a hardware structure of a computing device (or mobile device) for implementing a memory allocation method for a virtual machine is shown. Such as figure 1 As shown, computing device 10 (or mobile device 10) may include one or more (shown as 102a, 102b, ..., 102n in the figure) processor 102...
Embodiment 2
[0084] According to an embodiment of the present invention, an embodiment of a memory allocation method for a virtual machine is also provided, Figure 5 It is a flowchart of a memory allocation method for a virtual machine according to Embodiment 2 of the present application, combined with Figure 5 As shown, the method includes:
[0085] Step S51, when a virtual machine creation instruction is received, it is judged whether the memory of the host machine includes reserved memory, wherein, the first process running on the virtual machine of the host machine is allowed to use the reserved memory, and the first process running on the host machine The second process on is allowed to use memory other than reserved memory.
[0086] Specifically, the above-mentioned creation instruction can be initiated by Libvirt, and the above-mentioned first process refers to the process running on the host machine through the virtual machine, which can include the process generated by the virt...
Embodiment 3
[0095] According to an embodiment of the present invention, there is also provided a virtual machine memory allocation device for implementing the virtual machine memory allocation method in Embodiment 1 above, Image 6 is a schematic diagram of a memory allocation device for a virtual machine according to Embodiment 3 of the present application, such as Image 6 As shown, the device 600 includes:
[0096] The division module 602 is configured to divide the reserved memory from the memory of the host machine, wherein the first process running on the virtual machine of the host machine is allowed to use the reserved memory, and the second process running on the host machine is allowed to use the reserved memory except Memory other than reserved memory;
[0097] The allocating module 604 is configured to, when at least one virtual machine is created on the host machine, divide memory of a preset size from the reserved memory and allocate it to the created virtual machine.
[0...
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