A Fast Analytical Model of Fully Associative Caches

01/06/2020
by   Tobias Gysi, et al.
0

While the cost of computation is an easy to understand local property, the cost of data movement on cached architectures depends on global state, does not compose, and is hard to predict. As a result, programmers often fail to consider the cost of data movement. Existing cache models and simulators provide the missing information but are computationally expensive. We present a lightweight cache model for fully associative caches with least recently used (LRU) replacement policy that gives fast and accurate results. We count the cache misses without explicit enumeration of all memory accesses by using symbolic counting techniques twice: 1) to derive the stack distance for each memory access and 2) to count the memory accesses with stack distance larger than the cache size. While this technique seems infeasible in theory, due to non-linearities after the first round of counting, we show that the counting problems are sufficiently linear in practice. Our cache model often computes the results within seconds and contrary to simulation the execution time is mostly problem size independent. Our evaluation measures modeling errors below 0.6 enable memory hierarchy aware software development.

READ FULL TEXT
research
03/28/2022

Warping Cache Simulation of Polyhedral Programs

Techniques to evaluate a program's cache performance fall into two camps...
research
07/07/2017

Duty to Delete on Non-Volatile Memory

We firstly suggest new cache policy applying the duty to delete invalid ...
research
07/11/2019

Fast Modeling L2 Cache Reuse Distance Histograms Using Combined Locality Information from Software Traces

To mitigate the performance gap between the CPU and the main memory, mul...
research
06/29/2020

An Imitation Learning Approach for Cache Replacement

Program execution speed critically depends on increasing cache hits, as ...
research
11/05/2018

Fast and exact analysis for LRU caches

For applications in worst-case execution time analysis and in security, ...
research
12/04/2017

Data Cache Prefetching with Perceptron Learning

Cache prefetcher greatly eliminates compulsory cache misses, by fetching...
research
12/02/2020

Online Model Swapping in Architectural Simulation

As systems and applications grow more complex, detailed simulation takes...

Please sign up or login with your details

Forgot password? Click here to reset