+ All Categories
Home > Documents > CS 7810 Lecture 13

CS 7810 Lecture 13

Date post: 08-Feb-2016
Category:
Upload: aldon
View: 37 times
Download: 2 times
Share this document with a friend
Description:
CS 7810 Lecture 13. Pipeline Gating: Speculation Control For Energy Reduction S. Manne, A. Klauser, D. Grunwald Proceedings of ISCA-25 June 1998. Cost of Speculation. Mispredict rates . 9.9. 12.2. 23.9. 10.4. 6.9. 4.6. 11.3. 1.7. Pipeline Gating. - PowerPoint PPT Presentation
Popular Tags:
21
CS 7810 Lecture 13 Pipeline Gating: Speculation Control For Energy Reduction S. Manne, A. Klauser, D. Grunwald Proceedings of ISCA-25 June 1998
Transcript
Page 1: CS 7810    Lecture 13

CS 7810 Lecture 13

Pipeline Gating: Speculation Control For Energy Reduction

S. Manne, A. Klauser, D. GrunwaldProceedings of ISCA-25

June 1998

Page 2: CS 7810    Lecture 13

Cost of Speculation

9.9 12.2 23.9 10.4 6.9 4.6 11.3 1.7Mispredict rates

Page 3: CS 7810    Lecture 13

Pipeline Gating

• Low confidence branches throttle instr fetch until they are resolved

• Pipeline gating usually lasts for fewer than five cycles

Page 4: CS 7810    Lecture 13

Metrics

• SPEC (specificity): fraction of all mispredicted branches detected as low-confidence by the confidence estimator (coverage)

• PVN (predictive value of a negative test): probability of a low-confidence branch being incorrectly branch-predicted (accuracy)

Page 5: CS 7810    Lecture 13

Confidence Estimators

• Perfect: to gauge potential benefits

• Static: branches that have low prediction rates

• JRS: if a branch has yielded N successive correct predictions, it has high confidence

• Saturating counters: unbiased counter value or disagreement in two predictors low confidence

• Distance: mpreds are clustered, hence the first 4 branches after a mispredict have low confidence

Page 6: CS 7810    Lecture 13

SPEC and PVN

• It is easier to achieve a high SPEC value than PVN• A high PVN value can be achieved by using N low-confidence branches to invoke gating – if PVN is 30%, re-defining low-confidence as two low-confidence branches increases PVN to 51%

SPEC (coverage): mispred branches detected by low-confidence estimatorPVN (accuracy): % of low-confidence branches that are branch mpreds

Page 7: CS 7810    Lecture 13

Perfect

Page 8: CS 7810    Lecture 13

Gating Results

Page 9: CS 7810    Lecture 13

Results

• Can gating improve performance? – only if cache pollution is significant

• Less than 1% performance loss and up to 38% reduction in extra work

• Energy consumption could go up – some work is independent of number of executed instrs (clock distribution) – incr. execution time can incr. Energy

• Pipeline gating should reduce power consumption

Page 10: CS 7810    Lecture 13

Results

Page 11: CS 7810    Lecture 13

CS 7810 Lecture 13

Cache Decay: Exploiting Generational Behaviorto Reduce Cache Leakage Power

S. Kaxiras, Z. Hu, M. MartonosiProceedings of ISCA-28

July 2001

Page 12: CS 7810    Lecture 13

Leakage Power Trends

• Circuit delay 1/(V – Vth)

• Leakage num transistors (incr) supply voltage (decr) (exp) low thresh. voltage (incr)

• L1 and L2 caches are the biggest contributors (high transistor budgets)

Page 13: CS 7810    Lecture 13

Vdd-Gating

• Leakage can be reduced by gating off the supply voltage to the circuit

• When applied to a cache, the contents of the SRAM cell are lost

• Cache decay: apply Vdd-gating when you do not care about cache contents

Page 14: CS 7810    Lecture 13

Lifetime of a Cache Line

Page 15: CS 7810    Lecture 13

Overheads

• Hardware to determine when to decay

• Introduces additional cache misses

• Normalized cache leakage power = Activeratio (fraction of cache that is powered on) + (Counter overhead : Leak) x activity + (L2 access energy : Leak) x num-misses

• Increased execution time (< 0.7%)

• L2 access/leakage ratio is ~9

Page 16: CS 7810    Lecture 13

Skier’s Dilemma

New skis: $400 Ski rentals: $20

Heuristic: Buy skis after rental cost = purchase price

Ski trips: 5 10 15 20 25 50Optimal: $100 $200 $300 $400 $400 $400Heuristic: $100 $200 $300 $800 $800 $800

Likewise, decay a cache line when the cost of anadditional miss equals leakage dissipated so far

Page 17: CS 7810    Lecture 13

Tracking Dead Time

• Each line has a 2-bit counter that gets reset on every access and gets incremented every 2500 cycles through a global signal (negligible overhead)

• After 10,000 clock cycles, the counter reaches the max value and triggers a decay

• Adaptive decay: Start with a short decay period; if you have a quick miss, double the period; if there is no miss, halve the period

Page 18: CS 7810    Lecture 13

Results

Page 19: CS 7810    Lecture 13

Overheads

Page 20: CS 7810    Lecture 13

Other Results

• L2 cache is equally suitable to decay techniques -- lifetimes are scaled by a factor of 10, an extra miss also costs a lot more

• For their experiments, there is little interference from multiprogramming

• Some instructions can easily be identified as last touches to a cache block – potential for early cache decay

• Can this apply to bpred, register file?

Page 21: CS 7810    Lecture 13

Title

• Bullet


Recommended