[Paper Review] The Preliminary Evaluation of a Hypervisor-based Virtualization Mechanism for Intel Optane DC Persistent Memory Module
This paper proposes RAMinate, a hypervisor-based virtualization mechanism that dynamically optimizes memory mappings between DRAM and Intel Optane DCPMM in hybrid memory systems. By relocating hot memory pages to faster DRAM, RAMinate reduces performance degradation: with only 1% DRAM in a VM, kernel build time increased by only 13% (557s) versus 100% DRAM, compared to a 26% increase (624s) when optimization was disabled.
Non-volatile memory (NVM) technologies, being accessible in the same manner as DRAM, are considered indispensable for expanding main memory capacities. Intel Optane DCPMM is a long-awaited product that drastically increases main memory capacities. However, a substantial performance gap exists between DRAM and DCPMM. In our experiments, the read/write latencies of DCPMM were 400% and 407% higher than those of DRAM, respectively. The read/write bandwidths were 37% and 8% of those of DRAM. This performance gap in main memory presents a new challenge to researchers; we need a new system software technology supporting emerging hybrid memory architecture. In this paper, we present RAMinate, a hypervisor-based virtualization mechanism for hybrid memory systems, and a key technology to address the performance gap in main memory systems. It provides great flexibility in memory management and maximizes the performance of virtual machines (VMs) by dynamically optimizing memory mappings. Through experiments, we confirmed that even though a VM has only 1% of DRAM in its RAM, the performance degradation of the VM was drastically alleviated by memory mapping optimization. The elapsed time to finish the build of Linux Kernel in the VM was 557 seconds, which was only 13% increase from the 100% DRAM case (i.e., 495 seconds). When the optimization mechanism was disabled, the elapsed time increased to 624 seconds (i.e. 26% increase from the 100% DRAM case).
Motivation & Objective
- Address the substantial performance gap between DRAM and Intel Optane DCPMM in main memory systems.
- Overcome the challenge of slow DCPMM access in virtualized environments where VMs rely on hybrid memory.
- Enable efficient, flexible memory management in virtual machines by dynamically placing hot pages in faster DRAM.
- Demonstrate that minimal DRAM usage (1%) can achieve near-DRAM performance through intelligent memory mapping.
- Establish a foundation for future system software that maximizes performance in hybrid memory architectures using NVM.
Proposed method
- Implement RAMinate as a hypervisor-level virtualization mechanism running on QEMU/KVM to manage hybrid memory between DRAM and DCPMM.
- Use performance counters and the ipmctl utility to monitor real-time memory access patterns in DRAM and DCPMM.
- Dynamically identify hot guest physical pages based on access frequency and relocate them to DRAM to reduce latency.
- Perform memory mapping optimizations every 5 seconds, with a maximum of 1,000 page pairs relocated per cycle.
- Support both Memory Mode and App Direct Mode of DCPMM, focusing on App Direct Mode for full software-managed control.
- Integrate with the Linux kernel (4.19.16 extended) to enable low-level memory monitoring and control.
Experimental results
Research questions
- RQ1Can a hypervisor-based virtualization mechanism significantly reduce performance degradation in VMs using hybrid DRAM-DCPMM memory?
- RQ2How effective is dynamic memory mapping optimization in minimizing the impact of DCPMM’s high latency and low bandwidth?
- RQ3What performance improvement can be achieved with only 1% DRAM in a VM’s memory allocation when using RAMinate?
- RQ4How does the performance of a VM with RAMinate compare to a VM without optimization under the same hardware and workload?
- RQ5To what extent does continuous page migration adapt to changing memory access patterns during a compute-intensive workload?
Key findings
- DCPMM exhibited 400% higher read latency and 407% higher write latency compared to DRAM, with only 37% and 8% of DRAM’s read and write bandwidth, respectively.
- With RAMinate enabled and only 1% DRAM in the VM’s 4GB memory, the kernel build time was 557 seconds—only a 13% increase from the 100% DRAM baseline (495 seconds).
- When the optimization mechanism was disabled, the kernel build time rose to 624 seconds, a 26% increase from the 100% DRAM case.
- DRAM traffic was reduced to 50% of DCPMM traffic after optimization, indicating effective hot page migration to DRAM.
- Page relocation activity was highest initially and decreased after ~120 seconds, showing that RAMinate stabilized as hot pages were identified and migrated.
- The mechanism continuously adapted to workload changes, demonstrating real-time responsiveness to shifting memory access patterns.
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.