Precise and Accurate Processor Simulation Harold Cain, Kevin Lepak, Brandon Schwartz, and Mikko H. Lipasti University of Wisconsin—Madison

Slides:



Advertisements
Similar presentations
Full-System Timing-First Simulation Carl J. Mauer Mark D. Hill and David A. Wood Computer Sciences Department University of Wisconsin—Madison.
Advertisements

Computer Structure 2014 – Out-Of-Order Execution 1 Computer Structure Out-Of-Order Execution Lihu Rappoport and Adi Yoaz.
Combining Statistical and Symbolic Simulation Mark Oskin Fred Chong and Matthew Farrens Dept. of Computer Science University of California at Davis.
PERFORMANCE ANALYSIS OF MULTIPLE THREADS/CORES USING THE ULTRASPARC T1 (NIAGARA) Unique Chips and Systems (UCAS-4) Dimitris Kaseridis & Lizy K. John The.
(C) 2001 Daniel Sorin Correctly Implementing Value Prediction in Microprocessors that Support Multithreading or Multiprocessing Milo M.K. Martin, Daniel.
Sim-alpha: A Validated, Execution-Driven Alpha Simulator Rajagopalan Desikan, Doug Burger, Stephen Keckler, Todd Austin.
Advanced Computer Architecture Lab University of Michigan MASE Eric Larson MASE: Micro Architectural Simulation Environment Eric Larson, Saugata Chatterjee,
Chapter 8. Pipelining. Instruction Hazards Overview Whenever the stream of instructions supplied by the instruction fetch unit is interrupted, the pipeline.
Accurately Approximating Superscalar Processor Performance from Traces Kiyeon Lee, Shayne Evans, and Sangyeun Cho Dept. of Computer Science University.
Helper Threads via Virtual Multithreading on an experimental Itanium 2 processor platform. Perry H Wang et. Al.
Enabling Efficient On-the-fly Microarchitecture Simulation Thierry Lafage September 2000.
Computer Architecture 2011 – Out-Of-Order Execution 1 Computer Architecture Out-Of-Order Execution Lihu Rappoport and Adi Yoaz.
CS 7810 Lecture 23 Maximizing CMP Throughput with Mediocre Cores J. Davis, J. Laudon, K. Olukotun Proceedings of PACT-14 September 2005.
WCED: June 7, 2003 Matt Ramsay, Chris Feucht, & Mikko Lipasti University of Wisconsin-MadisonSlide 1 of 26 Exploring Efficient SMT Branch Predictor Design.
NoC Modeling Networks-on-Chips seminar May, 2008 Anton Lavro.
A Dynamic Binary Translation Approach to Architectural Simulation Harold “Trey” Cain, Kevin Lepak, and Mikko Lipasti Computer Sciences Department Department.
1 Interfacing Processors and Peripherals I/O Design affected by many factors (expandability, resilience) Performance: — access latency — throughput — connection.
Disco Running Commodity Operating Systems on Scalable Multiprocessors.
EECS 470 Superscalar Architectures and the Pentium 4 Lecture 12.
Techniques for Efficient Processing in Runahead Execution Engines Onur Mutlu Hyesoon Kim Yale N. Patt.
Vir. Mem II CSE 471 Aut 011 Synonyms v.p. x, process A v.p. y, process B v.p # index Map to same physical page Map to synonyms in the cache To avoid synonyms,
Feb 14 th 2005University of Utah1 Microarchitectural Wire Management for Performance and Power in Partitioned Architectures Rajeev Balasubramonian Naveen.
Xen and the Art of Virtualization. Introduction  Challenges to build virtual machines Performance isolation  Scheduling priority  Memory demand  Network.
Improving the Performance of Object-Oriented Languages with Dynamic Predication of Indirect Jumps José A. Joao *‡ Onur Mutlu ‡* Hyesoon Kim § Rishi Agarwal.
1 Instant replay  The semester was split into roughly four parts. —The 1st quarter covered instruction set architectures—the connection between software.
A Low-Complexity, High-Performance Fetch Unit for Simultaneous Multithreading Processors Ayose Falcón Alex Ramirez Mateo Valero HPCA-10 February 18, 2004.
DBMSs On A Modern Processor: Where Does Time Go? by A. Ailamaki, D.J. DeWitt, M.D. Hill, and D. Wood University of Wisconsin-Madison Computer Science Dept.
Simultaneous Multithreading: Maximizing On-Chip Parallelism Presented By: Daron Shrode Shey Liggett.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Korea Univ B-Fetch: Branch Prediction Directed Prefetching for In-Order Processors 컴퓨터 · 전파통신공학과 최병준 1 Computer Engineering and Systems Group.
Accurate Analytical Modeling of Superscalar Processors J. E. Smith Tejas Karkhanis.
Statistical Simulation of Superscalar Architectures using Commercial Workloads Lieven Eeckhout and Koen De Bosschere Dept. of Electronics and Information.
Dynamic Verification of Cache Coherence Protocols Jason F. Cantin Mikko H. Lipasti James E. Smith.
NATIONAL INSTITUTE OF TECHNOLOGY KARNATAKA,SURATHKAL Presentation on ZSIM: FAST AND ACCURATE MICROARCHITECTURAL SIMULATION OF THOUSAND-CORE SYSTEMS Publisher’s:
Hardware Multithreading. Increasing CPU Performance By increasing clock frequency By increasing Instructions per Clock Minimizing memory access impact.
Architectural Characterization of an IBM RS6000 S80 Server Running TPC-W Workloads Lei Yang & Shiliang Hu Computer Sciences Department, University of.
Architectural Characterization of an IBM RS6000 S80 Server Running TPC-W Workloads Lei Yang & Shiliang Hu Computer Sciences Department, University of.
Performance Prediction for Random Write Reductions: A Case Study in Modelling Shared Memory Programs Ruoming Jin Gagan Agrawal Department of Computer and.
On the Value Locality of Store Instructions Kevin M. Lepak Mikko H. Lipasti University of Wisconsin—Madison
Effects of wrong path mem. ref. in CC MP Systems Gökay Burak AKKUŞ Cmpe 511 – Computer Architecture.
Feb 14 th 2005University of Utah1 Microarchitectural Wire Management for Performance and Power in Partitioned Architectures Rajeev Balasubramonian Naveen.
Simics: A Full System Simulation Platform Synopsis by Jen Miller 19 March 2004.
© Michel Dubois, Murali Annavaram, Per Strenstrom All rights reserved Embedded Computer Architecture 5SAI0 Simulation - chapter 9 - Luc Waeijen 16 Nov.
Precise and Accurate Processor Simulation Harold Cain, Kevin Lepak, Brandon Schwartz, and Mikko H. Lipasti University of Wisconsin—Madison
Branch Prediction Prof. Mikko H. Lipasti University of Wisconsin-Madison Lecture notes based on notes by John P. Shen Updated by Mikko Lipasti.
Protection of Processes Security and privacy of data is challenging currently. Protecting information – Not limited to hardware. – Depends on innovation.
An Architectural Evaluation of Java TPC-W Harold “Trey” Cain, Ravi Rajwar, Morris Marden, Mikko Lipasti University of Wisconsin-Madison
Prophet/Critic Hybrid Branch Prediction B B B
CS717 1 Hardware Fault Tolerance Through Simultaneous Multithreading (part 2) Jonathan Winter.
ECE/CS 552: Pipeline Hazards © Prof. Mikko Lipasti Lecture notes based in part on slides created by Mark Hill, David Wood, Guri Sohi, John Shen and Jim.
Running Commodity Operating Systems on Scalable Multiprocessors Edouard Bugnion, Scott Devine and Mendel Rosenblum Presentation by Mark Smith.
Co-Designing Accelerators and SoC Interfaces using gem5-Aladdin
Computer Organization CS224
Introduction to SimpleScalar
Jason F. Cantin, Mikko H. Lipasti, and James E. Smith
Hyperthreading Technology
Agenda Why simulation Simulation and model Instruction Set model
Lecture 14 Virtual Memory and the Alpha Memory Hierarchy
Hardware Multithreading
Comparison of Two Processors
Virtual Memory Overcoming main memory size limitation
Avoiding Initialization Misses to the Heap
CSC3050 – Computer Architecture
Introduction to Virtual Machines
Co-designed Virtual Machines for Reliable Computer Systems
Introduction to Virtual Machines
The University of Adelaide, School of Computer Science
Lois Orosa, Rodolfo Azevedo and Onur Mutlu
Spring 2019 Prof. Eric Rotenberg
Srinivas Neginhal Anantharaman Kalyanaraman CprE 585: Survey Project
Presentation transcript:

