Memory management method and device

A memory management and memory technology, applied in the computer field, can solve problems such as waste and low memory management efficiency

Active Publication Date: 2018-11-30
HUAWEI TECH CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, the processing method of the page fault interrupt is still bound to the processor. Whether the page is checked by the MMU hardware or the operating system, as long as the page check fails, a page fault interrupt will be generated, and the processor will waste a lot of time on processing the page fault. Interrupts, making memory management inefficient

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0125] In the second embodiment, the interrupt processing flow when there is a blank page in the memory for the allocation of the virtual address, that is, the page fault interrupt processing flow under the condition that the physical memory is not exhausted, is mainly introduced in the third embodiment of the present invention. Page fault interrupt handling flow on exhaustion. image 3 It is a flow chart of Embodiment 3 of the memory management method of the present invention, such as image 3 As shown, the method of this embodiment may include the following steps:

[0126] Step 301, the memory manager sends a page fault interrupt notification to the operating system, and the page fault interrupt notification carries a virtual address.

[0127] When the memory manager determines that the page fault type of the virtual address is a page fault of existing data, a page fault interrupt notification is sent to the operating system.

[0128] Step 302, the operating system receive...

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

An embodiment of the present invention provides a memory management method and device, including: a memory manager receives a memory access request, and the memory access request carries a virtual address; If the page table entry corresponding to the virtual address is used, then the type of page fault of the virtual address is judged; if the type of page fault of the virtual address is a blank page fault, the memory manager allocates a corresponding page for the virtual address , the blank page fault refers to a page corresponding to the virtual address not allocated; the memory manager updates the page table entry corresponding to the virtual address into the memory and the TLB. By judging the page fault type of the virtual address, the memory manager does not generate a page fault interrupt when a blank page is missing, but allocates a corresponding page for the virtual address. Therefore, the method of this embodiment can reduce the occurrence of page fault interrupts. times, thereby improving memory management efficiency.

Description

technical field [0001] The embodiments of the present invention relate to computer technology, and in particular to a memory management method and device. Background technique [0002] In a modern computer system, memory management tasks are implemented jointly by the operating system, a memory management unit (Memory Management Unit, MMU for short), and a page table cache (Translation Lookaside Buffer, TLB for short). [0003] In the existing memory management process, the operating system is responsible for most of the memory management tasks, and the most frequently operated tasks of virtual and real address mapping and page lookup are implemented by hardware such as TLB and MMU. This memory management method has two inherent bottlenecks: (1) The TLB and MMU are on the critical path for the processor to access the cache. Every time the processor accesses the cache, it must first access the TLB. Once the TLB misses increase, the MMU will frequently check Pages can easily ...

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): G06F12/02
CPCG06F2212/1024G06F2212/684G06F12/1027G06F3/0608G06F3/0619G06F3/0647G06F3/0652G06F3/0664G06F3/0685G06F12/1009
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