MemPerf: Profiling Allocator-Induced Performance Slowdowns
Open Access
- 16 October 2023
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 7 (OOPSLA2) , 1418-1441
Abstract
The memory allocator plays a key role in the performance of applications, but none of the existing profilers can pinpoint performance slowdowns caused by a memory allocator. Consequently, programmers may spend time improving application code incorrectly or unnecessarily, achieving low or no performance improvement. This paper designs the first profiler—MemPerf—to identify allocator-induced performance slowdowns without comparing against another allocator. Based on the key observation that an allocator may impact the whole life-cycle of heap objects, including the accesses (or uses) of these objects, MemPerf proposes a life-cycle based detection to identify slowdowns caused by slow memory management operations and slow accesses separately. For the prior one, MemPerf proposes a thread-aware and type-aware performance modeling to identify slow management operations. For slow memory accesses, MemPerf utilizes a top-down approach to identify all possible reasons for slow memory accesses introduced by the allocator, mainly due to cache and TLB misses, and further proposes a unified method to identify them correctly and efficiently. Based on our extensive evaluation, MemPerf reports 98% medium and large allocator-reduced slowdowns (larger than 5%) correctly without reporting any false positives. MemPerf also pinpoints multiple known and unknown design issues in widely-used allocators.Keywords
Funding Information
- National Science Foundation (DUE-2215193, CCF-2024253, CNS-1750760)
This publication has 28 references indexed in Scilit:
- Fast, multicore-scalable, low-fragmentation memory allocation through large virtual memory and global data structures2015
- C oz2015
- SuperMalloc: a super fast multithreaded malloc for 64-bit machines2015
- ArrayTool2014
- PREDATORACM SIGPLAN Notices, 2014
- SHERIFF2011
- WMTools - Assessing Parallel Application Memory Utilisation at Scale2011
- Pin2005
- Hoard2000
- GprofACM SIGPLAN Notices, 1982