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

A kind of tlb management method and device

A management method and physical technology, applied in the computer field, can solve problems such as high TLB miss rate and achieve the effect of reducing the miss rate

Active Publication Date: 2017-07-14
HUAWEI TECH CO LTD +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The capacity of the physical TLB of a computer is fixed. In a virtualized environment, multiple VCPUs run on a computer. These VCPUs share the physical TLB of the computer. The capacity of the physical TLB is equally divided by each VCPU. In the existing computer The TLB entries stored in the physical TLB include the TLB entries of each VCPU, and the computer only runs one VCPU at a time, and the TLB entries of other VCPUs are not useful to the running VCPU, but they are still stored in the physical TLB Medium, resulting in a higher TLB miss rate

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
  • A kind of tlb management method and device
  • A kind of tlb management method and device
  • A kind of tlb management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] The embodiment of the present invention provides a TLB management method, such as figure 1 As shown, the method includes the following steps:

[0053] 101. Using the VPID of the first VCPU as an index, query the TLB storage directory table to obtain the address of the TLB storage table corresponding to the first VCPU in the memory area.

[0054] Wherein, the number of entries in the TLB storage directory table is equal to the number of VCPUs, and the TLB storage directory table stores the VPID of each VCPU in the computer and the address of the TLB storage table corresponding to each VPID in the memory area.

[0055] 102. Access the TLB storage table corresponding to the first VCPU according to the address of the TLB storage table corresponding to the first VCPU in the memory area, and sequentially read valid TLB entries in the TLB storage table corresponding to the first VCPU into the physical TLB.

[0056] Wherein, each VCPU corresponds to a TLB storage table, and t...

Embodiment 2

[0060] The embodiment of the present invention provides a TLB management method, such as figure 2 As shown, the method includes the following steps:

[0061] 201. Using the VPID of the first VCPU as an index, query the TLB storage directory table to obtain an address in the memory area of ​​the TLB storage table corresponding to the first VCPU.

[0062] Wherein, the address of the TLB storage table of contents may be stored in a newly added register in the CPU; or, the address of the TLB storage table of contents may also be stored in a global variable of the computer operating system kernel. In this way, when the computer performs VCPU scheduling, it can access the TLB storage directory according to the address of the TLB storage directory, and then use the VPID of the first VCPU as an index to query the TLB storage directory.

[0063] Optionally, the TLB storage directory table further stores an identifier used to indicate the number of entries in the TLB storage table cor...

Embodiment 3

[0089] Embodiments of the present invention further provide device embodiments for implementing the steps in the above method embodiments. Embodiments of the present invention can be applied to various computers, such as Figure 4 As shown, the device includes: a query obtaining unit 401 and a entry reading unit 402 .

[0090] The query obtaining unit 401 is configured to use the VPID of the first VCPU as an index to query the TLB storage directory table to obtain the address of the TLB storage table corresponding to the first VCPU in the memory area.

[0091] The address of the TLB storage table of contents is stored in a newly added register in the CPU; or, the address of the TLB storage table of contents is stored in a global variable of the computer operating system kernel; then, the query obtaining unit 401 specifically uses The TLB storage directory is accessed according to the address of the TLB storage directory, and then the TLB storage directory is queried by using t...

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

A TLB management method and computer are provided. The method includes querying a TLB storage directory table using a VPID of a first VCPU as an index, to obtain an address of a TLB storage table corresponding to the first VCPU; then accessing, according to the address of the TLB storage table corresponding to the first VCPU, the TLB storage table corresponding to the first VCPU, and reading a valid TLB entry in the TLB storage table corresponding to the first VCPU into a physical TLB.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a TLB (Translation Lookaside Buffer, bypass translation buffer) management method and device. Background technique [0002] In the prior art, the computer accesses the memory through the physical address of the memory unit, but most modern computers support paging memory management. The address of the memory unit generated under the condition of paging memory management is called a logical address, and the logical address must be converted into a physical address. to access memory. The correspondence between logical addresses and physical addresses is stored in the page table of the computer memory. It would take a lot of time if the page table in memory needs to be accessed every time a logical address is converted to a physical address. Therefore, a physical TLB is set in the computer as a high-level cache for address translation, and some commonly used page table e...

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/10G06F12/1009G06F12/1027G06F12/121
CPCG06F12/1009G06F12/1027G06F2212/657G06F2212/68G06F12/121
Inventor 江涛侯锐张乐乐张义张立新
Owner HUAWEI TECH CO LTD