Question
1) a) Stride prefetching is a hardware prefetching mechanism that identies memory access patterns that are predictable and one stride apart from each other. For
1)
a) Stride prefetching is a hardware prefetching mechanism that identies memory access patterns that are
predictable and one stride apart from each other. For example, a loop that accesses address A, then
A+8, A+16, A+24, and so on. Another example would be: A, A+2, A+4, A+8, A+16, A+32, and so
on. Write a for loop where the hardware stride prefetching would work eectively.
b) Naturally, a stride prefetching would not work for a pointer-based data structure. For example, traversing
a linked-list, the processor would not be able to prefetch the next element when processing the current
one. Describe a prefetching mechanism that could overcome this problem.
c) Could prefetching increase cache misses? Explain how.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started