Fundamental Design Issues for Parallel Architecture Todd C. Mowry CS 495 January 22, 2002.

Slides:



Advertisements
Similar presentations
Distributed Systems Major Design Issues Presented by: Christopher Hector CS8320 – Advanced Operating Systems Spring 2007 – Section 2.6 Presentation Dr.
Advertisements

ECE669 L3: Design Issues February 5, 2004 ECE 669 Parallel Computer Architecture Lecture 3 Design Issues.
Multiprocessors— Large vs. Small Scale Multiprocessors— Large vs. Small Scale.
Department of Computer Science and Engineering University of Washington Brian N. Bershad, Stefan Savage, Przemyslaw Pardyak, Emin Gun Sirer, Marc E. Fiuczynski,
Study of Hurricane and Tornado Operating Systems By Shubhanan Bakre.
1 Lecture 12: Hardware/Software Trade-Offs Topics: COMA, Software Virtual Memory.
Latency Tolerance: what to do when it just won’t go away CS 258, Spring 99 David E. Culler Computer Science Division U.C. Berkeley.
Multiprocessors ELEC 6200: Computer Architecture and Design Instructor : Agrawal Name: Nam.
1 Multiprocessors. 2 Idea: create powerful computers by connecting many smaller ones good news: works for timesharing (better than supercomputer) bad.
DISTRIBUTED CONSISTENCY MANAGEMENT IN A SINGLE ADDRESS SPACE DISTRIBUTED OPERATING SYSTEM Sombrero.
1 Concurrent and Distributed Systems Introduction 8 lectures on concurrency control in centralised systems - interaction of components in main memory -
EECC756 - Shaaban #1 lec # 2 Spring Parallel Architectures History Application Software System Software SIMD Message Passing Shared Memory.
Active Messages: a Mechanism for Integrated Communication and Computation von Eicken et. al. Brian Kazian CS258 Spring 2008.
EECC756 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
EECC756 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
Parallel Architecture Fundamentals Todd C. Mowry CS 740 October 12, 2001 Topics What is Parallel Architecture? Why Parallel Architecture? Evolution and.
Computer Architecture II 1 Computer architecture II Lecture 9.
EECC756 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
Fundamental Design Issues CS 258, Spring 99 David E. Culler Computer Science Division U.C. Berkeley.
CS533 - Concepts of Operating Systems
Parallel Processing Architectures Laxmi Narayan Bhuyan
EECC756 - Shaaban #1 lec # 2 Spring Parallel Architectures History Application Software System Software SIMD Message Passing Shared Memory.
Implications for Programming Models Todd C. Mowry CS 495 September 12, 2002.
EECC756 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
Distributed Shared Memory Systems and Programming
Manolis Katevenis FORTH and University of Crete, Greece Interprocessor Communication seen as load/store instruction generalization.
Parallel Programming Models Jihad El-Sana These slides are based on the book: Introduction to Parallel Computing, Blaise Barney, Lawrence Livermore National.
Multiple Processor Systems. Multiprocessor Systems Continuous need for faster and powerful computers –shared memory model ( access nsec) –message passing.
1 Micro-kernel. 2 Key points Microkernel provides minimal abstractions –Address space, threads, IPC Abstractions –… are machine independent –But implementation.
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.
Advanced Computer Networks Topic 2: Characterization of Distributed Systems.
EECC756 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
Multiple Processor Systems. Multiprocessor Systems Continuous need for faster computers –shared memory model ( access nsec) –message passing multiprocessor.
1 Lecture 12: Hardware/Software Trade-Offs Topics: COMA, Software Virtual Memory.
Ch 10 Shared memory via message passing Problems –Explicit user action needed –Address spaces are distinct –Small Granularity of Transfer Distributed Shared.
Spring 2003CSE P5481 Issues in Multiprocessors Which programming model for interprocessor communication shared memory regular loads & stores message passing.
CS533 - Concepts of Operating Systems 1 The Mach System Presented by Catherine Vilhauer.
Memory Consistency Models. Outline Review of multi-threaded program execution on uniprocessor Need for memory consistency models Sequential consistency.
Intro to Parallel Architecture Todd C. Mowry CS 740 September 19, 2007.
Parallel Architecture Fundamentals Todd C. Mowry CS 740 November 3, 1998 Topics What is Parallel Architecture? Why Parallel Architecture? Evolution and.
Memory Hierarchy Adaptivity An Architectural Perspective Alex Veidenbaum AMRM Project sponsored by DARPA/ITO.
Brian N. Bershad, Thomas E. Anderson, Edward D. Lazowska, and Henry M. Levy. Presented by: Tim Fleck.
Programmability Hiroshi Nakashima Thomas Sterling.
CMPE655 - Shaaban #1 lec # 2 Fall Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1 The.
(Superficial!) Review of Uniprocessor Architecture Parallel Architectures and Related concepts CS 433 Laxmikant Kale University of Illinois at Urbana-Champaign.
Threaded Programming Lecture 1: Concepts. 2 Overview Shared memory systems Basic Concepts in Threaded Programming.
3/12/2013Computer Engg, IIT(BHU)1 PARALLEL COMPUTERS- 2.
CMPE655 - Shaaban #1 lec # 2 Spring Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1.
#1 lec # 2 Fall Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1 The definition of critical.
Diversity and Convergence of Parallel Architectures Muhamed Mudawar Computer Engineering Department King Fahd University of Petroleum and Minerals.
CMSC 611: Advanced Computer Architecture Shared Memory Most slides adapted from David Patterson. Some from Mohomed Younis.
Running Commodity Operating Systems on Scalable Multiprocessors Edouard Bugnion, Scott Devine and Mendel Rosenblum Presentation by Mark Smith.
CMPE655 - Shaaban #1 lec # 2 Fall Conventional Computer Architecture Abstraction Conventional computer architecture has two aspects: 1 The.
Parallel programs Inf-2202 Concurrent and Data-intensive Programming Fall 2016 Lars Ailo Bongo
Fundamental Design Issues
Auburn University COMP7330/7336 Advanced Parallel and Distributed Computing Fundamental Design Issues Dr. Xiao Qin Auburn.
Convergence of Parallel Architectures
CS 704 Advanced Computer Architecture
Distributed Shared Memory
CS5102 High Performance Computer Systems Thread-Level Parallelism
Parallel Computers Definition: “A parallel computer is a collection of processing elements that cooperate and communicate to solve large problems fast.”
Memory Consistency Models
Memory Consistency Models
Conventional Computer Architecture Abstraction
CMSC 611: Advanced Computer Architecture
Outline Midterm results summary Distributed file systems – continued
Parallel Processing Architectures
CS510 - Portland State University
Lecture 24: Multiprocessors
COT 5611 Operating Systems Design Principles Spring 2014
Presentation transcript:

