Unlock instant, AI-driven research and patent intelligence for your innovation.

Virtual memory address translation method based on memory mapping adjacency

A technology of memory mapping and virtual address, applied in the field of virtual memory management and address translation

Active Publication Date: 2020-01-14
BEIHANG UNIV
View PDF6 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the current address translation merging method based on base pages can only combine address translation information of a limited number of base pages. In order to combine address translation information of as many base pages as possible, it is necessary to change the memory management strategy of the operating system to allocate as much as possible Large contiguous mapped memory domain
[0008] To sum up, it can be seen that in order to improve the efficiency of address translation, the existing methods either need the support of huge pages, or need to modify the memory management mechanism of the operating system

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
  • Virtual memory address translation method based on memory mapping adjacency
  • Virtual memory address translation method based on memory mapping adjacency
  • Virtual memory address translation method based on memory mapping adjacency

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0023] The basic idea of ​​the present invention is, as figure 1 As shown, each 2MB large page frame in the virtual address space is equally divided into 8 memory subdomains of fixed size. After the memory space is allocated by the operating system, the page table is scanned and the mapping continuity of the memory subdomains is detected, and the The mapping continuity information is stored in ...

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 invention discloses a virtual memory address translation method based on memory mapping adjacency. The virtual memory address translation method comprises the following steps: 1) dividing a virtual address space of each 2MB into eight memory sub-domains with equal length; 2) when the operating system allocates the memory space, scanning the page table, identifying continuously mapped memory sub-domains, and storing mapping continuity information in the memory sub-domains and between the memory sub-domains in unused bits in a second-level page table entry; (3) when the page table is searched in the address translation process, address translation information of the continuous mapping memory domain is merged according to mapping continuity information stored in the second-level page table entry and stored in the TLB; and 4) in order to further improve the page number of the combinable address translation information, detecting the continuity between the continuously mapped memory sub-domains while searching the page table, and storing the continuity information between the memory sub-domains in a memory sub-domain cache so as to reduce the memory access times. According to the method, the coverage area of the TLB can be effectively improved, the hit rate of the TLB is increased, and therefore the overhead of virtual memory address translation is reduced.

Description

technical field [0001] The invention relates to the fields of virtual memory management, address translation and the like, in particular to a virtual memory address translation method based on memory mapping adjacency. Background technique [0002] Virtual memory technology can effectively improve process security and available memory capacity. Before virtual memory-based memory access, virtual addresses need to be translated into physical addresses, and then physical addresses can be used to access memory data. In a structure with 4-level page tables, since the page tables are stored in memory, the address translation process needs to access the memory up to 4 times, which is very time-consuming. For a long time, address translation operations have been considered to be one of the performance bottlenecks of processors. Although the translation lookaside buffer (TLB for short) can avoid multiple memory accesses caused by the page table query operation to a certain extent, a...

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/1027G06F12/0882
CPCG06F12/0882G06F12/1027
Inventor 白跃彬禹超
Owner BEIHANG UNIV