Computer Systems Architecture

Similar documents
Computer Systems Architecture

Handout 3 Multiprocessor and thread level parallelism

Chap. 4 Multiprocessors and Thread-Level Parallelism

COEN-4730 Computer Architecture Lecture 08 Thread Level Parallelism and Coherence

Multiprocessors and Thread-Level Parallelism. Department of Electrical & Electronics Engineering, Amrita School of Engineering

3/13/2008 Csci 211 Lecture %/year. Manufacturer/Year. Processors/chip Threads/Processor. Threads/chip 3/13/2008 Csci 211 Lecture 8 4

Multiprocessors 1. Outline

Parallel Computer Architecture Spring Shared Memory Multiprocessors Memory Coherence

EITF20: Computer Architecture Part 5.2.1: IO and MultiProcessor

Multiprocessors & Thread Level Parallelism

ESE 545 Computer Architecture Symmetric Multiprocessors and Snoopy Cache Coherence Protocols CA SMP and cache coherence

Computer and Information Sciences College / Computer Science Department CS 207 D. Computer Architecture. Lecture 9: Multiprocessors

Multiple Issue and Static Scheduling. Multiple Issue. MSc Informatics Eng. Beyond Instruction-Level Parallelism

Computer Architecture. A Quantitative Approach, Fifth Edition. Chapter 5. Multiprocessors and Thread-Level Parallelism

Computer and Information Sciences College / Computer Science Department CS 207 D. Computer Architecture. Lecture 9: Multiprocessors

MULTIPROCESSORS AND THREAD-LEVEL. B649 Parallel Architectures and Programming

MULTIPROCESSORS AND THREAD-LEVEL PARALLELISM. B649 Parallel Architectures and Programming

Shared Symmetric Memory Systems

COSC4201 Multiprocessors

MULTIPROCESSORS AND THREAD-LEVEL PARALLELISM (PART 1)

CISC 662 Graduate Computer Architecture Lectures 15 and 16 - Multiprocessors and Thread-Level Parallelism

10 Parallel Organizations: Multiprocessor / Multicore / Multicomputer Systems

Page 1. Instruction-Level Parallelism (ILP) CISC 662 Graduate Computer Architecture Lectures 16 and 17 - Multiprocessors and Thread-Level Parallelism

Comp. Org II, Spring

Parallel Processors. The dream of computer architects since 1950s: replicate processors to add performance vs. design a faster processor

Parallel Processing & Multicore computers

Comp. Org II, Spring

Parallel Computers. CPE 631 Session 20: Multiprocessors. Flynn s Tahonomy (1972) Why Multiprocessors?

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

CSE502 Graduate Computer Architecture. Lec 22 Goodbye to Computer Architecture and Review

Advanced Topics in Computer Architecture

Multiprocessors. Flynn Taxonomy. Classifying Multiprocessors. why would you want a multiprocessor? more is better? Cache Cache Cache.

Introduction II. Overview

Computer Science 146. Computer Architecture

Chapter Seven. Idea: create powerful computers by connecting many smaller ones

Aleksandar Milenkovich 1

Chapter-4 Multiprocessors and Thread-Level Parallelism

COSC 6385 Computer Architecture - Thread Level Parallelism (I)

Motivation for Parallelism. Motivation for Parallelism. ILP Example: Loop Unrolling. Types of Parallelism

Multiprocessor Cache Coherence. Chapter 5. Memory System is Coherent If... From ILP to TLP. Enforcing Cache Coherence. Multiprocessor Types

Chapter 5. Multiprocessors and Thread-Level Parallelism

Module 18: "TLP on Chip: HT/SMT and CMP" Lecture 39: "Simultaneous Multithreading and Chip-multiprocessing" TLP on Chip: HT/SMT and CMP SMT

Non-uniform memory access machine or (NUMA) is a system where the memory access time to any region of memory is not the same for all processors.

Aleksandar Milenkovic, Electrical and Computer Engineering University of Alabama in Huntsville

Computer parallelism Flynn s categories

Lecture 30: Multiprocessors Flynn Categories, Large vs. Small Scale, Cache Coherency Professor Randy H. Katz Computer Science 252 Spring 1996

THREAD LEVEL PARALLELISM