Fundamental Design Issues for Parallel Architecture Todd C. Mowry CS 495 January 22, 2002

CS 495 S’02– 2 – Understanding Parallel Architecture Traditional taxonomies not very useful Programming models not enough, nor hardware structures Same one can be supported by radically different architectures Architectural distinctions that affect software Compilers, libraries, programs Design of user/system and hardware/software interface Constrained from above by progr. models and below by technology Guiding principles provided by layers What primitives are provided at communication abstraction How programming models map to these How they are mapped to hardware

CS 495 S’02– 3 – Fundamental Design Issues At any layer, interface (contract) aspect and performance aspects Naming: How are logically shared data and/or processes referenced? Operations: What operations are provided on these data Ordering: How are accesses to data ordered and coordinated? Replication: How are data replicated to reduce communication? Communication Cost: Latency, bandwidth, overhead, occupancy Understand at programming model first, since that sets requirements Other issues: Node Granularity: How to split between processors and memory?...

CS 495 S’02– 4 – Sequential Programming Model Contract Naming: Can name any variable in virtual address space –Hardware (and perhaps compilers) does translation to physical addresses Operations: Loads and Stores Ordering: Sequential program order Performance Rely on dependences on single location (mostly): dependence order Compilers and hardware violate other orders without getting caught Compiler: reordering and register allocation Hardware: out of order, pipeline bypassing, write buffers Transparent replication in caches

CS 495 S’02– 5 – SAS Programming Model Naming: Any process can name any variable in shared space Operations: Loads and stores, plus those needed for ordering Simplest Ordering Model: Within a process/thread: sequential program order Across threads: some interleaving (as in time-sharing) Additional orders through synchronization Again, compilers/hardware can violate orders without getting caught –Different, more subtle ordering models also possible (discussed later)

CS 495 S’02– 6 – Synchronization Mutual exclusion (locks) Ensure certain operations on certain data can be performed by only one process at a time Room that only one person can enter at a time No ordering guarantees Event synchronization Ordering of events to preserve dependences –e.g. producer —> consumer of data 3 main types: –point-to-point –global –group

