Method and device for constructing memory access model

A memory access and memory technology, applied in the computer field, can solve problems such as memory resource shortage, large memory consumption, and system performance impact

Active Publication Date: 2012-05-02
HUAWEI TECH CO LTD
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Among them, when building a memory access model in the prior art, it is necessary to store the memory access address each time the application program accesses the memory in ...

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
  • Method and device for constructing memory access model
  • Method and device for constructing memory access model
  • Method and device for constructing memory access model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Such as figure 1 As shown, the embodiment of the present invention provides a method for constructing a memory access model, including:

[0037] Step 101: Obtain the page table corresponding to the process referencing the memory block, and clear the Present bit included in each page table entry stored in the obtained page table;

[0038] Wherein, the page table is used to store the page table entries of the pages to be accessed by the process referencing the memory block.

[0039] Step 102: monitor the process that references the memory block in real time and start timing;

[0040] Step 103: If a page fault interrupt event occurs when the process referencing the memory block accesses a page in the memory block, then increase the number of visits of the accessed page;

[0041] Wherein, the page fault interrupt event is generated when the process that references the memory block judges that the present bit included in the page table entry of the accessed page is cleared...

Embodiment 2

[0045] Such as figure 2 As shown, the embodiment of the present invention provides a method for constructing a memory access model, including:

[0046] Step 201: Divide the memory of the node, and divide the memory of the node into multiple memory segments;

[0047] Wherein, the memory of the node may be divided into multiple memory segments through a preset division strategy, and the preset division strategy may include: dividing the memory of the node into multiple memory segments of equal size.

[0048] Among them, the computer system includes a plurality of nodes, and each node includes at least a CPU (Central Processing Unit, central processing unit) and a memory. For any node, accessing the memory in the node by the CPU and other devices in the node is called access Local memory, in the computer system, other nodes other than the node access the memory in the node is called remote node access to the memory.

[0049] Step 202: For any memory segment, monitor the memory s...

Embodiment 3

[0092] Such as image 3 As shown, the embodiment of the present invention provides a method for constructing a memory access model, including:

[0093] Step 301: divide the memory of the node through a preset division strategy, and divide the memory of the node into multiple memory blocks;

[0094] Step 302: For any memory block, obtain all the processes referencing the memory block by means of reverse mapping, and obtain the page table corresponding to each process, and the page table corresponding to each process is used to store the information required by each process. The page table entry of the accessed page, the page table entry at least includes the page table entry information of the page and the Present bit of the page;

[0095] Among them, the smallest unit of memory is a page, each memory block includes one or more pages, each process accessing memory corresponds to a page table, and the page table stores the page table entries of the pages to be accessed by each ...

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 provides a method and a device for constructing a memory access model, relating to the computer field. The method comprises the steps of obtaining quoting a page table corresponding to a process of a memory block, and zero clearing the present bits comprised by page table items stored by the page table; real-timely monitoring and starting counting the process quoting the memory block; if the process quoting the memory block generates a page missing interrupt event when accesses the pages in the memory block, adding the page access times; according to the access times of each page in the memory block and the counting time, constructing a memory access model of the memory block. The memory access model at least comprises the access times and access frequencies of pages in the memory block. The device comprises a first obtaining module, a first monitoring module, a first adding module and a second obtaining module. The invention enables the memory consumption and the system performance effects to be reduced and avoids causing the system breakdown.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for constructing a memory access model. Background technique [0002] With the rapid development of computer technology, the gap between processor speed and memory access speed is getting bigger and bigger, and the memory system has become a performance bottleneck, so it is urgent to optimize the memory system. Wherein, if the memory access model of the application program can be constructed, an appropriate memory system optimization method can be proposed according to the constructed memory access model, so that the memory system can be optimized. [0003] At present, there is a method for constructing a memory access model in the prior art, specifically: on the computer system, the application program is monitored in real time, and if it is detected that the application program accesses the memory, the memory access address of the application program is obtained eac...

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): G06F13/24G06F12/0831G06F12/1009G06F12/121
CPCG06F12/02G06F2212/62G06F11/3447G06F13/24G06F12/121G06F2201/88G06F11/3419G06F12/0833G06F3/06G06F11/3466G06F12/1009G06F11/3471G06F2201/86G06F2201/865
Inventor 刘仪阳王伟裘稀石
Owner HUAWEI TECH CO 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
Try Eureka
PatSnap group products