Storage Key Marking for Virtual Memory Translation Structures
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In computing environments with virtualization technology, the latency for rebuilding translation look-aside buffer (TLB) entries increases when memory backing address translation tables is paged out, and the hypervisor lacks intelligence in paging decisions due to unknown ownership of pages backing these tables.
Innovation Solution
A computer-implemented method is introduced where a processor determines active use of address translation structures by setting an indicator in a storage key based on address translation requests, allowing the hypervisor to make informed paging decisions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If memory backing address translation tables is paged out to storage medium, then memory capacity is increased, but latency for rebuilding TLB entries increases significantly
Solution Approach 1:
The system sets an indicator in the storage key before paging out memory pages that back address translation structures. This preliminary marking allows the hypervisor to identify and protect these critical pages during paging decisions, preventing them from being paged out and thus avoiding the time-consuming process of rebuilding TLB entries later.
2Device complexity
If hypervisor makes paging decisions without knowing page ownership, then system complexity is reduced, but paging intelligence and efficiency deteriorate
Solution Approach 1:
The guest operating system automatically sets an indicator in the storage key when it uses memory pages to back address translation structures. This self-service mechanism provides the hypervisor with the necessary information about page ownership and usage without requiring complex tracking mechanisms, enabling intelligent paging decisions while maintaining system simplicity.
3Measurement precision
If operating system manually tracks page usage for hypervisor notification, then paging information accuracy is improved, but operational overhead increases
Solution Approach 1:
The system leverages the existing storage key mechanism that is already maintained by the operating system for memory management. By setting an indicator in this existing structure when address translation structures are backed by particular pages, the system obtains accurate page usage information without requiring separate tracking mechanisms or increased operational overhead.
Data Source
AI summary
A marking capability is used to provide an indication of whether a block of memory is backing an address translation structure of a control program being managed by a virtual machine manager. By providing the marking, the virtual machine manager may check the indication prior to making paging decisions. With this information, a hint may be provided to the hardware to be used in decisions relating to purging associated address translation structures, such as translation look-aside buffer (TLB) entries.


