SPPAM:
Signature
Pattern
Prediction and
Access-
Map Prefetcher
Maccoy Merrell, Lei Wang, Stavros Kalafatis, Paul V. Gratz
TEXAS A&M UNIVERSITY
Outline
TEXAS A&M UNIVERSITY
Introduction
[1] Lei Wang, Chia-Hang Lee, Maccoy Merrell, Gino Chacon, Daniel A. Jiménez, and Paul V. Gratz. 2025. R-Max: A Method for
Approximating the Benefit of Ideal Prefetching and Replacement Policy. IEEE Computer Architecture Letters 24, 2(2025),
293–296. doi:10.1109/LCA.2025.3611316
TEXAS A&M UNIVERSITY
Introduction
[2] Yasuo Ishii, Mary Inaba, and Kei Hiraki. 2011. Access map pattern matching for high performance data cache prefetch. Journal of Instruction-
Level Parallelism 13,2011 (2011), 1–24.
[3] Magnus Bruce. 2023. Arm Neoverse V2 platform: Leadership Performance and Power Efficiency for Next Generation Cloud Computing, ML and
HPC Workloads.IEEE.
[4] Stephan G Meier, Gerard R Williams, Hari S Kannan, and Pavlos Konas. 2015.Access map-pattern match based prefetch unit for a processor.
[5] Jinchun Kim, Seth H. Pugsley, Paul V. Gratz, A. L. Narasimha Reddy, Chris Wilk-erson, and Zeshan Chishti. 2016. Path confidence based
lookahead prefetching. InThe 49th Annual IEEE/ACM International Symposium on Microarchitecture (Taipei,Taiwan) (MICRO-49). IEEE Press,
Taipei, Taiwan, Article 60, 12 pages.
TEXAS A&M UNIVERSITY
Introduction
TEXAS A&M UNIVERSITY
Background - AMPM
TEXAS A&M UNIVERSITY
Background - AMPM
Region 0xaa
Region
0xbb
Region
0xcc
Region: 0xaa
Offset: 0x3
Set bitmap
TEXAS A&M UNIVERSITY
Background - AMPM
Region 0xaa
Region
0xbb
Region
0xcc
Region: 0xbb
Offset: 0x3
Pattern match!
Prefetch 0xbb004
Set bitmap
TEXAS A&M UNIVERSITY
Background - SPP
TEXAS A&M UNIVERSITY
Background - SPP
Region 0xaa
Region
0xbb
Region
0xcc
Last Offset
Signature
Last Offset
Signature
Last Offset
Signature
3
2
1
1
1
1
3
-2
1
-1
-1
-1
Region: 0xbb
Offset: 0x3
3
-2
1
1
3
To Pattern Table
Signature is updated
TEXAS A&M UNIVERSITY
Background - SPP
Signature
[3, -2, 1]
Delta
Signature
[1, 1, 1]
Signature
[-2, 1, 1]
Conf
1
2
3
75
43
29
Delta
Conf
1
-1
2
99
7
0
Delta
Conf
1
-2
2
80
20
5
-2
1
1
3
Signature
Delta
76
Confidence is increased
TEXAS A&M UNIVERSITY
Background - SPP
Signature
[3, -2, 1]
Delta
Signature
[1, 1, 1]
Signature
[-2, 1, 1]
Conf
1
2
3
76
43
29
Delta
Conf
1
-1
2
99
7
0
Delta
Conf
1
-2
2
80
20
5
-2
1
1
3
Signature
Prefetch +1
The new signature is used to predict the next delta
TEXAS A&M UNIVERSITY
Background - SPP
Signature
[3, -2, 1]
Delta
Signature
[1, 1, 1]
Signature
[-2, 1, 1]
Conf
1
2
3
76
43
29
Delta
Conf
2
-1
2
99
7
0
Delta
Conf
1
-2
2
80
20
5
-2
1
1
3
Lookahead Signature
Prefetch +2
1
Prefetch +1
The delta of a previous prediction can be used to generate additional deltas
TEXAS A&M UNIVERSITY
Motivation - Weaknesses
TEXAS A&M UNIVERSITY
Motivation - SPPAM
[6] S. Somogyi, T. F. Wenisch, A. Ailamaki, B. Falsafi, and A. Moshovos, ‘Spatial Memory Streaming’,
in 33rd International Symposium on Computer Architecture (ISCA’06), 2006, pp. 252–263.
TEXAS A&M UNIVERSITY
Design – Region Table
Region 0xaa
Region
0xbb
Region
0xcc
Region: 0xaa
Offset: 0x2
[1,0,1]
To Pattern Table
TEXAS A&M UNIVERSITY
Design – Pattern Table
Pattern 000
Pattern 001
[1,0,1]
Pattern …
Pattern 101
Pattern …
Prediction
Conf
000
100
010
86
43
5
Prediction
Conf
100
111
001
56
35
20
Prediction
Conf
…
…
…
…
…
…
Prediction
Conf
010
110
111
72
15
3
Prediction
Conf
…
…
…
…
…
…
Region: 0xaa
Offset: 0x2
Prefetch 0xaa at 0x4
010 can be used to perform lookahead
TEXAS A&M UNIVERSITY
Design - Learning
TEXAS A&M UNIVERSITY
Design - Learning
Region 0xaa
Access Count:
Access Timer:
7
982
0
0
!
[101], [010]
[010], [101]
[101], [010]
[010], [101]
[101], [010]
[010], [101]
[101], [010]
To Pattern Table
TEXAS A&M UNIVERSITY
Design - Learning
Pattern 000
Pattern …
Pattern 010
Pattern …
Pattern 101
Prediction
Conf
000
100
010
86
43
5
Prediction
Conf
…
…
…
…
…
…
Prediction
Conf
101
111
100
98
50
10
Prediction
Conf
…
…
…
…
…
…
Prediction
Conf
011
000
001
49
20
5
[101], [010]
[010], [101]
[101], [010]
[010], [101]
[101], [010]
[010], [101]
[101], [010]
Prediction
Conf
011
000
010
49
20
4
010
4
TEXAS A&M UNIVERSITY
Design - Learning
Pattern 000
Pattern …
Pattern 010
Pattern …
Pattern 101
Prediction
Conf
000
100
010
86
43
5
Prediction
Conf
…
…
…
…
…
…
Prediction
Conf
101
111
100
98
50
10
Prediction
Conf
…
…
…
…
…
…
Prediction
Conf
011
000
010
49
20
4
[101], [010]
[010], [101]
[101], [010]
[010], [101]
[101], [010]
[010], [101]
[101], [010]
Prediction
Conf
101
111
100
51
25
5
51
25
5
TEXAS A&M UNIVERSITY
Design - Lookahead
TEXAS A&M UNIVERSITY
Design - Lookahead
010011
011011
TEXAS A&M UNIVERSITY
Design - Lookahead
010011
011011
111101
TEXAS A&M UNIVERSITY
Design - Lookahead
011011
111101
101111
010011
TEXAS A&M UNIVERSITY
Design - Lookahead
110110
4 table references
18 prefetch targets
011011
111101
010011
101111
TEXAS A&M UNIVERSITY
Design - Filtering
TEXAS A&M UNIVERSITY
Design - Overview
[8] Mohammad Bakhshalipour, Mehran Shakerinava, Pejman Lotfi-Kamran, and Hamid Sarbazi-Azad. 2019. Bingo Spatial Data Prefetcher. In 2019
IEEE Interna-tional Symposium on High Performance Computer Architecture (HPCA). 399–411.doi:10.1109/HPCA.2019.00053
[9] Agustín Navarro-Torres, Biswabandan Panda, Jesús Alastruey-Benedé, PabloIbáñez, Víctor Viñals-Yúfera, and Alberto Ros. 2022. Berti: an
Accurate Local-Delta Data Prefetcher. In 2022 55th IEEE/ACM Int. Symp. on Microarchitecture.IEEE Press, Chicago, IL, USA, 975–991.
doi:10.1109/MICRO56248.2022.00072
TEXAS A&M UNIVERSITY
Evaluation – Single Core�Speedup over Berti + Pythia – Geomean: 6.2, 5.9%
TEXAS A&M UNIVERSITY
Evaluation – Multi Core�Speedup over Berti + Pythia – Geomean: -2.12%
TEXAS A&M UNIVERSITY
Conclusion
[10] M. Sutherland, A. Kannan, and N. Enright Jerger, ‘Not Quite My Tempo: Matching Prefetches to
Memory Access Times’, 06 2015.
TEXAS A&M UNIVERSITY
Q/A
TEXAS A&M UNIVERSITY
Background - Comparison
[2,-1,3]
1001001001
TEXAS A&M UNIVERSITY
Design - Filtering
[7] Viji Srinivasan, E.S. Davidson, and G.S. Tyson. 2004. A prefetch taxonomy. IEEETrans. Comput. 53, 2 (2004), 126–140.
doi:10.1109/TC.2004.1261824
[1] Lei Wang, Chia-Hang Lee, Maccoy Merrell, Gino Chacon, Daniel A. Jiménez, andPaul V. Gratz. 2025. R-Max: A Method for
Approximating the Benefit of Ideal Prefetching and Replacement Policy. IEEE Computer Architecture Letters 24, 2(2025),
293–296. doi:10.1109/LCA.2025.3611316
TEXAS A&M UNIVERSITY
Design
TEXAS A&M UNIVERSITY
Design – Learning
TEXAS A&M UNIVERSITY
Design – Learning
TEXAS A&M UNIVERSITY