MemPerf: Profiling Allocator-Induced Performance Slowdowns

Author:

Zhou Jin1ORCID,Silvestro Sam2ORCID,Tang Steven (Jiaxun)1ORCID,Yang Hanmei1ORCID,Liu Hongyu2ORCID,Zeng Guangming3ORCID,Wu Bo4ORCID,Liu Cong5ORCID,Liu Tongping1ORCID

Affiliation:

1. University of Massachusetts at Amherst, Amherst, USA

2. University of Texas at San Antonio, San Antonio, USA

3. Synopsys, Sunnyvale, USA

4. Colorado School of Mines, Golden, USA

5. University of Texas at Dallas, Dallas, USA

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.

Funder

National Science Foundation

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference51 articles.

1. Fast, multicore-scalable, low-fragmentation memory allocation through large virtual memory and global data structures

2. SyncPerf

3. Android Community. 2020. View the Java heap and memory allocations with citep. https://developer.android.com/studio/profile/memory-profiler Android Community. 2020. View the Java heap and memory allocations with citep. https://developer.android.com/studio/profile/memory-profiler

4. The OpenMP ARB. 2022. The OpenMP API Specification For Parallel Programming. https://www.openmp.org/ The OpenMP ARB. 2022. The OpenMP API Specification For Parallel Programming. https://www.openmp.org/

5. Memory system characterization of commercial workloads

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3