MaPHeA: A Framework for Lightweight Memory Hierarchy-aware Profile-guided Heap Allocation.

Autor: DEOK-JAE OH, YAEBIN MOON, DO KYU HAM, TAE JUN HAM, YONGJUN PARK, LEE, JAE W., JUNG HO AHN, EOJIN LEE
Předmět:
Zdroj: ACM Transactions on Embedded Computing Systems; Jan2023, Vol. 22 Issue 1, p1-28, 28p
Abstrakt: Hardware performance monitoring units (PMUs) are a standard feature in modern microprocessors, pro)viding a rich set of microarchitectural event samplers. Recently, numerous profile-guided optimization (PGO) frameworks have exploited them to feature much lower profiling overhead compared to conventional instrumentation-based frameworks. However, existing PGO frameworks mainly focus on optimizing the lay)out of binaries; they overlook rich information provided by the PMU about data access behaviors over the memory hierarchy. Thus, we propose MaPHeA, a lightweight Memory hierarchy-aware Profile-guided Heap Allocation framework applicable to both HPC and embedded systems. MaPHeA guides and applies the optimized allocation of dynamically allocated heap objects with very low profiling overhead and without additional user intervention to improve application performance. To demonstrate the effectiveness of MaPHeA, we apply it to optimizing heap object allocation in an emerging DRAM-NVM heterogeneous memory system (HMS), selective huge-page utilization, and controlling the cacheability of the objects with the low temporal locality. In an HMS, by identifying and placing frequently accessed heap objects to the fast DRAM region, MaPHeA improves the performance of memory-intensive graph-processing and Redis workloads by 56.0% on average over the default configuration that uses DRAM as a hardware-managed cache of slow NVM. By identifying large heap objects that cause frequent TLB misses and allocating them to huge pages, MaPHeA increases the performance of the read and update operations of Redis by 10.6% over the transparent huge page implementation of Linux. Also, by distinguishing the objects that cause cache pollution due to their low temporal locality and applying write-combining to them, MaPHeA improves the performance of STREAM and RADIX workloads by 20.0% on average over the system without cacheability control. [ABSTRACT FROM AUTHOR]
Databáze: Complementary Index