instruction prefetcher
play

Instruction Prefetcher Ali Ansari (Sharif) Fatemeh Golshan (Sharif) - PowerPoint PPT Presentation

MANA: Microarchitecting an Instruction Prefetcher Ali Ansari (Sharif) Fatemeh Golshan (Sharif) Pejman Lotfi-Kamran (IPM) Hamid Sarbazi-Azad (Sharif, IPM) Instruction Cache Misses Server applications o Multi-megabyte instruction footprint o


  1. MANA: Microarchitecting an Instruction Prefetcher Ali Ansari (Sharif) Fatemeh Golshan (Sharif) Pejman Lotfi-Kamran (IPM) Hamid Sarbazi-Azad (Sharif, IPM)

  2. Instruction Cache Misses • Server applications o Multi-megabyte instruction footprint o 25% increase in size per year [Kanev, ISCA ’ 15] • Limited capacity L1 instruction cache o 512 blocks, 32 KB Frequent L1i misses hurt performance! 2 / 18

  3. Prior Work Significant storage cost or uncovered potential! 3 / 18

  4. Contributions • Storage cost is important o Unlimited storage results in high speedup • Prefetching records o A few distinct records o Low storage demand per record • MANA o 4 K distinct prefetching records, on average o Each record ≈ 4 bytes o 24% and 26.6% speedup with 16.3 and 122 KB MANA offers considerable speedup with a limited storage! 4 / 18

  5. Outline • Introduction • Motivation • Our Proposal, MANA Prefetcher • Methodology • Evaluation • Conclusion 5 / 18

  6. Motivation • Spatial region o Trigger address + a footprint • Advantages o Covering a large address space  Few distinct prefetching records o Easily detectable  Simple design • Widely used in prior work o PIF [Ferdman, MICRO ’ 11] o RDIP [Kolli, MICRO ’ 13] o Shotgun [Kumar, ASPLOS ’ 18] Spatial region is a good prefetching record! 6 / 18

  7. Motivation (cont.) • Spatial region ’ s challenges: o Finding the successor, why?  Prefetching the trigger block  Timeliness o Storage cost  Trigger address = block address! • Prior work cannot solve these challenges effectively • MANA offers simple solutions for them MANA microarchitects the use of spatial regions! 7 / 18

  8. MANA • Spatial region is the main prefetching record o No association with other events • MANA_Table o A set-associative table to hold spatial regions o Looked up by trigger addresses • Finding the successor o The sequence of spatial regions is repetitive (PIF) o Use a pointer to the successor spatial region o Chase the pointers to discover successor spatial regions MANA: (Spatial region + a pointer) in a set-associative table! 8 / 18

  9. MANA: High-Order Bit Patterns Block Set Tag Offset Number Instruction Address 9 / 18

  10. MANA: High-Order Bit Patterns Block Partial Set HOBP Offset Tag Number Instruction Address 10 / 18

  11. MANA: High-Order Bit Patterns Block Partial Set HOBP Offset Tag Number Instruction Address HOBPs ’ HOBP Partial Tag Table index 100 b ’ 01 100 0xffa358f12b 11 / 18

  12. MANA: Recording 12 / 18

  13. MANA: Replaying 13 / 18

  14. Methodology • ChampSim Simulator • Default parameters • 32 KB, 8-way, L1 instruction cache • 50 public traces • Warmup: 50 M instructions • Evaluation: 50 M instructions • Competitors: RDIP, Shotgun, and PIF 14 / 18

  15. Evaluation 1.30 1.25 1.20 Speedup 1.15 1.10 1.05 1.00 8 16 128 8 16 128 8 16 128 8 16 128 KB KB KB KB KB KB KB KB KB KB KB KB RDIP Shotgun PIF MANA Better performance in all given storage budgets! 15 / 18

  16. Evaluation (cont.) 8 KB 16 KB 32 KB 1.8 1.6 Speedup 1.4 1.2 1.0 client client server server server server server server spec spec Avrg. Avrg. 2 7 1 9 12 16 29 36 gcc-3 x264-1 10 All MANA can effectively prefetch for small cache sizes! 16 / 18

  17. Conclusion • MANA uses spatial regions • Spatial regions are chained with pointers to each other • HOBP is used to reduce the storage cost • 24% speedup with only 16.3 KB o Significant gap with prior work o More practical design • 26.6% speedup with 122 KB 17 / 18

  18. Thank You! Any Questions?

Recommend


More recommend