Memory control method and memory control device
A memory control and memory technology, applied in the computer field, can solve problems affecting system work efficiency, high overhead, low efficiency, etc., and achieve the effect of improving control efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] This embodiment will describe how the memory control device controls the physical memory, please refer to figure 1 , which is a flow chart of a memory control method provided by an embodiment of the present invention, the method includes:
[0072] S101: The memory control device receives a control policy for the physical memory and corresponding trigger conditions, the control policy carries upper-layer semantic information for implementing the control policy, and the trigger conditions include changes in state information of the physical memory and / or the access process received by the memory control device.
[0073] It should be noted here that the control strategy described here is mainly used to guide the memory control device to control the physical memory, such as limiting the available physical memory quota of the access process, setting page priority, locking pages, etc., but executing these The control strategy needs to use the corresponding upper-level seman...
Embodiment 2
[0081] In this embodiment, on the basis of Embodiment 1, the trigger conditions will be expanded and described, and how the memory control device processes and controls the physical memory will be described according to different trigger conditions as examples.
[0082] Before explaining the trigger conditions, it is necessary to describe the characteristics of physical memory including physical addresses and virtual addresses. There is generally a mapping relationship between the physical addresses and the virtual addresses. In the prior art, as a software When the system controls or accesses the physical memory, it needs to pay attention to the physical address of the physical memory. For example, when performing DirectMemoryAccess (DMA) operation commands on the physical memory, there are many restrictions. For example, the physical addresses must be continuous. Starting from a low address, etc., the operation process is relatively cumbersome. In the embodiment of the prese...
Embodiment 3
[0137] refer to image 3 , image 3 A device structure diagram for memory control provided by an embodiment of the present invention, including:
[0138] The receiving unit 301 is configured to receive a control strategy for physical memory and a corresponding trigger condition, the control strategy carries upper-layer semantic information for implementing the control strategy, and the trigger condition includes a change in state information of the physical memory And / or the access process received by the memory control device.
[0139] For the description of the content executed by the receiving unit 301, please refer to the relevant description in S101 of Embodiment 1, and details are not repeated here.
[0140] The monitoring unit 302 is configured to monitor the status information of the physical memory and the access process.
[0141] For the description of the content executed by the monitoring unit 302, please refer to the relevant description in S102 of the first em...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 