Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for constructing memory access model

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

Active Publication Date: 2014-01-22
HUAWEI TECH CO LTD
View PDF6 Cites 2 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 a specified area in the memory, which will consume a large amount of memory, and will cause memory resources to be tight, thus affecting system performance, and even cause system crashes

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

Embodiments of the present invention provide a method and an apparatus for constructing a memory access model, and relate to the field of computers. The method includes: obtaining a page table corresponding to a process referencing a memory block, and clearing a Present bit included in each page table entry stored in the page table; and constructing a memory access model of the memory block according to the number of access times of each page in the memory block and time obtained through timing, where the memory access model at least includes the number of access times and an access frequency of each page in the memory block. The apparatus includes: a first obtaining module, a first monitoring module, a first increasing module, and a second obtaining module. The present invention can reduce the memory consumption and an impact on the system performance, and avoid a 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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/24G06F12/0831G06F12/1009G06F12/121
CPCG06F12/02G06F2212/62G06F3/06G06F11/3447G06F13/24G06F12/121G06F2201/88G06F11/3419G06F12/0833G06F11/3466G06F12/1009G06F11/3471G06F2201/86G06F2201/865
Inventor 刘仪阳王伟裘稀石
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products