Chapter 17 Parallel Processing.

Slides:



Advertisements
Similar presentations
Threads, SMP, and Microkernels
Advertisements

© 2009 Fakultas Teknologi Informasi Universitas Budi Luhur Jl. Ciledug Raya Petukangan Utara Jakarta Selatan Website:
Multiprocessors— Large vs. Small Scale Multiprocessors— Large vs. Small Scale.
Lecture 6: Multicore Systems
Computer Organization and Architecture
Cache Coherent Distributed Shared Memory. Motivations Small processor count –SMP machines –Single shared memory with multiple processors interconnected.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Chapter 4 Threads, SMP, and Microkernels Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design.
Computer Systems/Operating Systems - Class 8
1 COMP 206: Computer Architecture and Implementation Montek Singh Mon, Dec 5, 2005 Topic: Intro to Multiprocessors and Thread-Level Parallelism.
Multiprocessors ELEC 6200: Computer Architecture and Design Instructor : Agrawal Name: Nam.
Multithreading and Dataflow Architectures CPSC 321 Andreas Klappenecker.
Chapter Hardwired vs Microprogrammed Control Multithreading
1 Lecture 23: Multiprocessors Today’s topics:  RAID  Multiprocessor taxonomy  Snooping-based cache coherence protocol.
1 Computer Science, University of Warwick Architecture Classifications A taxonomy of parallel architectures: in 1972, Flynn categorised HPC architectures.
Chapter 18 Parallel Processing (Multiprocessing).
Advanced Computer Architectures
Introduction to Symmetric Multiprocessors Süha TUNA Bilişim Enstitüsü UHeM Yaz Çalıştayı
Advanced Architectures
Computer System Architectures Computer System Software
Chapter 4 Threads, SMP, and Microkernels Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E.
Parallel Processing – Page 1 of 63CSCI 4717 – Computer Architecture CSCI 4717/5717 Computer Architecture Topic: Symmetric Multiprocessors & Clusters Reading:
Chapter 4 Threads, SMP, and Microkernels Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design.
Multi-core architectures. Single-core computer Single-core CPU chip.
Parallel ProcessingCSCI 4717 – Computer Architecture CSCI 4717/5717 Computer Architecture Topic: Symmetric Multiprocessors & Clusters Reading: Stallings,
Introduction, background, jargon Jakub Yaghob. Literature T.G.Mattson, B.A.Sanders, B.L.Massingill: Patterns for Parallel Programming, Addison- Wesley,
Parallel Processing - introduction  Traditionally, the computer has been viewed as a sequential machine. This view of the computer has never been entirely.
Chapter 2 Parallel Architecture. Moore’s Law The number of transistors on a chip doubles every years. – Has been valid for over 40 years – Can’t.
Processes and Threads Processes have two characteristics: – Resource ownership - process includes a virtual address space to hold the process image – Scheduling/execution.
SJSU SPRING 2011 PARALLEL COMPUTING Parallel Computing CS 147: Computer Architecture Instructor: Professor Sin-Min Lee Spring 2011 By: Alice Cotti.
1 Multiprocessor and Real-Time Scheduling Chapter 10 Real-Time scheduling will be covered in SYSC3303.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Spring 2003CSE P5481 Issues in Multiprocessors Which programming model for interprocessor communication shared memory regular loads & stores message passing.
1 Threads, SMP, and Microkernels Chapter Multithreading Operating system supports multiple threads of execution within a single process MS-DOS.
Computer Organization
PARALLEL PROCESSOR- TAXONOMY. CH18 Parallel Processing {Multi-processor, Multi-computer} Multiple Processor Organizations Symmetric Multiprocessors Cache.
+ Clusters Alternative to SMP as an approach to providing high performance and high availability Particularly attractive for server applications Defined.
+ William Stallings Computer Organization and Architecture 10 th Edition © 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Outline Why this subject? What is High Performance Computing?
Chapter 4 Threads, SMP, and Microkernels Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E.
Chapter 11 System Performance Enhancement. Basic Operation of a Computer l Program is loaded into memory l Instruction is fetched from memory l Operands.
Introduction Goal: connecting multiple computers to get higher performance – Multiprocessors – Scalability, availability, power efficiency Job-level (process-level)
Page 1 2P13 Week 1. Page 2 Page 3 Page 4 Page 5.
PART 6: (2/2) Enhancing CPU Performance CHAPTER 17: PARALLEL PROCESSING 1.
Lecture 13 Parallel Processing. 2 What is Parallel Computing? Traditionally software has been written for serial computation. Parallel computing is the.
Processor Level Parallelism 1
Advanced Architectures
CHAPTER SEVEN PARALLEL PROCESSING © Prepared By: Razif Razali.
Computer Organization and Architecture
Distributed Processors
Parallel Processing - introduction
CS 147 – Parallel Processing
William Stallings Computer Organization and Architecture 7th Edition
Threads, SMP, and Microkernels
Chapter 17 Parallel Processing
Symmetric Multiprocessing (SMP)
Lecture 4- Threads, SMP, and Microkernels
Computer Architecture
William Stallings Computer Organization and Architecture 7th Edition
High Performance Computing
Chapter 4 Multiprocessors
William Stallings Computer Organization and Architecture 8th Edition
Presentation transcript:

Chapter 17 Parallel Processing

Computer Organizations

Multiple Processor Organization Single instruction, single data stream – SISD Single instruction, multiple data stream – SIMD Multiple instruction, single data stream – MISD Multiple instruction, multiple data stream- MIMD

Single Instruction, Single Data Stream - SISD Single processor Single instruction stream Data stored in single memory

Single Instruction, Multiple Data Stream - SIMD Single machine instruction Each instruction executed on different set of data by different processors Number of processing elements Machine controls simultaneous execution Lockstep basis Each processing element has associated data memory Application: Vector and array processing

Multiple Instruction, Single Data Stream - MISD Sequence of data Transmitted to set of processors Each processor executes different instruction sequence Not clear if it has ever been implemented

Multiple Instruction, Multiple Data Stream- MIMD Set of processors Simultaneously executes different instruction sequences Different sets of data Examples: SMPs, NUMA systems, and Clusters

Taxonomy of Parallel Processor Architectures

Block Diagram of Tightly Coupled Multiprocessor Processors share memory Communicate via that shared memory

Symmetric Multiprocessor Organization

Symmetric Multiprocessors A stand alone computer with the following characteristics Two or more similar processors of comparable capacity Processors share same memory and I/O Processors are connected by a bus or other internal connection Memory access time is approximately the same for each processor All processors share access to I/O Either through same channels or different channels giving paths to same devices All processors can perform the same functions (hence symmetric) System controlled by integrated operating system providing interaction between processors Interaction at job, task, file and data element levels

IBM z990 Multiprocessor Structure

SMP Advantages Performance Availability Incremental growth Scaling If some work can be done in parallel Availability Since all processors can perform the same functions, failure of a single processor does not halt the system Incremental growth User can enhance performance by adding additional processors Scaling Vendors can offer range of products based on number of processors

Cache Coherence Problems Popular solution - Snoopy Protocol Distribute cache coherence responsibility among cache controllers Cache recognizes that a line is shared Updates announced to other caches

Loosely Coupled - Clusters Collection of independent whole uniprocessors or SMPs Usually called nodes Interconnected to form a cluster Working together as unified resource Illusion of being one machine Communication via fixed path or network connections

Cluster Configurations

Cluster Benefits Absolute scalability Incremental scalability High availability Superior price/performance

Cluster Computer Architecture

Both provide multiprocessor support to high demand applications. Cluster v. SMP Both provide multiprocessor support to high demand applications. Both available commercially SMP: Easier to manage and control Closer to single processor systems Scheduling is main difference Less physical space Lower power consumption Clustering: Superior incremental & absolute scalability Less cost Superior availability Redundancy

Nonuniform Memory Access (NUMA) (Tightly coupled) Alternative to SMP & Clusters Nonuniform memory access All processors have access to all parts of memory Using load & store Access time of processor differs depending on region of memory Different processors access different regions of memory at different speeds Cache coherent NUMA ? Cache coherence is maintained among the caches of the various processors Significantly different from SMP and Clusters

