Dealing the Interference
- By bad luck or pathological happenstance a
particular line in the cache may be highly contended.
- How can we deal with this?
24
Dealing the Interference By bad luck or pathological happenstance a - - PowerPoint PPT Presentation
Dealing the Interference By bad luck or pathological happenstance a particular line in the cache may be highly contended. How can we deal with this? 24 Interfering Code. int foo[129]; // 4*129 = 516 bytes int bar[129]; // Assume the
24
25
int foo[129]; // 4*129 = 516 bytes int bar[129]; // Assume the compiler aligns these at 512 byte boundaries while(1) { for (i = 0;i < 129; i++) { s += foo[i]*bar[i]; } }
0x000 foo ... 0x400 bar
26
27 Tag valid dirty Data Set 0 Set 1 Set 2 Set 3 Way 0 Way 1
geometry”
28
29
30
implement true randomness.
used the longest time ago.
back.
farthest in the future. This is provably optimal. It is also impossible to implement.
31
memory” They embed comparators in the memory
32
33
number of ports
34
35