Efficient approximations for cache-conscious data placement
Ali Ahmadi, Majid Daliri, Amir Kafshdar Goharshady, Andreas Pavlogiannis
Abstract
There is a huge and growing gap between the speed of accesses to data stored in main memory vs cache. Thus, cache misses account for a significant portion of runtime overhead in virtually every program and minimizing them has been an active research topic for decades. The primary and most classical formal model for this problem is that of Cacheconscious Data Placement (CDP): given a commutative cache with constant capacity 𝑘 and a sequence Σ of accesses to data elements, the goal is to map each data element to a cache line such that the total number of cache misses over Σ is minimized. Note that we are considering an offline singlethreaded setting in which Σ is known a priori. CDP has been widely studied since the 1990s. In POPL 2002, Petrank and Rawitz proved a notoriously strong hardness result: They showed that for every 𝑘 ≥ 3, CDP is not only NP-hard but also hard-to-approximate within any non-trivial factor unless P = NP. As such, all subsequent works gave up on theoretical improvements and instead focused on heuristic algorithms with no theoretical guarantees.
In this work, we present the first-ever positive theoretical result for CDP. The fundamental idea behind our approach is that real-world instances of the problem have specific structural properties that can be exploited to obtain efficient
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers2
- Fast and Optimal Extraction for Sparse Equality GraphsAmir Kafshdar Goharshady, Chun Kit Lam, Lionel ParreauxOOPSLA 2024 · 11 citations
- The Bounded Pathwidth of Control-Flow GraphsGiovanna Kobus Conrado, Amir Kafshdar Goharshady, Chun Kit LamOOPSLA 2023 · 9 citations
Builds on1
Related papers
- Co-Located Parallel Scheduling of Threads to Optimize Cache SharingCorey Tessler, Venkata Prashant Modekurthy, Nathan Fisher, Abusayeed Saifullah et al.RTSS 2023 · 5 citations
- Latency Guarantees for Caching with Delayed HitsKeerthana Gurushankar, Noah G. Singer, Bernardo SubercaseauxINFOCOM 2025 · 5 citations
- Contiguous Cake Cutting: Hardness Results and Approximation AlgorithmsPaul W. Goldberg, Alexandros Hollender, Warut SuksompongAAAI 2020 · 34 citations
- Interleaved Caching with Access GraphsRavi Kumar, Manish Purohit, Zoya Svitkina, Erik VeeSODA 2020 · 8 citations
- RPG2: Robust Profile-Guided Runtime Prefetch GenerationYuxuan Zhang, Nathan Sobotka, Soyoon Park, Saba Jamilan et al.ASPLOS 2024 · 11 citations