Precise and Accurate Processor Simulation Harold Cain, Kevin Lepak, Brandon Schwartz, and Mikko H. Lipasti University of Wisconsin—Madison

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Performance Modeling Analytical models Queuing models Simulation Trace-driven Execution-driven Full system Why? Most widely used in academic research Perceived accuracy and precision

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Precision, Accuracy, Flexibility Precision How closely simulator matches design Latency, bandwidth, resource occupancy, etc. Accuracy How closely simulation matches reality Requires precision Also requires replication of real-world conditions, inputs Flexibility? Enables exploration of broad design space

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Uses for Simulation Design and Implementation Verification High-level Design Microarchitectural Definition Design Space Exploration Quantitative Tradeoff AnalysisFunctional validation Late design changes Performance Validation Precision Flexibility Academic Research Accuracy???

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Causes of Inaccuracy Many possible causes Software differences Hardware differences System effects Time dilation: interaction with physical world Here, we consider: Operating system code DMA traffic (in paper) Wrong-path effects

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Validating Accuracy How do we validate? Against real hardware with perf. counters Different “input” since O/S now present Against HDL Same input as timer model, same error? Without full system simulation, cannot: Replicate runtime environment Cannot really validate accuracy Compensating errors mask inaccuracy Hence: build simulator that does not cheat

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti PharmSim Overview Device simulation, etc. from SimOS-PPC PharmSim replaces functional simulators Full OOO core model, values in rename registers Based on SimpleMP [Rajwar] Adds VM, TLB, exceptions, interrupts, barriers, etc. Block Simple PharmSim -OOO Core -Gigaplane SimOS-PPC -AIX Disk driver -E’net driver Ethernet

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti PharmSim Pipeline DecodeExecute CommitMem FetchTranslate Substantially similar to IBM Power4 Some instructions “cracked” (1:2 expansion) Others (e.g. lmw) microcode stream Mem Stage Interface to 2-level cache model Sun Gigaplane XB snoopy MP coherence Caches contain values, must remain coherent No cheating! No “flat” memory model for reference/redirect

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Operating System Effects Fairly well-understood for commercial: Must account for O/S references For SPEC? Widely accepted: Safe to ignore O/S paths Most popular tool (Simplescalar) Intercepts system calls Emulates on host, updates “flat” memory Returns “magically” with caches intact Is this really OK?

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Operating System Effects References ModeledExample User-mode onlyAtom User + Shared librarySimplescalar with static link User + Sh Lib + O/SH/W bus trace User + Sh Lib + O/S + cache control ops PharmSim

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Operating System Effects Dramatic error (5.8x in mcf, 2-3x commonplace) Note compensating errors (e.g. crafty, gzip, perl) IPC error > 100% (more detail at ISCA) 5.8x

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Wrong-path Execution Multiple effects on unarchitected state Pollute/prefetch I-cache, D-cache, TLB Pollute/train branch predictor (BHR, PHT, RAS) PharmSim: BHR is updated and repaired PHT is not updated speculatively RAS is updated, no repair No speculative TLB fill How can we filter wrong-path instructions? No “cheating”: don’t know branch outcomes 25% - 40% instructions are wrong-path

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Wrong-path Memory Stalls Minor effect: better or worse

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Wrong-path RAS Accuracy Prediction accuracy degrades up to 29% Could add fixup logic

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Wrong-path IPC Negligible effect (0.9%) RAS mispredictions overlapped

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Summary PharmSim Simulator that does not cheat Can be used to validate assumptions, simplifications, abstractions Evaluated three effects on accuracy O/S: dramatic error, even for SPECINT DMA: not important for uniprocessors MP, bus-constrained results TBD Wrong path: unimportant

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Conclusions Ignoring O/S effects fraught with danger Should always model O/S effects Trace-driven vs. execution-driven Traces with O/S much better Invest in Trace quality vs. Complexity of execution-driven simulation Precision without accuracy? Of questionable value Validation difficult due to compensating errors Hard to know if model is precise or accurate

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti Wrong-path Instructions Aggressive core model; 25%-40% wrong-path

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti DMA Traffic How do we support DMA? No “flat” memory image in simulator Lines may be in caches Invalidate Read Must use existing coherence Everything has to work correctly No subtle coherence bugs How much does this matter? Affects cache miss rates Introduces bus contention

February 2, 2002Precise and Accurate Processor Simulation--Mikko Lipasti DMA Traffic PharmSim incorporates accurate DMA engine: Issues bus invalidates, snoops Concurrent data transfer: No “magic” flat memory Bottom line: Unimportant for SPEC Unimportant for SPECWEB, SPECJBB Others in progress Contrived multiprogrammed workload 4.8% of all coherence traffic due to I/O, 1% IPC effect Results understated due to “overbuilt” MP bus MP workloads likely much more sensitive Additional evaluation in progress