Reading the Efficiently Prefetching Complex Address Patterns (VLDP) Paper (2. The Tables Used for Prediction)

I needed to look into this for a bit, so here are my notes:

https://ieeexplore.ieee.org/document/7856594

  • Efficiently Prefetching Complex Address Patterns

The key point of VLDP is that, as shown above, it generates the next prefetch based on the Delta History Buffer (DHB).

Let me summarize the tables used by VLDP.

  • Table for storing access history
    • DHB : Stores the accesses on each page using the differences (deltas) between successive accesses. Each entry holds per-page information:
      • Page number
      • In-page offset address of the last access
      • Deltas (differences) of the last four accesses
      • Level of the DPT used for the most recent prediction
      • Number of times this page entry has been used
      • Offset information for the last four prefetches
    • Predictions are triggered using this information (PAE : Prefetch Activation Event)
  • Tables for making predictions (Prediction Tables)
    • OPT (Offset Prediction Table) : A table used to complement the DPT, which needs a pattern to repeat several times. A single table shared by all accesses is used.
      • Uses a 64-entry direct-mapped table
      • On the first access to a page, the OPT is looked up; if it hits and the accuracy bit is set, the prefetch delta is used to generate the next prefetch address.
      • When a second access to the same page occurs, the delta is calculated.
      • If the same delta is subsequently detected on the same page, the accuracy bit is set to 1.
      • If the OPT's observation does not match the actual delta, the accuracy bit is reset to 0.
    • DPT (Delta Prediction Table)
      • The role of the DPT is to make predictions based on the DHB results. Unlike the DHB, the DPT is not managed per page; a single table shared across pages is used.
      • Predictions are made based on several history lengths; the lowest priority goes to the one that uses a single delta, and the highest priority goes to the one that uses three deltas.
        • Up to three deltas
        • Accuracy, indicating hit/miss
        • An nMRU counter, indicating that the entry has not been used recently.
      • Of the several DPTs connected together, giving top priority to the one with the longest history when making predictions maximizes accuracy.

This is an English translation of the original Japanese post: Efficiently Prefetching Complex Address Patterns (VLDP)の論文を読む (2. 予測のための各テーブルについて)