FLORIA: A Fast and Featherlight Approach for Predicting Cache Performance

Open Access
Authors
Publication date 2023
Book title ACM ICS '23
Book subtitle Proceedings of the 37th International Conference on Supercomputing : June 21-23, 2023, Orlando, FL, USA
ISBN (electronic)
  • 9798400700569
Event 37th International Conference on Supercomputing
Pages (from-to) 25-36
Publisher New York, NY: Association for Computing Machinery
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
Abstract

The cache Miss Ratio Curve (MRC) serves a variety of purposes such as cache partitioning, application profiling and code tuning. In this work, we propose a new metric, called cache miss distribution, that describes cache miss behavior over cache sets, for predicting cache MRCs. Based on this metric, we present FLORIA, a software-based, online approach that approximates cache MRCs on commodity systems. By polluting a tunable number of cache lines in some selected cache sets using our designed microbenchmark, the cache miss distribution for the target workload is obtained via hardware performance counters with the support of precise event based sampling (PEBS). A model is developed to predict the MRC of the target workload based on its cache miss distribution.

We evaluate FLORIA for systems consisting of a single application as well as a wide range of different workload mixes. Compared with the state-of-the-art approaches in predicting online MRCs, FLORIA achieves the highest average accuracy of 97.29% with negligible overhead. It also allows fast and accurate estimation of online MRC within 5ms, 20X faster than the state-of-the-art approaches. We also demonstrate that FLORIA can be applied to guiding cache partitioning for multiprogrammed workloads, helping to improve overall system performance.

Document type Conference contribution
Language English
Published at https://doi.org/10.1145/3577193.3593740
Downloads
3577193.3593740 (Final published version)
Permalink to this page
Back