The increasing complexity of autonomous vehicle (AV) systems underscores a critical challenge in efficient management of tiered memory architectures, which requires advances beyond conventional memory management strategies to achieve desired performance. This paper introduces MemScape, a novel policy designed to dynamically sculpt the memory landscape of AV systems, facilitating the optimal utilization of tiered memory configurations to minimize unexpected performance drop for AV operation. In contrast to conventional tiered memory management approaches, MemScape utilizes a user- and kernel- level memory allocation flow to migrate memory, which greatly improves system performance, while simultaneously reducing system memory cost. MemScape employs both reactive and proactive reinforcement learning agents for memory management. The reactive agent responds to current performance metrics, while the proactive agent anticipates future memory needs, ensuring optimal performance stability and efficiency. Through comprehensive emulation of an exemplar AV application pipeline utilizing tiered memory, MemScape demonstrates the potential to increase application performance by up to 3.8 × compared to vanilla Linux while saving
\(20\% \)
system memory cost. Central to MemScape’s efficacy is its novel reactive-and-proactive reinforcement learning approach to memory promotion and demotion that ensures targeting user-level goals. Our findings showcase MemScape’s promise to revolutionize memory management practices in AV systems, presenting a performance-optimized solution adept at meeting the varying demands of emerging autonomous technologies via a combination of reactive and proactive learning strategies.