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

Memory virtualization method and system under Shenwei architecture

A technology of memory virtualization and Shenwei, applied in memory systems, software simulation/interpretation/simulation, multi-programming devices, etc., can solve the problem of introducing query overhead, performance that cannot meet the needs of production and life, and is not suitable for Shenwei architecture processors and other issues to achieve the effect of eliminating the cost of page fault processing

Active Publication Date: 2021-02-12
PEKING UNIV +1
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These two solutions are implemented on mainstream processor architectures such as x86, but neither is suitable for Shenwei architecture processors.
As far as the extended page table model is concerned, it essentially uses hardware to efficiently complete two-layer address translation, but the Shenwei architecture lacks hardware support. If the model is implemented purely in software, the performance cannot meet the needs of production and life.
In addition, compared with the traditional shadow page table, the extended page table model reduces the processing overhead of page fault interrupts, but it introduces additional page table query overhead
[0007] As far as the traditional shadow page table model is concerned, on the one hand, due to the synchronization mechanism of write protection, the code implementation is extremely complex and inefficient; on the other hand, it cannot take advantage of the unique software flexibility of Shenwei architecture

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 virtualization method and system under Shenwei architecture
  • Memory virtualization method and system under Shenwei architecture
  • Memory virtualization method and system under Shenwei architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below through specific embodiments and accompanying drawings.

[0044] The "software-managed TLB" in the present invention means that the architecture exposes a TLB software management interface for the operating system to refresh / fill TLB entries.

[0045] The "shadow page table" mentioned in the present invention refers to a page table used to directly cache the mapping relationship between the virtual address of the client computer and the physical address of the host computer under the virtualization environment. This is an important method used to speed up the efficiency of two-layer address translation.

[0046] The "page table synchronization" in the present invention means that in the shadow page table memory virtualization model, the shadow page table needs to maintain mapping consistency with the cl...

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 relates to a memory virtualization method and system under a Shenwei architecture. The method comprises the following steps: a buffer area for storing a shadow page table base address isbuilt; when the CPU queries that the TLB misses, the CPU accesses the buffer area to obtain a shadow page table base address of the current process, loads the shadow page table base address into a memory management unit, and starts page table query; when mapping missing occurs in the page table query, the CPU switches the client context to the host context to perform page missing interrupt processing; the corresponding TLB directly fills the virtual-real address conversion mapping obtained after page missing interrupt processing to realize TLB prefetching; and the CPU inquires the TLB again to finish the address conversion from the virtual address of the client to the physical address of the host. Based on the TLB characteristic of Shenwei architecture software management, the shadow pagetable and the TLB are refreshed at the same time, and therefore synchronization of the shadow page table and the client process page table is achieved.

Description

technical field [0001] The present invention relates to the field of virtualization of Shenwei architecture, in particular to a method and system for realizing efficient memory virtualization under Shenwei architecture. Background technique [0002] The Shenwei family processor is a typical representative of domestic processors, and its development has attracted much attention. The great success of the supercomputer Sunway TaihuLight has established Shenwei's pivotal position in the field of domestic processors. Especially in government and other sectors with high security and self-controllability, Shenwei servers are favored and are mainly used in desktop office systems. The first generation of Shenwei architecture instruction set originated from the Alpha instruction set, and after continuous improvement and development, it has developed into an independent Shenwei instruction set. [0003] Compared with the international mainstream computer processor architecture (such ...

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): G06F9/50G06F12/1009G06F9/455
CPCG06F9/5077G06F9/5016G06F12/1009G06F2009/45583
Inventor 沙赛罗英伟汪小林张毅
Owner PEKING UNIV
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