Page Directory Entry Cache for TLB Lookup Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In virtual memory systems, determining the correct page size for address translation is inefficient due to the need to check multiple possible page sizes in the translation lookaside buffer (TLB), leading to increased resource costs and potential performance slowdowns.

Innovation Solution

The method involves performing a Page Directory Entry Cache (PDEC) lookup to identify possible page sizes and update them, followed by a TLB lookup with a reduced set of likely page sizes, thereby reducing the number of TLB checks required and determining if a page walk is necessary.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a system attempts to look up a translation in a TLB by trying every possible page size, then the translation can be found, but the time and resource costs increase significantly

Engineering Contradiction:
Improvetranslation lookup accuracyVSAvoidTLB lookup time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent performs a preliminary PDEC lookup before the TLB lookup to determine the correct page size in advance. This preliminary action provides the offset bit information needed to configure the TLB lookup correctly, avoiding the need to try every possible page size and thereby reducing the time and resource costs while maintaining translation lookup accuracy.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If multiple page sizes are supported in the system, then the system is more versatile, but the complexity of address translation increases

Engineering Contradiction:
Improvepage size compatibilityVSAvoidaddress translation complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent introduces the PDEC as an intermediary structure between the virtual address and the TLB lookup. The PDEC stores offset information that acts as a mediator to guide the TLB lookup process, enabling the system to support multiple page sizes while simplifying the translation complexity by providing clear guidance on which page size to use for each virtual address.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If the system performs complete TLB lookups for all possible page sizes, then no translation errors occur, but the resource costs increase

Engineering Contradiction:
Improvetranslation accuracyVSAvoidlookup energy consumption
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent performs a preliminary PDEC lookup to determine the correct page size before executing the TLB lookup. This preliminary action ensures that the subsequent TLB lookup is performed with the correct configuration, eliminating the need to perform multiple redundant lookups and thereby reducing energy consumption while maintaining translation accuracy.

Inventive Principle:
Principle #10Preliminary action

4Measurement precision

If the offset size is not determined correctly, then the page size assumption is wrong, but identifying the correct offset requires knowing the page size in advance

Engineering Contradiction:
Improveoffset identification accuracyVSAvoidcircular dependency complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent uses the PDEC as an intermediary that breaks the circular dependency between page size determination and offset identification. The PDEC stores offset information that can be retrieved independently of the page size assumption, providing the necessary information to correctly identify the offset and determine the actual page size without requiring knowledge in advance.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS11422947B2Determining page size via page table cache
Publication Date: 2022.08.23 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11422947B2 patent drawing
  • US11422947B2 patent drawing
  • US11422947B2 patent drawing

AI summary

A page directory entry cache (PDEC) can be checked to potentially rule out one or more possible page sizes for a translation lookaside buffer (TLB) lookup. Information gained from the PDEC lookup can reduce the number of TLB checks required to conclusively determine if the TLB lookup is a hit or a miss.