Introduction: The Mobile Memory Squeeze
Modern mobile applications, ranging from 4K video editors to high-fidelity games, are increasingly memory-intensive. Traditional Dynamic Random-Access Memory (DRAM) is struggling to keep pace due to its high cost and significant power leakage—DRAM requires constant "refresh" power to maintain data, draining batteries even during idle periods.
When physical DRAM is exhausted, mobile operating systems typically "swap" data to slow flash storage. However, the latency gap between DRAM and flash is immense. As shown in Figure 1, traditional OS-managed swapping can lead to a geometric mean slowdown of over 2x, with some workloads experiencing nearly 5x performance degradation. This paper proposes a Hardware-accelerated Memory Management Unit (HMMU) to bridge this gap by integrating fast DRAM with dense, energy-efficient Non-Volatile Memory (NVM).
The HMMU Architecture
The HMMU is a dedicated hardware controller designed to manage a hybrid memory pool transparently to the Operating System. Unlike traditional designs that treat DRAM as a cache for NVM, the HMMU implements a Flat Address Space, treating both technologies as a single, unified memory resource to maximize capacity.
The system operates through a three-stage pipeline, as detailed in Figure 2:
- Stage 1 (Decide Target): The HMMU uses a hardware page table and cache metadata to determine if requested data resides in fast DRAM or slow NVM.
- Stage 2 (Retrieval & Relocation): If data is in slow memory, the HMMU employs an Adaptive Policy (AdpComb). It monitors access frequency; "hot" pages are migrated entirely to DRAM via a full page swap, while isolated "hot spots" are moved as smaller 128-byte sub-blocks into a reserved DRAM cache zone.
- Stage 3 (Return & Update): Data is returned to the processor, and metadata is updated to reflect the new physical locations.
By moving this logic from software to hardware, the HMMU eliminates the heavy context-switching overhead associated with OS-level memory management.
Evaluation and Results
The researchers evaluated the HMMU using the SPEC CPU 2017 benchmark suite on an FPGA-based emulation platform. This setup provided near-native hardware timing for workloads with memory footprints exceeding available DRAM.
Key findings include:
- Performance Recovery: The HMMU with the AdpComb policy achieved 88% of the performance of an ideal, all-DRAM system—a significant improvement over software-based swapping.
- Energy Savings: By replacing 87.5% of the DRAM with NVM, the system reduced total memory energy consumption by 39%, primarily by eliminating DRAM refresh power.
- NVM Longevity: The adaptive sub-page management reduced unnecessary writes to the NVM by 20%, addressing the limited write endurance of emerging memory technologies.
Conclusion
The HMMU demonstrates that hardware-level management is essential for future mobile hybrid memory systems. By intelligently balancing page-level migration and sub-page caching, the system provides a path toward high-capacity, low-power mobile memory that avoids the performance pitfalls of traditional OS swapping. Future work will focus on scaling this architecture for multi-core SoCs and exploring technology-specific optimizations for different types of NVM.
Summary updated