Design and Optimization of Hybrid Main Memory Systems using Machine Learning
Author:
Abstract:
The rising cost of ownership of modern large-scale systems stems from workloads with increasing data demands and the associated expenses of the de-facto main memory technology - DRAM. It faces limitations such as high leakage power, refresh frequency, and limited scalability. Emerging memory technologies provide alternatives, addressing issues like leakage power and density but introducing trade-offs, including higher access latency, endurance, and access energy concerns. This drives the need for Hybrid Main Memory (HMM) systems that complement DRAM with other memory technologies. HMM systems enable larger memory capacities for workloads with expanding working set sizes but present challenges, including selecting memory technologies, organizing hierarchies, and optimizing data placement. Existing literature heavily focuses on migration policies based on static initial allocation assumptions, leading to costly data movements that reduce efficiency. Moreover, reliance on predefined access patterns limits policy adaptability, resulting in inefficiencies with dynamic workloads and system variability, highlighting the need for better initial data placement strategies. This dissertation proposes an adaptive policymaker for initial data placement in HMM systems leveraging reinforcement learning. PARL, or Page Allocation using Reinforcement Learning, operates at the boundary of virtual and physical memory spaces, abstracting memory heterogeneity. PARL learns based on system-level attributes, aligning with optimization objectives to minimize data migration and improve workload runtime. PARL adapts to various workloads and memory configurations, improving runtime by up to 43% and DRAM hitrates by up to 21% compared to existing HMM strategies. By redefining memory management as a resource utilization problem, which avoids granular analysis of individual memory accesses, this work advances HMM design by proposing a non-biased, adaptive solution that minimizes the burden of data migration.