Memory management method and equipment

A memory management and memory technology, applied in the computer field, can solve the problems of waste, low memory management efficiency, etc.

Active Publication Date: 2015-11-25
HUAWEI TECH CO LTD +1
View PDF3 Cites 14 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 equipment
  • Memory management method and equipment
  • Memory management method and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0125] The second embodiment mainly introduces the interrupt processing flow when there is a blank page in the memory for the virtual address allocation, that is, the page fault interrupt processing flow when the physical memory is not exhausted. The third embodiment of the present invention mainly introduces the physical memory Page fault interrupt processing flow when exhausted. image 3 This is a flowchart 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 interruption notification to the operating system, and the page fault interruption notification carries a virtual address.

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

[0128] Step 302: The operating system rece...

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

Provided are a memory management method and device. The method comprises: receiving, by a memory manager, a memory access request, the memory access request carrying a virtual address; if the memory manager does not find a page table entry corresponding to the virtual address in a translation lookaside buffer (TLB) and a memory, judging the missing page type of the virtual address; if the missing page type of the virtual address is a missing blank page, allocating, by the memory manager, a corresponding page to the virtual address, the missing blank page referring to the case where a corresponding page is not allocated to the virtual address; and updating, by the memory manager, the page table entry corresponding to the virtual address into the memory and the TLB. By judging the missing page type of the virtual address, when a blank page is missed, the memory manager does not generate missing page interrupt, but allocates the corresponding page to the virtual address, so that the memory management efficiency is improved by reducing the number of times of occurrence of missing page interrupt.

Description

Technical field [0001] The embodiments of the present invention relate to computer technology, and in particular to a method and device for memory management. Background technique [0002] In modern computer systems, memory management tasks are jointly implemented by an operating system, a memory management unit (Memory Management Unit, MMU), and a page table cache (TranslationLookasideBuffer, TLB). [0003] In the existing memory management process, the operating system is responsible for most of the memory management tasks, and the most frequently operated virtual and real address mapping and page checking tasks are implemented by hardware such as TLB and MMU. This memory management method has two inherent bottlenecks: (1) TLB and MMU are on the critical path of the processor accessing the cache. Each time the processor accesses the cache, it must first access the TLB. Once the TLB miss increases, the MMU will frequently check the page. , It is easy to cause system bottlenecks. ...

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): G06F12/02
CPCG06F12/02G06F2212/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