Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2016-02-17
HUAWEI TECH CO LTD +1
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When the system performs process control on the physical memory, it will generate a large amount of signaling interaction with the physical memory, and a large part of the signaling interaction basically requires the system to implement interrupt processing (such as pagefault). When performing interrupt processing, it is necessary to save the relevant context information in the physical memory at the time of interrupt processing, so that the control process will consume a lot of system resources
It can be seen that the overhead of directly controlling the process of physical memory through the software system is very high. In some systems, interrupt processing will even cause an average delay of more than 2600 CPU clock cycles, which greatly affects the overall work efficiency of the system.
[0004] It can be seen that the efficiency of the system to directly control the process of the physical memory as the hardware is very low.

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 control method and memory control device
  • Memory control method and memory control device
  • Memory control method and memory control device

Examples

Experimental program
Comparison scheme
Effect test

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

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 embodiment of the invention discloses a memory control method and a memory control device. The method comprises the following steps that memory control equipment receives control strategies aiming at physical memories and corresponding triggering conditions, wherein the triggering conditions include state information change of the physical memory and / or an access process received by the memory control equipment; the memory control equipment monitors the state information of the physical memory and the access process; and when the triggering condition is met, the memory control equipment calls the corresponding control strategy for controlling the physical memory. Therefore the memory control equipment used as hardware obtains necessary control strategies from the system to complete physical memory control semantic information required by the control strategies and corresponding control measurement triggering conditions, so that when one triggering condition is met, the memory control equipment can call the control strategy corresponding to the triggering condition to control the physical memory; the interrupt processing of a system is not needed in the control process; and the control efficiency is improved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a memory control method and device. Background technique [0002] During the operation of the system, the processor will access the physical memory through the access process. At present, it is mainly through software, such as the operating system (Operating System, OS), and the virtual machine monitor (Virtual Machine Monitor, VMM). Control the physical memory accordingly. [0003] When the system performs process control on the physical memory, it will generate a large amount of signaling interaction with the physical memory, and a large part of the signaling interaction basically requires the system to implement interrupt processing (such as pagefault). When performing interrupt processing, it is necessary to save the relevant context information in the physical memory at the time of interrupt processing, so that the control process will consume a large amount of system resources. I...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/16G06F12/06
CPCG06F13/16
Inventor 陈荔城刘垚陈明宇
Owner HUAWEI TECH CO LTD