CS 590: High Performance Computing. Parallel Computer Architectures. Lab 1 Starts Today. Already posted on Canvas (under Assignment) Let s look at it

Mul$processor Architecture. CS 5334/4390 Spring 2014 Shirley Moore, Instructor February 4, 2014

WHY PARALLEL PROCESSING? (CE-401)

Outline. EEL 5764 Graduate Computer Architecture. Chapter 4 - Multiprocessors and TLP. Déjà vu all over again?

Multiprocessors - Flynn s Taxonomy (1966)

COSC 6385 Computer Architecture - Multi Processor Systems

Introduction to Multiprocessors (Part I) Prof. Cristina Silvano Politecnico di Milano

Lecture 24: Virtual Memory, Multiprocessors

Serial. Parallel. CIT 668: System Architecture 2/14/2011. Topics. Serial and Parallel Computation. Parallel Computing

Lecture 23: Thread Level Parallelism -- Introduction, SMP and Snooping Cache Coherence Protocol

Limitations of parallel processing

Organisasi Sistem Komputer

Parallel Processing. Computer Architecture. Computer Architecture. Outline. Multiple Processor Organization

Computer Architecture

1. Memory technology & Hierarchy

Computing architectures Part 2 TMA4280 Introduction to Supercomputing

Parallel Architecture. Hwansoo Han

Chapter 5. Thread-Level Parallelism

CSC 631: High-Performance Computer Architecture

Chapter 5. Multiprocessors and Thread-Level Parallelism

UNIT I (Two Marks Questions & Answers)

COSC4201. Multiprocessors and Thread Level Parallelism. Prof. Mokhtar Aboelaze York University

Computer Architecture Spring 2016

Chapter 18 Parallel Processing

CSCI 4717 Computer Architecture

Computer Organization. Chapter 16

Chapter 5 Thread-Level Parallelism. Abdullah Muzahid

Online Course Evaluation. What we will do in the last week?

Introduction to Parallel Computing

Module 9: Addendum to Module 6: Shared Memory Multiprocessors Lecture 17: Multiprocessor Organizations and Cache Coherence. The Lecture Contains:

Fall 2012 EE 6633: Architecture of Parallel Computers Lecture 4: Shared Address Multiprocessors Acknowledgement: Dave Patterson, UC Berkeley

EN164: Design of Computing Systems Topic 08: Parallel Processor Design (introduction)

Computer Architecture Lecture 27: Multiprocessors. Prof. Onur Mutlu Carnegie Mellon University Spring 2015, 4/6/2015

Multithreading: Exploiting Thread-Level Parallelism within a Processor

18-447: Computer Architecture Lecture 30B: Multiprocessors. Prof. Onur Mutlu Carnegie Mellon University Spring 2013, 4/22/2013

Lect. 2: Types of Parallelism

Multiprocessors and Locking

Parallel Architectures

Processor Architecture and Interconnect

Chapter 6. Parallel Processors from Client to Cloud Part 2 COMPUTER ORGANIZATION AND DESIGN. Homogeneous & Heterogeneous Multicore Architectures

Flynn s Classification

Module 5 Introduction to Parallel Processing Systems

TDT 4260 lecture 3 spring semester 2015

Lecture 9: MIMD Architectures

Introduction to parallel computers and parallel programming. Introduction to parallel computersand parallel programming p. 1

CS 654 Computer Architecture Summary. Peter Kemper

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. 5 th. Edition. Chapter 6. Parallel Processors from Client to Cloud

SMD149 - Operating Systems - Multiprocessing

Overview. SMD149 - Operating Systems - Multiprocessing. Multiprocessing architecture. Introduction SISD. Flynn s taxonomy

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT-1

Parallel Processing SIMD, Vector and GPU s cont.

Lecture 17: Multiprocessors. Topics: multiprocessor intro and taxonomy, symmetric shared-memory multiprocessors (Sections )

Lecture 9: MIMD Architectures

Transcription:

Computer Systems Architecture Lecture 23 Mahadevan Gomathisankaran April 27, 2010 04/27/2010 Lecture 23 CSCE 4610/5610 1

