SARCASM: Set-Associative Rotating Cache Analytical/Simulating Model - Inria - Institut national de recherche en sciences et technologies du numérique
Pré-Publication, Document De Travail Année : 2024

SARCASM: Set-Associative Rotating Cache Analytical/Simulating Model

SARCASM: Un modèle de cache set-associatif analytique/de simulation avec rotations.

Guillaume Iooss
  • Fonction : Auteur
  • PersonId : 1065686
Christophe Guillon
  • Fonction : Auteur
  • PersonId : 1330673
Albert Cohen
  • Fonction : Auteur
  • PersonId : 1090841

Résumé

Optimizing compilation for data cache memories is made difficult by (1) the need to statically analyze the program behavior, (2) the complexity of cache hierarchies and policies, and (3) the intricate interplay with a superscalar microarchitecture. Analytical cache modeling typically focuses on the first two challenges, approximating away instruction scheduling and speculation (including data prefetching). While much progress has been made on such models, their practical usage remains very limited. We address this specific gap between analysis accuracy and effective performance. We analyze how effective cache models can be to select profitable optimizations, and study the sensitivity of these optimizations to cache modeling accuracy. We study a representative range of tensor algebra applications, where all kernels have already been systematically vectorized and optimized for instruction-level parallelism at the register level. We consider four cache models including two analytical ones: (i) a state-of the-art fully-associative analytical model; (ii) a novel approximate set associative analytical cache model; (iii) a state-of-the-art cache simulator; and (iv) direct measurement of hardware counters. We show that, while fully associative models are currently the only scalable ones available to compiler passes, they are not well correlated with performance. On the contrary, supporting some level of set associativity yields much better results, on par with the most accurate (dynamic) simulated and measured cache misses.
Fichier principal
Vignette du fichier
main.pdf (373.26 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04814088 , version 1 (02-12-2024)

Licence

Identifiants

  • HAL Id : hal-04814088 , version 1

Citer

Guillaume Iooss, Christophe Guillon, Fabrice Rastello, Albert Cohen, Saday Sadayappan. SARCASM: Set-Associative Rotating Cache Analytical/Simulating Model. 2024. ⟨hal-04814088⟩
0 Consultations
0 Téléchargements

Partager

More