CS 495 S’02– 7 – Message Passing Programming Model Naming: Processes can name private data directly. No shared address space Operations: Explicit communication via send and receive Send transfers data from private address space to another process Receive copies data from process to private address space Must be able to name processes Ordering: Program order within a process Send and receive can provide pt-to-pt synch between processes Mutual exclusion inherent Can construct global address space: Process number + address within process address space But no direct operations on these names

CS 495 S’02– 8 – Design Issues Apply at All Layers Programming model’s position provides constraints/goals for system In fact, each interface between layers supports or takes a position on: Naming model Set of operations on names Ordering model Replication Communication performance Any set of positions can be mapped to any other by software Let’s see issues across layers: How lower layers can support contracts of programming models Performance issues

CS 495 S’02– 9 – Naming and Operations Naming and operations in programming model can be directly supported by lower levels, or translated by compiler, libraries or OS Example: Shared virtual address space in programming model Hardware interface supports shared physical address space Direct support by hardware through v-to-p mappings, no software layers Hardware supports independent physical address spaces Can provide SAS through OS, so in system/user interface –v-to-p mappings only for data that are local –remote data accesses incur page faults; brought in via page fault handlers –same programming model, different hardware requirements and cost model Or through compilers or runtime, so above sys/user interface –shared objects, instrumentation of shared accesses, compiler support

CS 495 S’02– 10 – Naming and Operations (Cont) Example: Implementing Message Passing Direct support at hardware interface But match and buffering benefit from more flexibility Support at system/user interface or above in software (almost always) Hardware interface provides basic data transport (well suited) Send/receive built in software for flexibility (protection, buffering) Choices at user/system interface: –OS each time: expensive –OS sets up once/infrequently, then little software involvement each time Or lower interfaces provide SAS, and send/receive built on top with buffers and loads/stores Need to examine the issues and tradeoffs at every layer Frequencies and types of operations, costs

CS 495 S’02– 11 – Ordering Message passing: no assumptions on orders across processes except those imposed by send/receive pairs SAS: How processes see the order of other processes’ references defines semantics of SAS Ordering very important and subtle Uniprocessors play tricks with orders to gain parallelism or locality These are more important in multiprocessors Need to understand which old tricks are valid, and learn new ones How programs behave, what they rely on, and hardware implications

CS 495 S’02– 12 – Replication Very important for reducing data transfer/communication Again, depends on naming model Uniprocessor: caches do it automatically Reduce communication with memory Message Passing naming model at an interface A receive replicates, giving a new name; subsequently use new name Replication is explicit in software above that interface SAS naming model at an interface A load brings in data transparently, so can replicate transparently Hardware caches do this, e.g. in shared physical address space OS can do it at page level in shared virtual address space, or objects No explicit renaming, many copies for same name: coherence problem –in uniprocessors, “coherence” of copies is natural in memory hierarchy

CS 495 S’02– 13 – Communication Performance Performance characteristics determine usage of operations at a layer Programmer, compilers etc make choices based on this Fundamentally, three characteristics: Latency: time taken for an operation Bandwidth: rate of performing operations Cost: impact on execution time of program If processor does one thing at a time: bandwidth  1/latency But actually more complex in modern systems Characteristics apply to overall operations, as well as individual components of a system, however small We will focus on communication or data transfer across nodes

CS 495 S’02– 14 – Communication Cost Model Communication Time per Message = Overhead + Assist Occupancy + Network Delay + Size/Bandwidth + Contention = o v + o c + l + n/B + T c Overhead and assist occupancy may be f(n) or not Each component along the way has occupancy and delay Overall delay is sum of delays Overall occupancy (1/bandwidth) is biggest of occupancies Comm Cost = frequency * (Comm time - overlap) General model for data transfer: applies to cache misses too

CS 495 S’02– 15 – Summary of Design Issues Functional and performance issues apply at all layers Functional: Naming, operations and ordering Performance: Organization, latency, bandwidth, overhead, occupancy Replication and communication are deeply related Management depends on naming model Goal of architects: design against frequency and type of operations that occur at communication abstraction, constrained by tradeoffs from above or below Hardware/software tradeoffs

CS 495 S’02– 16 – Recap Parallel architecture is an important thread in the evolution of architecture At all levels Multiple processor level now in mainstream of computing Exotic designs have contributed much, but given way to convergence Push of technology, cost and application performance Basic processor-memory architecture is the same Key architectural issue is in communication architecture Fundamental design issues: Functional: naming, operations, ordering Performance: organization, replication, performance characteristics Design decisions driven by workload-driven evaluation Integral part of the engineering focus