Reminder ABET Feedback: http://www.cse.unt.edu/exitsurvey.cgi?csce+4610+001 Student Evaluation (SETE): http://my.unt.edu 04/27/2010 Lecture 23 CSCE 4610/5610 2

Improving Performance: So Far... Limits to ILP (power efficiency, compilers, dependencies) seem to limit to 3 to 6 issue for practical options Explicitly parallel (Data level parallelism or Thread level parallelism) is next step to performance Coarse grain vs. Fine grained multithreading Only on big stall vs. every clock cycle Simultaneous Multithreading is fine grained multithreading based on OOO superscalar microarchitecture Instead of replicating registers, reuse rename registers Itanium/EPIC/VLIW is not a breakthrough in ILP Balance of ILP and TLP decided in marketplace 04/27/2010 Lecture 23 CSCE 4610/5610 3

Uniprocessor Limitations 04/27/2010 Lecture 23 CSCE 4610/5610 4

The way forward Intel Roadmap: Paul Otellini (2005) We are dedicating all of our future product development to multicore designs. This is a sea change in computing. 04/27/2010 Lecture 23 CSCE 4610/5610 5

Why Multiprocessing Growth in data-intensive applications Data bases, file servers, etc. Growing interest in servers, server performance Increasing desktop performance less important Outside of graphics Improved understanding in how to use multiprocessors effectively Especially server where significant natural TLP Advantage of leveraging design investment by replication Rather than unique design 04/27/2010 Lecture 23 CSCE 4610/5610 6

Taxonomy Flynn s Classifications SISD: Instruction level parallelism (Superscalar OOO processors) SIMD: Data level parallelism (Vector processors) MIMD: Thread level parallelism (clusters, SMP servers) MISD: no application 04/27/2010 Lecture 23 CSCE 4610/5610 7

Parallel Architectures A parallel computer is a collection of processing elements that cooperate and communicate to solve large problems fast Parallel Architecture = Computer Architecture + Communication Architecture Classes based on memory design Centralized memory multiprocessor SMP, UMA Distributed memory multiprocessor Shared address space (NUMA) Multiple address spaces (Message Passing) 04/27/2010 Lecture 23 CSCE 4610/5610 8

Centralized shared-memory MP 04/27/2010 Lecture 23 CSCE 4610/5610 9

Centralized shared-memory MP Also called symmetric multiprocessors (SMPs) because single main memory has a symmetric relationship to all processors Large caches = single memory can satisfy memory demands of small number of processors Can scale to a few dozen processors by using a switch and by using many memory banks Although scaling beyond that is technically conceivable, it becomes less attractive as the number of processors sharing centralized memory increases 04/27/2010 Lecture 23 CSCE 4610/5610 10

Distributed memory MP 04/27/2010 Lecture 23 CSCE 4610/5610 11

Distributed memory MP Pro: Cost-effective way to scale memory bandwidth If most accesses are to local memory Pro: Reduces latency of local memory accesses Con: Communicating data between processors more complex Con: Must change software to take advantage of increased memory BW 04/27/2010 Lecture 23 CSCE 4610/5610 12

Models for communication Communication occurs by explicitly passing messages among the processors Communication occurs through a shared address space UMA (Uniform Memory Access time) for shared address, centralized memory MP NUMA (Non Uniform Memory Access time multiprocessor) for shared address, distributed memory MP 04/27/2010 Lecture 23 CSCE 4610/5610 13

Parallel Processing: Challenges Available parallelism Suppose 80X speedup from 100 processors. What fraction of original program can be sequential? a 10% b 5% c 1% d <1% 04/27/2010 Lecture 23 CSCE 4610/5610 14

Parallel Processing: Challenges Communication Latency Suppose Suppose 32 CPU MP, 2GHz, 200 ns remote memory, all local accesses hit memory hierarchy and base CPI is 0.5. (Remote access = 200/0.5 = 400 clock cycles.) a 1.3X b 1.9X c 2.6X 04/27/2010 Lecture 23 CSCE 4610/5610 15

Parallel Processing: Challenges Application parallelism = primarily via new algorithms that have better parallel performance Long remote latency impact = both by architect and by the programmer For example, reduce frequency of remote accesses either by Caching shared data (HW) Restructuring the data layout to make more accesses local (SW) 04/27/2010 Lecture 23 CSCE 4610/5610 16

