Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

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.

Pending Publication Date: 2021-09-10
ALIBABA GRP HLDG LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This will make the memory used by the kernel and applications compete with the memory used by the virtual machine during the running process, resulting in uncertainty about the salable memory of the host machine, especially in the case of serious memory shortage, which may lead to The memory of the virtual machine is swapped out or even the virtual machine cannot be used, which affects the system performance and stability
[0004] There is no effective solution to the problem of encroaching on the content of the virtual machine when the memory is insufficient

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
  • Memory allocation method, device and system for virtual machine
  • Memory allocation method, device and system for virtual machine
  • Memory allocation method, device and system for virtual machine

Examples

Experimental program
Comparison scheme
Effect test

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...

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 memory allocation method, device and system for a virtual machine. The method comprises the steps of dividing a reserved memory from a memory of a host machine, allowing a first process running on a virtual machine of the host machine to use the reserved memory, and allowing a second process running on the host machine to use other memories except the reserved memory; and when at least one virtual machine is created on the host machine, dividing a memory with a preset size from the reserved memory, and allocating the memory to the created virtual machine. The technical problem that the content of the virtual machine is occupied under the condition that the memory is insufficient is solved.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a memory allocation method, device and system for a virtual machine. Background technique [0002] In a virtualization scenario, a virtual machine is built on a host machine, and the host machine needs to allocate dedicated memory for the virtual machine to run normally. [0003] figure 1 It is a schematic diagram of running a virtual machine on a host machine (Host) in the prior art, combined with figure 1 As shown, in a host machine HOST, multiple virtual machines VM1, VM2,...VMn can run, and the memory used by them comes from the memory Memory of the Host. At the same time, the kernel kernel of the Host and other application programs on the Host may also be The memory mentioned above will be used. This will make the memory used by the kernel and applications compete with the memory used by the virtual machine during the running process, resulting in uncertainty about the sa...

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
IPC IPC(8): G06F9/455
CPCG06F9/45558G06F2009/45583G06F2009/45562
Inventor 郑豪傅俊康沈益斌
Owner ALIBABA GRP HLDG LTD
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
Eureka Blog
Learn More
PatSnap group products