Computer Architecture: Multi-Core Processors: Why? Prof. Onur Mutlu Carnegie Mellon University.

Slides:



Advertisements
Similar presentations
Multiprocessors— Large vs. Small Scale Multiprocessors— Large vs. Small Scale.
Advertisements

CS 7810 Lecture 4 Overview of Steering Algorithms, based on Dynamic Code Partitioning for Clustered Architectures R. Canal, J-M. Parcerisa, A. Gonzalez.
Data Marshaling for Multi-Core Architectures M. Aater Suleman Onur Mutlu Jose A. Joao Khubaib Yale N. Patt.
Microprocessor Microarchitecture Multithreading Lynn Choi School of Electrical Engineering.
Multithreading Peer Instruction Lecture Materials for Computer Architecture by Dr. Leo Porter is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Understanding a Problem in Multicore and How to Solve It
Computer Architecture Lecture 2: Fundamental Concepts and ISA Prof. Onur Mutlu Carnegie Mellon University Spring 2013, 1/16/2013.
Single-Chip Multiprocessor Nirmal Andrews. Case for single chip multiprocessors Advances in the field of integrated chip processing. - Gate density (More.
Multithreading and Dataflow Architectures CPSC 321 Andreas Klappenecker.
1 Lecture 9: More ILP Today: limits of ILP, case studies, boosting ILP (Sections )
Chapter 17 Parallel Processing.
Simultaneous Multithreading: Multiplying Alpha Performance Dr. Joel Emer Principal Member Technical Staff Alpha Development Group Compaq.
1 Lecture 10: ILP Innovations Today: ILP innovations and SMT (Section 3.5)
CS 7810 Lecture 24 The Cell Processor H. Peter Hofstee Proceedings of HPCA-11 February 2005.
Single-Chip Multi-Processors (CMP) PRADEEP DANDAMUDI 1 ELEC , Fall 08.
1 Instant replay  The semester was split into roughly four parts. —The 1st quarter covered instruction set architectures—the connection between software.
Hyper-Threading, Chip multiprocessors and both Zoran Jovanovic.
Computer System Architectures Computer System Software
Intel Architecture. Changes in architecture Software architecture: –Front end (Feature changes such as adding more graphics, changing the background colors,
18-447: Computer Architecture Lecture 30B: Multiprocessors Prof. Onur Mutlu Carnegie Mellon University Spring 2013, 4/22/2013.
Simultaneous Multithreading: Maximizing On-Chip Parallelism Presented By: Daron Shrode Shey Liggett.
CPE 631: Multithreading: Thread-Level Parallelism Within a Processor Electrical and Computer Engineering University of Alabama in Huntsville Aleksandar.
Multi-core architectures. Single-core computer Single-core CPU chip.
Multi-Core Architectures
1 Multi-core processors 12/1/09. 2 Multiprocessors inside a single chip It is now possible to implement multiple processors (cores) inside a single chip.
Lynn Choi School of Electrical Engineering Microprocessor Microarchitecture The Past, Present, and Future of CPU Architecture.
Is Out-Of-Order Out Of Date ? IA-64’s parallel architecture will improve processor performance William S. Worley Jr., HP Labs Jerry Huck, IA-64 Architecture.
10/27: Lecture Topics Survey results Current Architectural Trends Operating Systems Intro –What is an OS? –Issues in operating systems.
CAPS project-team Compilation et Architectures pour Processeurs Superscalaires et Spécialisés.
Parallelism: A Serious Goal or a Silly Mantra (some half-thought-out ideas)
CASH: REVISITING HARDWARE SHARING IN SINGLE-CHIP PARALLEL PROCESSOR
Super computers Parallel Processing By Lecturer: Aisha Dawood.
Computer Architecture Lecture 2: Fundamental Concepts and ISA
A few issues on the design of future multicores André Seznec IRISA/INRIA.
Multi-core processors. 2 Processor development till 2004 Out-of-order Instruction scheduling Out-of-order Instruction scheduling.
© Wen-mei Hwu and S. J. Patel, 2005 ECE 511, University of Illinois Lecture 4: Microarchitecture: Overview and General Trends.
On-chip Parallelism Alvin R. Lebeck CPS 221 Week 13, Lecture 2.
Computer Architecture: Multithreading (I) Prof. Onur Mutlu Carnegie Mellon University.
Hybrid Multi-Core Architecture for Boosting Single-Threaded Performance Presented by: Peyman Nov 2007.
EKT303/4 Superscalar vs Super-pipelined.
E6200, Fall 07, Oct 24Ambale: CMP1 Bharath Ambale Venkatesh 10/24/2007.
Computer Organization Yasser F. O. Mohammad 1. 2 Lecture 1: Introduction Today’s topics:  Why computer organization is important  Logistics  Modern.
Application Domains for Fixed-Length Block Structured Architectures ACSAC-2001 Gold Coast, January 30, 2001 ACSAC-2001 Gold Coast, January 30, 2001.
On-chip Parallelism Alvin R. Lebeck CPS 220/ECE 252.
15-740/ Computer Architecture Lecture 12: Issues in OoO Execution Prof. Onur Mutlu Carnegie Mellon University Fall 2011, 10/7/2011.
Computer Architecture Lecture 2: Fundamental Concepts and ISA Prof. Onur Mutlu Carnegie Mellon University Spring 2015, 1/14/2014.
15-740/ Computer Architecture Lecture 2: ISA, Tradeoffs, Performance Prof. Onur Mutlu Carnegie Mellon University.
740: Computer Architecture Memory Consistency Prof. Onur Mutlu Carnegie Mellon University.
Spring 2011 Parallel Computer Architecture Lecture 11: Core Fusion and Multithreading Prof. Onur Mutlu Carnegie Mellon University.
Fall 2012 Parallel Computer Architecture Lecture 4: Multi-Core Processors Prof. Onur Mutlu Carnegie Mellon University 9/14/2012.
Computer Architecture: Parallel Task Assignment
18-447: Computer Architecture Lecture 30B: Multiprocessors
15-740/ Computer Architecture Lecture 3: Performance
Prof. Onur Mutlu Carnegie Mellon University
Computer Architecture: Parallel Processing Basics
15-740/ Computer Architecture Lecture 21: Superscalar Processing
Prof. Onur Mutlu Carnegie Mellon University
Lynn Choi School of Electrical Engineering
Simultaneous Multithreading
Samira Khan University of Virginia Aug 28, 2017
Prof. Gennady Pekhimenko University of Toronto Fall 2017
Architecture & Organization 1
Hyperthreading Technology
CS775: Computer Architecture
Computer Architecture: Multithreading (I)
Architecture & Organization 1
Samira Khan University of Virginia Sep 12, 2018
Prof. Onur Mutlu Carnegie Mellon University Fall 2011, 9/30/2011
CAPS project-team Compilation et Architectures pour Processeurs Superscalaires et Spécialisés.
Samira Khan University of Virginia Jan 16, 2019
Presentation transcript:

Computer Architecture: Multi-Core Processors: Why? Prof. Onur Mutlu Carnegie Mellon University

Moore’s Law 2 Moore, “Cramming more components onto integrated circuits,” Electronics, 1965.

3

Multi-Core Idea: Put multiple processors on the same die. Technology scaling (Moore’s Law) enables more transistors to be placed on the same die area What else could you do with the die area you dedicate to multiple processors?  Have a bigger, more powerful core  Have larger caches in the memory hierarchy  Simultaneous multithreading  Integrate platform components on chip (e.g., network interface, memory controllers) …… 4

Why Multi-Core? Alternative: Bigger, more powerful single core  Larger superscalar issue width, larger instruction window, more execution units, large trace caches, large branch predictors, etc + Improves single-thread performance transparently to programmer, compiler - Very difficult to design (Scalable algorithms for improving single-thread performance elusive) - Power hungry – many out-of-order execution structures consume significant power/area when scaled. Why? - Diminishing returns on performance - Does not significantly help memory-bound application performance (Scalable algorithms for this elusive) 5

Large Superscalar+OoO vs. Multi-Core Olukotun et al., “The Case for a Single-Chip Multiprocessor,” ASPLOS

Multi-Core vs. Large Superscalar+OoO Multi-core advantages + Simpler cores  more power efficient, lower complexity, easier to design and replicate, higher frequency (shorter wires, smaller structures) + Higher system throughput on multiprogrammed workloads  reduced context switches + Higher system performance in parallel applications Multi-core disadvantages - Requires parallel tasks/threads to improve performance (parallel programming) - Resource sharing can reduce single-thread performance - Shared hardware resources need to be managed - Number of pins limits data supply for increased demand 7

Large Superscalar vs. Multi-Core Olukotun et al., “The Case for a Single-Chip Multiprocessor,” ASPLOS Technology push  Instruction issue queue size limits the cycle time of the superscalar, OoO processor  diminishing performance Quadratic increase in complexity with issue width  Large, multi-ported register files to support large instruction windows and issue widths  reduced frequency or longer RF access, diminishing performance Application pull  Integer applications: little parallelism?  FP applications: abundant loop-level parallelism  Others (transaction proc., multiprogramming): CMP better fit 8

Comparison Points… 9

Why Multi-Core? Alternative: Bigger caches + Improves single-thread performance transparently to programmer, compiler + Simple to design - Diminishing single-thread performance returns from cache size. Why? - Multiple levels complicate memory hierarchy 10

Cache vs. Core 11

Why Multi-Core? Alternative: (Simultaneous) Multithreading + Exploits thread-level parallelism (just like multi-core) + Good single-thread performance with SMT + No need to have an entire core for another thread + Parallel performance aided by tight sharing of caches - Scalability is limited: need bigger register files, larger issue width (and associated costs) to have many threads  complex with many threads - Parallel performance limited by shared fetch bandwidth - Extensive resource sharing at the pipeline and memory system reduces both single-thread and parallel application performance 12

Why Multi-Core? Alternative: Integrate platform components on chip instead + Speeds up many system functions (e.g., network interface cards, Ethernet controller, memory controller, I/O controller) - Not all applications benefit (e.g., CPU intensive code sections) 13

Why Multi-Core? Alternative: More scalable superscalar, out-of-order engines  Clustered superscalar processors (with multithreading) + Simpler to design than superscalar, more scalable than simultaneous multithreading (less resource sharing) + Can improve both single-thread and parallel application performance - Diminishing performance returns on single thread: Clustering reduces IPC performance compared to monolithic superscalar. Why? - Parallel performance limited by shared fetch bandwidth - Difficult to design 14

Clustered Superscalar+OoO Processors Clustering (e.g., Alpha integer units)  Divide the scheduling window (and register file) into multiple clusters  Instructions steered into clusters (e.g. based on dependence)  Clusters schedule instructions out-of-order, within cluster scheduling can be in-order  Inter-cluster communication happens via register files (no full bypass) + Smaller scheduling windows, simpler wakeup algorithms + Fewer ports into register files + Faster within-cluster bypass -- Extra delay when instructions require across-cluster communication 15 Kessler, “The Alpha Microprocessor,” IEEE Micro 1999.

Clustering (I) Scheduling within each cluster can be out of order 16 Brown, “Reducing Critical Path Execution Time by Breaking Critical Loops,” UT-Austin 2005.

Clustering (II) 17 Palacharla et al., “Complexity Effective Superscalar Processors,” ISCA 1997.

Clustering (III) 18 Each scheduler is a FIFO + Simpler + Can have N FIFOs (OoO w.r.t. each other) + Reduces scheduling complexity -- More dispatch stalls Inter-cluster bypass: Results produced by an FU in Cluster 0 is not individually forwarded to each FU in another cluster.

Why Multi-Core? Alternative: Traditional symmetric multiprocessors + Smaller die size (for the same processing core) + More memory bandwidth (no pin bottleneck) + Fewer shared resources  less contention between threads - Long latencies between cores (need to go off chip)  shared data accesses limit performance  parallel application scalability is limited - Worse resource efficiency due to less sharing  worse power/energy efficiency 19

Why Multi-Core? Other alternatives?  Dataflow?  Vector processors (SIMD)?  Integrating DRAM on chip?  Reconfigurable logic? (general purpose?) 20

Review: Multi-Core Alternatives Bigger, more powerful single core Bigger caches (Simultaneous) multithreading Integrate platform components on chip instead More scalable superscalar, out-of-order engines Traditional symmetric multiprocessors Dataflow? Vector processors (SIMD)? Integrating DRAM on chip? Reconfigurable logic? (general purpose?) Other alternatives? Your solution? 21

Computer Architecture Today (I) Today is a very exciting time to study computer architecture Industry is in a large paradigm shift (to multi-core and beyond) – many different potential system designs possible Many difficult problems motivating and caused by the shift  Power/energy constraints  multi-core?, accelerators?  Complexity of design  multi-core?  Difficulties in technology scaling  new technologies?  Memory wall/gap  Reliability wall/issues  Programmability wall/problem  single-core? No clear, definitive answers to these problems 22

Computer Architecture Today (II) These problems affect all parts of the computing stack – if we do not change the way we design systems No clear, definitive answers to these problems 23 Microarchitecture ISA Program/Language Algorithm Problem Runtime System (VM, OS, MM) User Logic Circuits Electrons

Computer Architecture Today (III) You can revolutionize the way computers are built, if you understand both the hardware and the software (and change each accordingly) You can invent new paradigms for computation, communication, and storage Recommended book: Kuhn, “The Structure of Scientific Revolutions” (1962)  Pre-paradigm science: no clear consensus in the field  Normal science: dominant theory used to explain things (business as usual); exceptions considered anomalies  Revolutionary science: underlying assumptions re-examined 24

… but, first … Let’s understand the fundamentals… You can change the world only if you understand it well enough…  Especially the past and present dominant paradigms  And, their advantages and shortcomings -- tradeoffs 25

Computer Architecture: Multi-Core Processors: Why? Prof. Onur Mutlu Carnegie Mellon University

Backup slides 27

Referenced Readings Moore, “Cramming more components onto integrated circuits,” Electronics, Olukotun et al., “The Case for a Single-Chip Multiprocessor,” ASPLOS Tullsen et al., “Simultaneous Multithreading: Maximizing On-Chip Parallelism,” ISCA Kessler, “The Alpha Microprocessor,” IEEE Micro Brown, “Reducing Critical Path Execution Time by Breaking Critical Loops,” UT-Austin Palacharla et al., “Complexity Effective Superscalar Processors,” ISCA Kuhn, “The Structure of Scientific Revolutions,”

Related Videos Multi-Core Systems and Heterogeneity  7BemHHV6N0ejHhwOfLwTr8Q-UKXj&index=1 7BemHHV6N0ejHhwOfLwTr8Q-UKXj&index=1  7BemHHV6N0ejHhwOfLwTr8Q-UKXj&index=2 7BemHHV6N0ejHhwOfLwTr8Q-UKXj&index=2 29