Symmetric Shared Memory Architecture From multiple boards on a shared bus to multiple processors inside a single chip Caches both Private data are used by a single processor Shared data are used by multiple processors Caching shared data reduces latency to shared data, memory bandwidth for shared data and interconnect bandwidth cache coherence problem 04/27/2010 Lecture 23 CSCE 4610/5610 17

Cache Coherence: Problem Example 04/27/2010 Lecture 23 CSCE 4610/5610 18

Memory Model Reading an address should return the last value written to that address Coherence: defines values returned by a read defines behavior to same location Consistency: determines when a written value will be returned by a read defines behavior to other locations 04/27/2010 Lecture 23 CSCE 4610/5610 19

Coherent Memory System Preserve Program Order: A read by processor P to location X that follows a write by P to X, with no writes of X by another processor occurring between the write and the read by P, always returns the value written by P Coherent view of memory: Read by a processor to location X that follows a write by another processor to X returns the written value if the read and write are sufficiently separated in time and no other writes to X occur between the two accesses Write serialization: 2 writes to same location by any 2 processors are seen in the same order by all processors If not, a processor could keep value 1 since saw as last write For example, if the values 1 and then 2 are written to a location, processors can never read the value of the location as 2 and then later read it as 1 04/27/2010 Lecture 23 CSCE 4610/5610 20

Write Consistency A write does not complete (and allow the next write to occur) until all processors have seen the effect of that write The processor does not change the order of any write with respect to any other memory access if a processor writes location A followed by location B, any processor that sees the new value of B must also see the new value of A These restrictions allow the processor to reorder reads, but forces the processor to finish writes in program order 04/27/2010 Lecture 23 CSCE 4610/5610 21

Enforcing Coherence Program on multiple processors will normally have copies of the same data in several caches Unlike I/O, where its rare Rather than trying to avoid sharing in SW, SMPs use a HW protocol to maintain coherent caches Migration and Replication key to performance of shared data Migration - data can be moved to a local cache and used there in a transparent fashion Reduces both latency to access shared data that is allocated remotely and bandwidth demand on the shared memory Replication Ű for shared data being simultaneously read, since caches make a copy of data in local cache Reduces both latency of access and contention for read shared data 04/27/2010 Lecture 23 CSCE 4610/5610 22

Coherence Protocols Directory based Ů Sharing status of a block of physical memory is kept in just one location, the directory Snooping Ů Every cache with a copy of data also has a copy of sharing status of block, but no centralized state is kept All caches are accessible via some broadcast medium (a bus or switch) All cache controllers monitor or snoop on the medium to determine whether or not they have a copy of a block that is requested on a bus or switch access 04/27/2010 Lecture 23 CSCE 4610/5610 23

Snoopy Coherence Protocols Cache Controller snoops all transactions on the shared medium (bus or switch) relevant transaction if for a block it contains take action to ensure coherence: invalidate, update, or supply value depends on state of the block and the protocol Either get exclusive access before write via write invalidate or update all copies on write 04/27/2010 Lecture 23 CSCE 4610/5610 24

Snooping: Building Blocks Cache block state transition diagram FSM specifying how disposition of block changes: invalid, valid, dirty Broadcast Medium Transactions (e.g., bus) Fundamental system design abstraction Logically single set of wires connect several devices Protocol: arbitration, command/addr, data Every device observes every transaction Broadcast medium enforces serialization 1st processor to get medium invalidates others copies Implies cannot complete write until it obtains bus All coherence schemes require serializing accesses to same cache block Also need to find up-to-date copy of cache block 04/27/2010 Lecture 23 CSCE 4610/5610 25

Up-to-date Cache Copy Write-through: get up-to-date copy from memory Write through simpler if enough memory BW Write-back harder Most recent copy can be in a cache Can use same snooping mechanism Snoop every address placed on the bus If a processor has dirty copy of requested cache block, it provides it in response to a read request and aborts the memory access Complexity from retrieving cache block from a processor cache, which can take longer than retrieving it from memory Write-back needs lower memory bandwidth Support larger numbers of faster processors Most multiprocessors use write-back 04/27/2010 Lecture 23 CSCE 4610/5610 26