[Paper Review] Deterministic Memory Abstraction and Supporting Multicore System Architecture
This paper proposes Deterministic Memory, a new OS- and hardware-level memory abstraction that guarantees tightly bounded worst-case memory access times, enabling high time predictability in multicore systems without sacrificing performance. By distinguishing between deterministic and best-effort memory at the page level, the approach improves cache utilization by 39% and reduces required private DRAM space while maintaining strong isolation, as validated in Linux and gem5 simulations.
Poor time predictability of multicore processors has been a long-standing challenge in the real-time systems community. In this paper, we make a case that a fundamental problem that prevents efficient and predictable real-time computing on multicore is the lack of a proper memory abstraction to express memory criticality, which cuts across various layers of the system: the application, OS, and hardware. We, therefore, propose a new holistic resource management approach driven by a new memory abstraction, which we call Deterministic Memory. The key characteristic of deterministic memory is that the platform - the OS and hardware - guarantees small and tightly bounded worst-case memory access timing. In contrast, we call the conventional memory abstraction as best-effort memory in which only highly pessimistic worst-case bounds can be achieved. We propose to utilize both abstractions to achieve high time predictability but without significantly sacrificing performance. We present deterministic memory-aware OS and architecture designs, including OS-level page allocator, hardware-level cache, and DRAM controller designs. We implement the proposed OS and architecture extensions on Linux and gem5 simulator. Our evaluation results, using a set of synthetic and real-world benchmarks, demonstrate the feasibility and effectiveness of our approach.
Motivation & Objective
- Address the fundamental challenge of poor time predictability in multicore real-time systems due to uncontrolled memory access interference.
- Identify the lack of a unified memory abstraction to express memory criticality across application, OS, and hardware layers as a root cause.
- Propose a holistic cross-layer resource management framework using two memory abstractions: Deterministic Memory (bounded timing) and best-effort memory (performance-optimized).
- Enable fine-grained, page-level control over memory criticality to balance predictability and efficiency in shared memory hierarchies.
- Design and implement OS and hardware extensions—OS page allocator, cache, and DRAM controller—to support the new abstraction and evaluate its effectiveness.
Proposed method
- Define Deterministic Memory as a memory abstraction where the OS and hardware jointly guarantee small, tightly bounded worst-case access times.
- Extend the Linux 3.13 kernel with a new page allocator replacing the buddy allocator to support allocation of deterministic and best-effort memory pages.
- Design a deterministic memory-aware cache that provides the same isolation as way-based partitioning but with significantly higher cache space utilization.
- Enhance a real-time DRAM controller to reduce required private DRAM bank space while maintaining predictable access timing for real-time tasks.
- Implement the OS and hardware extensions in a gem5 full-system simulator targeting a high-performance, out-of-order quad-core platform.
- Use MMU-based page table entries to encode memory criticality at the page level, enabling end-to-end, cross-layer awareness of memory timing requirements.
Experimental results
Research questions
- RQ1Can a new memory abstraction that guarantees bounded worst-case memory access timing improve time predictability in multicore systems without degrading performance?
- RQ2How can deterministic memory be integrated into the OS and hardware stack to enable cross-layer resource management with fine-grained control at the page level?
- RQ3To what extent can deterministic memory reduce cache space waste and DRAM bank allocation while maintaining strong isolation for real-time tasks?
- RQ4What performance and predictability trade-offs emerge when selectively applying deterministic memory to only critical memory regions?
- RQ5How does the proposed approach compare to conventional way-based cache partitioning and state-of-the-art real-time DRAM controllers in terms of isolation, efficiency, and resource utilization?
Key findings
- The proposed deterministic memory abstraction enables the same level of isolation as conventional way-based cache partitioning while improving average cache hit rates for co-scheduled non-real-time workloads by 39%.
- The deterministic memory-aware cache design reduces required cache space by 49% on average compared to traditional way-based partitioning, without compromising isolation guarantees.
- The deterministic memory-aware DRAM controller reduces the amount of reserved private DRAM bank space while still achieving comparable worst-case execution time (WCET) guarantees to a state-of-the-art real-time DRAM controller.
- The MMU-based page-level encoding of memory criticality allows for flexible, fine-grained control over memory criticality, overcoming limitations of prior range-register-based approaches.
- The implementation in Linux and gem5 demonstrates the feasibility and effectiveness of the proposed cross-layer resource management framework in real-world workloads from EEMBC, SD-VBS, and SPEC2006 suites.
- The approach enables high time predictability for safety-critical tasks while maintaining high performance for non-critical workloads through selective use of deterministic memory.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.