SMP has practical limit to number of processors Motivation SMP has practical limit to number of processors Bus traffic limits to between 16 and 64 processors In clusters each node has own memory Apps do not see large global memory Coherence maintained by software not hardware NUMA retains SMP flavour while giving large scale multiprocessing Objective is to maintain transparent system wide memory while permitting multiprocessor nodes, each with own bus or internal interconnection system

CC-NUMA Organization

Not very supportive of software changes NUMA Pros & Cons Possibly effective performance at higher levels of parallelism than one SMP Not very supportive of software changes Performance can breakdown if too much access to remote memory Can be avoided by: L1 & L2 cache design reducing all memory access Need good temporal locality of software Not transparent Page allocation, process allocation and load balancing changes can be difficult Availability?

Multithreading Instruction stream divided into smaller streams (threads) Executed in parallel There are a wide variety of multithreading designs

Definitions of Threads and Processes Threads in multithreaded processors may or may not be same as software threads Process: An instance of program running on computer Thread: dispatchable unit of work within process Includes processor context (which includes the program counter and stack pointer) and data area for stack Thread executes sequentially Interruptible: processor can turn to another thread Thread switch Switching processor between threads within same process Typically less costly than process switch

Implicit and Explicit Multithreading All commercial processors and most experimental ones use explicit multithreading Concurrently execute instructions from different explicit threads Interleave instructions from different threads on shared pipelines or parallel execution on parallel pipelines Implicit multithreading is concurrent execution of multiple threads extracted from single sequential program Implicit threads defined statically by compiler or dynamically by hardware

Approaches to Explicit Multithreading Interleaved Fine-grained Processor deals with two or more thread contexts at a time Switching thread at each clock cycle If thread is blocked it is skipped Blocked Coarse-grained Thread executed until event causes delay E.g. cache miss Effective on in-order processor Avoids pipeline stall Simultaneous (SMT) Instructions simultaneously issued from multiple threads to execution units of superscalar processor Chip multiprocessing Processor is replicated on a single chip Each processor handles separate threads

Scalar Processor Approaches Single-threaded scalar Simple pipeline No multithreading Interleaved multithreaded scalar Easiest multithreading to implement Switch threads at each clock cycle Pipeline stages kept close to fully occupied Hardware needs to switch thread context between cycles Blocked multithreaded scalar Thread executed until latency event occurs Would stop pipeline Processor switches to another thread

Scalar Diagrams

Multiple Instruction Issue Processors Superscalar No multithreading Interleaved multithreading superscalar: Each cycle, as many instructions as possible issued from single thread Delays due to thread switches eliminated Number of instructions issued in cycle limited by dependencies Blocked multithreaded superscalar Instructions from one thread Blocked multithreading used

Multiple Instruction Issue Diagram

Multiple Instruction Issue Processors Very long instruction word (VLIW) E.g. IA-64 Multiple instructions in single word Typically constructed by compiler Operations may be executed in parallel in same word May pad with no-ops Interleaved multithreading VLIW Similar efficiencies to interleaved multithreading on superscalar architecture Blocked multithreaded VLIW Similar efficiencies to blocked multithreading on superscalar architecture

Multiple Instruction Issue Diagram

Parallel, Simultaneous Execution of Multiple Threads Simultaneous multithreading Issue multiple instructions at a time One thread may fill all horizontal slots Instructions from two or more threads may be issued With enough threads, can issue maximum number of instructions on each cycle Chip multiprocessor Multiple processors Each has two-issue superscalar processor Each processor is assigned thread Can issue up to two instructions per cycle per thread

Parallel Diagram

Some Pentium 4 (single processor) Examples Some Pentium 4 (single processor) Intel calls it hyperthreading SMT with support for two threads Single multithreaded processor, logically two processors IBM Power5 High-end PowerPC Combines chip multiprocessing with SMT Chip has two separate processors Each supporting two threads concurrently using SMT