HPCA-8: 1 February 5, 2002
A New Cache Monitoring Scheme for Memory-Aware Scheduling and Partitioning
- G. Edward Suh
A New Cache Monitoring Scheme for Memory-Aware Scheduling and - - PowerPoint PPT Presentation
A New Cache Monitoring Scheme for Memory-Aware Scheduling and Partitioning G. Edward Suh Srinivas Devadas Larry Rudolph Massachusetts Institute of Technology February 5, 2002 HPCA-8: 1 Problem Memory system performance is critical
HPCA-8: 1 February 5, 2002
HPCA-8: 2 February 5, 2002
HPCA-8: 3 February 5, 2002
HPCA-8: 4 February 5, 2002
HPCA-8: 5 February 5, 2002
100 50 0.2 0.4 0.6 0.8 1 Cache Space (%) Miss-rate
HPCA-8: 6 February 5, 2002
50 100 0.2 0.4 0.6 0.8 1 Cache Space (%) Miss-rate 50 100 0.2 0.4 0.6 0.8 1 Cache Space (%) Miss-rate
Process A Process B cA cB
Cache Allocation A B
HPCA-8: 7 February 5, 2002
987 409 282 250 2111 1568 746 104
500 1000 1500 2000 2500 1 2 3 4 Cache Space (Blocks) Marginal Gain (Hits) Process A Process B
Cache Allocation
B
B
A
B
HPCA-8: 8 February 5, 2002
HPCA-8: 9 February 5, 2002
50 100 0.2 0.4 0.6 0.8 1 Cache Space (%) Miss-rate 50 100 0.2 0.4 0.6 0.8 1 Cache Space (%) Miss-rate 50 100 0.2 0.4 0.6 0.8 1 Cache Space (%) Miss-rate 100 50 0.2 0.4 0.6 0.8 1 Cache Space (%) Miss-rate
Process A Process B Process D Process C
HPCA-8: 10 February 5, 2002
987 409 282 250 2111 1568 746 104
500 1000 1500 2000 2500 1 2 3 4 Cache Space (Blocks) Marginal Gain (Hits) Process A Process B
Cache Allocation
Cache Allocation
HPCA-8: 11 February 5, 2002
HPCA-8: 12 February 5, 2002
0.02 0.025 0.03 0.035 0.04 0.045 0.05 1 10 100 1000 10000 100000 1000000 Time Quantum (# of cache accesses) Miss-rate LRU Partition
HPCA-8: 13 February 5, 2002
HPCA-8: 14 February 5, 2002
2432 350 912
1
LRU Order LRU Order
2
LRU Order
3
LRU Order
722 124 Hit on the 3rd MRU Cache Block Increment the 3th Counter Access Counter 350 2
LRU Order LRU Order
1
LRU Order
351 2432 2433 Increment the 1st Counter 2433 2434 912 913 Hit on the MRU Cache Block
913 722 351 124
250 500 750 1000 1 2 3 Cache Space (Blocks) Marginal Gain
Marginal-Gain Counters Cache Blocks
HPCA-8: 15 February 5, 2002
HPCA-8: 16 February 5, 2002
1 4-way Associative Cache 2 3 1 3 2 … … … …
Way Counters 4384 376 121 31 Access Counter 5012 Hit on the MRU Cache Block Increment the 1st Counter 4385 5013 Hit on the 2nd MRU Cache Block Increment the 2nd Counter
1 0.123 0.0477 0.0234 0.0171 0.2 0.4 0.6 0.8 1 256 512 768 1024 Cache Size (Blocks) Miss-Rate Way-Counter Fully-Associative
1 3 2 377 5014 5014
HPCA-8: 17 February 5, 2002
1 2-way Associative Cache 1 1 1 … … 1 1 Counters 2132 5248 377 1073 283 431 31 Access Counter … … 1 Group 0 Group 1 Group S’ 8 Increment the Counter (0,1) Hit on the MRU way the 2nd MRU group 1074 5249 1
256 512 768 1024 0.2 0.4 0.6 0.8 1 Cache Size (Blocks) Miss-Rate Way-Counter (2-way) Way+Set (8 Groups) Way+Set (16 Groups) Fully-Associative
HPCA-8: 18 February 5, 2002