DMon: Efficient Detection and Correction of Data Locality Problems Using Selective Profiling
Tanvir Ahmed Khan, Ian Neal, Gilles Pokam, Barzan Mozafari, Baris Kasikci
摘要
Poor data locality hurts an application's performance. While compiler-based techniques have been proposed to improve data locality, they depend on heuristics, which can sometimes hurt performance. Therefore, developers typically find data locality issues via dynamic profiling and repair them manually. Alas, existing profiling techniques incur high overhead when used to identify data locality problems and cannot be deployed in production, where programs may exhibit previously-unseen performance problems.
We present selective profiling, a technique that locates data locality problems with low-enough overhead that is suitable for production use. To achieve low overhead, selective profiling gathers runtime execution information selectively and incrementally. Using selective profiling, we build DMon, a system that can automatically locate data locality problems in production, identify access patterns that hurt locality, and repair such patterns using targeted optimizations.
Thanks to selective profiling, DMon's profiling overhead is 1.36% on average, making it feasible for production use. DMon's targeted optimizations provide 16.83% speedup on average (up to 53.14%), compared to a baseline that uses the highest level of compiler optimization. DMon speeds up PostgreSQL, one of the most popular database systems, by 6.64% on average (up to 17.48%).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 16 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Thermometer: profile-guided btb replacement for data center applications 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- Thermometer: profile-guided btb replacement for data center applications 引用了 Classifying Memory Access Patterns for Prefetching
- Thermometer: profile-guided btb replacement for data center applications 引用了 APT-GET: profile-guided timely software prefetching
- APT-GET: profile-guided timely software prefetching 引用了 Thermometer: profile-guided btb replacement for data center applications
- Thermometer: profile-guided btb replacement for data center applications 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- Mira: A Program-Behavior-Guided Far Memory System 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- Mira: A Program-Behavior-Guided Far Memory System 引用了 Thermometer: profile-guided btb replacement for data center applications
- Mira: A Program-Behavior-Guided Far Memory System 引用了 APT-GET: profile-guided timely software prefetching
- Mira: A Program-Behavior-Guided Far Memory System 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications 引用了 Thermometer: profile-guided btb replacement for data center applications
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications 引用了 APT-GET: profile-guided timely software prefetching
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- APT-GET: profile-guided timely software prefetching 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- APT-GET: profile-guided timely software prefetching 引用了 Classifying Memory Access Patterns for Prefetching
- APT-GET: profile-guided timely software prefetching 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing 引用了 Classifying Memory Access Patterns for Prefetching
引用它的顶会 Paper16
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center ApplicationsTanvir Ahmed Khan, Muhammed Ugur, Krishnendra Nathella, Dam Sunwoo 等MICRO 2022 · 25 次引用
- APT-GET: profile-guided timely software prefetchingSaba Jamilan, Tanvir Ahmed Khan, Grant Ayers, Baris Kasikci 等EuroSys 2022 · 25 次引用
- Thermometer: profile-guided btb replacement for data center applicationsShixin Song, Tanvir Ahmed Khan, Sara Mahdizadeh-Shahri, Akshitha Sriraman 等ISCA 2022 · 23 次引用
- Mira: A Program-Behavior-Guided Far Memory SystemZhiyuan Guo, Zijian He, Yiying ZhangSOSP 2023 · 22 次引用
- Domain specific run time optimization for software data planesSebastiano Miano, Alireza Sanaee, Fulvio Risso, Gábor Rétvári 等ASPLOS 2022 · 20 次引用
它引用的 Paper3
- Classifying Memory Access Patterns for PrefetchingGrant Ayers, Heiner Litz, Christos Kozyrakis, Parthasarathy RanganathanASPLOS 2020 · 83 次引用
- I-SPY: Context-Driven Conditional Instruction Prefetching with CoalescingTanvir Ahmed Khan, Akshitha Sriraman, Joseph Devietti, Gilles Pokam 等MICRO 2020 · 37 次引用
- Ripple: Profile-Guided Instruction Cache Replacement for Data Center ApplicationsTanvir Ahmed Khan, Dexin Zhang, Akshitha Sriraman, Joseph Devietti 等ISCA 2021 · 33 次引用
相关 Paper
- Adaptive Code Generation for Data-Intensive AnalyticsWangda Zhang, Junyoung Kim, Kenneth A. Ross, Eric Sedlar 等VLDB 2021 · 12 次引用
- RPG2: Robust Profile-Guided Runtime Prefetch GenerationYuxuan Zhang, Nathan Sobotka, Soyoon Park, Saba Jamilan 等ASPLOS 2024 · 11 次引用
- An Anomaly Detection System for the Protection of Relational Database Systems against Data Leakage by Application ProgramsDaren Fadolalkarim, Elisa Bertino, Asmaa SallamICDE 2020 · 17 次引用
- LOCAT: Low-Overhead Online Configuration Auto-Tuning of Spark SQL ApplicationsJinhan Xin, Kai Hwang, Zhibin YuSIGMOD 2022 · 34 次引用
- OCOLOS: Online COde Layout OptimizationSYuxuan Zhang, Tanvir Ahmed Khan, Gilles Pokam, Baris Kasikci 等MICRO 2022 · 14 次引用
