Memory processing method and device, electronic equipment and readable medium
A processing method and memory technology, which can be used in program control devices, electrical digital data processing, program control design, etc., and can solve problems such as affecting the processing performance of the host computer.
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2022-06-24
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] Embodiments of the present invention relate to the technical field of electronic devices, and in particular, to a memory processing method, apparatus, electronic device, and readable medium. Background technique
[0002] With the continuous development of network technology, virtual machines have been used more and more. When using a virtual machine, in order to facilitate the external device to access the memory of the virtual machine in the host machine, the external device needs to be directly connected to the virtual machine.
[0003] In the existing method, when device passthrough is performed, all the memory of the virtual machine is allocated to the external device, so that the external device can access the memory of the virtual machine. In this way, the processing performance of the host will be affected when the host memory is tight. SUMMARY OF THE INVENTION
[0004] Embodiments of the present invention provide a memory processing method,...
Examples
Embodiment Construction
[0054]Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present invention will be more thoroughly understood, and will fully convey the scope of the invention to those skilled in the art.
[0055] figure 1 It is a flow chart of the steps of a memory processing method provided by an embodiment of the present invention, and the method can be applied to a host computer connected with an external device, such as figure 1 As shown, the method can include:
[0056] Step 101: For any virtual machine in the host machine, determine the amount of currently allocated memory according to the currently allocated memory of the virtual m...