Skip to main content
QUICK REVIEW

[Paper Review] Execution-Cache-Memory Performance Model: Introduction and Validation

Johannes Hofmann, Jan Eitzinger|arXiv (Cornell University)|Sep 10, 2015
Parallel Computing and Optimization TechniquesComputer Science3 references12 citations
TL;DR

This paper introduces and validates the Execution-Cache-Memory (ECM) performance model, a simple analytical framework that predicts application performance on Intel Xeon Haswell-EP by modeling instruction execution, cache, and memory access latencies. The model accurately predicts up to 1.42× speedup from non-temporal stores by accounting for reduced cache hierarchy traffic, outperforming traditional bandwidth-only models.

ABSTRACT

This report serves two purposes: To introduce and validate the Execution-Cache-Memory (ECM) performance model and to provide a thorough analysis of current Intel processor architectures with a special emphasis on Intel Xeon Haswell-EP. The ECM model is a simple analytical performance model which focuses on basic architectural resources. The architectural analysis and model predictions are showcased and validated using a set of elementary microbenchmarks.

Motivation & Objective

  • To introduce a simple, analytical performance model focused on core architectural resources: execution, cache, and memory.
  • To validate the ECM model using microbenchmarks on Intel Xeon Haswell-EP architecture.
  • To analyze how non-temporal stores reduce memory bandwidth pressure and improve performance by avoiding RFO and write-allocate traffic.
  • To demonstrate that traditional roofline models underestimate performance gains from non-temporal stores due to ignoring in-cache data transfer costs.
  • To provide a practical, architecture-aware performance modeling approach for developers to identify bottlenecks and optimization opportunities.

Proposed method

  • The ECM model decomposes application performance into sequential stages: instruction execution, L1-to-L2, L2-to-L3, and L3-to-memory data transfers.
  • Each stage is assigned a latency cost in cycles per cache line (c/CL), based on measured bandwidth and cache hierarchy behavior.
  • The model uses measured bandwidth and cache line sizes to compute transfer times, incorporating write-allocate and RFO overheads.
  • Non-temporal stores are modeled by removing write-allocate and RFO traffic, reducing transfer counts and latency.
  • Predictions are derived by summing stage latencies: {1|3|4|5|...} cycles, with final performance estimated as the sum of these stages.
  • Model validation is performed by comparing ECM predictions against measured performance on microbenchmarks like Stream and Schönauer Triads.

Experimental results

Research questions

  • RQ1How accurately can the ECM model predict performance improvements from non-temporal stores on Haswell-EP?
  • RQ2Why do traditional roofline models underestimate performance gains from non-temporal stores?
  • RQ3What role do in-cache data transfers (e.g., L1-L2, L2-L3) play in the performance difference between regular and non-temporal stores?
  • RQ4How do architectural features like LFBs and CoD mode affect sustained memory bandwidth and performance?
  • RQ5To what extent do reduced cache hierarchy traffic and eliminated RFO streams contribute to performance gains?

Key findings

  • The ECM model predicts a 1.42× speedup for the Stream Triad using non-temporal stores, matching measured performance exactly.
  • For the Schönauer Triad, the ECM model predicts a 1.32× speedup with non-temporal stores, consistent with measured results.
  • The performance gain from non-temporal stores exceeds predictions of bandwidth-only models due to reduced in-cache data transfer overheads.
  • Haswell-EP achieves higher sustained memory bandwidth than Sandy Bridge and Ivy Bridge, especially with non-temporal stores and CoD mode enabled.
  • Eliminating RFO and write-allocate traffic reduces L1-L2 transfer time from 5 to 4 cycles and L2-L3 from 8 to 4 cycles in the Stream Triad.
  • The model shows that cache-to-memory transfer latencies (e.g., 15.6 c/CL for four lines) are critical for accurate performance prediction, especially under high memory pressure.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.