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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com