© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 1 Administrative Issues  Exam date candidates  CW 7 * Feb 14th (Tue): 10-12 * Feb 16th.

Slides:



Advertisements
Similar presentations
Threads Chapter 4 Threads are a subdivision of processes
Advertisements

1 Multithreaded Programming in Java. 2 Agenda Introduction Thread Applications Defining Threads Java Threads and States Examples.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 3 CPUs.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
So far Binary numbers Logic gates Digital circuits process data using gates – Half and full adder Data storage – Electronic memory – Magnetic memory –
Multiple Processor Systems
1 Processes and Threads Creation and Termination States Usage Implementations.
Multiple Processor Systems
1 RAID Overview n Computing speeds double every 3 years n Disk speeds cant keep up n Data needs higher MTBF than any component in system n IO.
ABC Technology Project
Threads, SMP, and Microkernels
VOORBLAD.
OPERATING SYSTEM SUPPORT
Addition 1’s to 20.
25 seconds left…...
Week 1.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
PSSA Preparation.
© 2009 Fakultas Teknologi Informasi Universitas Budi Luhur Jl. Ciledug Raya Petukangan Utara Jakarta Selatan Website:
The University of Adelaide, School of Computer Science
Multiprocessors— Large vs. Small Scale Multiprocessors— Large vs. Small Scale.
Lecture 6: Multicore Systems
Chapter 8-1 : Multiple Processor Systems Multiple Processor Systems Multiple Processor Systems Multiprocessor Hardware Multiprocessor Hardware UMA Multiprocessors.
Multiple Processor Systems
Chapter 4 Threads, SMP, and Microkernels Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design.
CSCI 8150 Advanced Computer Architecture Hwang, Chapter 1 Parallel Computer Models 1.2 Multiprocessors and Multicomputers.
Multiprocessors CSE 4711 Multiprocessors - Flynn’s Taxonomy (1966) Single Instruction stream, Single Data stream (SISD) –Conventional uniprocessor –Although.
Background Computer System Architectures Computer System Software.
Chapter 17 Parallel Processing.
Multiprocessors CSE 471 Aut 011 Multiprocessors - Flynn’s Taxonomy (1966) Single Instruction stream, Single Data stream (SISD) –Conventional uniprocessor.
1 Lecture 23: Multiprocessors Today’s topics:  RAID  Multiprocessor taxonomy  Snooping-based cache coherence protocol.
CPE 731 Advanced Computer Architecture Multiprocessor Introduction
Computer System Architectures Computer System Software
Multiple Processor Systems. Multiprocessor Systems Continuous need for faster and powerful computers –shared memory model ( access nsec) –message passing.
CHAPTER 12 INTRODUCTION TO PARALLEL PROCESSING CS 147 Guy Wong page
Multiprocessing. Going Multi-core Helps Energy Efficiency William Holt, HOT Chips 2005 Adapted from UC Berkeley "The Beauty and Joy of Computing"
Multiple Processor Systems Chapter Multiprocessors 8.2 Multicomputers 8.3 Distributed systems.
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Multiple Processor Systems. Multiprocessor Systems Continuous need for faster computers –shared memory model ( access nsec) –message passing multiprocessor.
Orange Coast College Business Division Computer Science Department CS 116- Computer Architecture Multiprocessors.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 8 Multiple Processor Systems Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
PARALLEL PROCESSOR- TAXONOMY. CH18 Parallel Processing {Multi-processor, Multi-computer} Multiple Processor Organizations Symmetric Multiprocessors Cache.
Outline Why this subject? What is High Performance Computing?
Lecture 3: Computer Architectures
Computer Architecture Lecture 24 Parallel Processing Ralph Grishman November 2015 NYU.
Background Computer System Architectures Computer System Software.
Threads, SMP, and Microkernels Chapter 4. Processes and Threads Operating systems use processes for two purposes - Resource allocation and resource ownership.
Lecture 13 Parallel Processing. 2 What is Parallel Computing? Traditionally software has been written for serial computation. Parallel computing is the.
18-447: Computer Architecture Lecture 30B: Multiprocessors
CS5102 High Performance Computer Systems Thread-Level Parallelism
Distributed Processors
buses, crossing switch, multistage network.
CS 147 – Parallel Processing
Threads, SMP, and Microkernels
Chapter 17 Parallel Processing
Symmetric Multiprocessing (SMP)
buses, crossing switch, multistage network.
AN INTRODUCTION ON PARALLEL PROCESSING
Chapter 4 Multiprocessors
Lecture 23: Virtual Memory, Multiprocessors
Presentation transcript:

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 1 Administrative Issues  Exam date candidates  CW 7 * Feb 14th (Tue): * Feb 16th (Thu):  CW 8 * Feb 24th (Fri):  CW 9 * Feb 28th (Tue): * Feb 29th (Wed): (cool date for an exam ) * March 1st (Thu): 10-12

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 2 Multiprocessing Support Tannenbaum (3. ed) Chapter 8 Parallel computer architectures OS design issues

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 3 Parallel computer architectures  Is parallel computing a good idea?  Which parallel computing designs exist?

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 4 Parallel Processing Motivation P1 P3 P2Input V O/P  Single Processor is a Single Point Of Failure (SPOF)  Not tolerable in critical applications (e.g. crash while writing thesis  )  Redundancy helps, e.g. Triple Modular Redundancy (TMR) Why not just double? CPUs usually have other detection mechanisms for critical failures…

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 5 Parallel Processing Motivation Performance gain through clock rate Power consumption? Implications?

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 6 Parallel Processing Overview  Flynn’s Taxonomy  Single instruction single data (SISD) stream no parallel operation  Single instruction multiple data (SIMD) stream vector and array processors, MMX & SSE instructions  Multiple instruction single data (MISD) stream never implemented  Multiple instruction multiple data (MIMD) stream multicore, multiprocessor

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 7 Parallel Processing Overview  Past: Multithreaded Processors  No real parallelism, just increased thread switching  Choose two threads  If one blocks, the other one runs after only  Present: Symmetric Multi-Processors SMPs  Uniform Memory Access (UMA)  Nonuniform Memory Access (NUMA)  Future: Heterogeneous MP  General purpose CPUs  General purpose GPUs  Specific coprocessors  Specific accelerators  Reconfigurable HW

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 8 SMPs Shared-memory multiprocessor Message-passing multicomputer Distributed System

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 9 SMPs: Bus-based UMA No caching Caching Caching + private memory Scalability?

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 10 SMPs: Crossbar-switched UMA Scalability?

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 11 SMPs: Multistage Network UMA Network of 2x2 switches A  X,X  A A  Y,Y  A B  X,X  B B  Y,Y  B Memory addressing scheme

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 12 SMPs: Multistage Network UMA Scalability? n CPUs x n memory units: n/2(log 2 n) switches Other problems? 011 sends READ (a) to module sends READ (b) to module 001

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 13 Intel’s Single-Chip Cloud Computer (SCC)

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 14 SMPs: Non-Uniform Memory Access (NUMA)  Single address space  Load/Store interface  Access times differ!

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 15 Parallel computer architectures  Is parallel computing a good idea?  At least there is no better idea right now...  Clock rate improvement is too expensive (heat dissemination)  Which parallel computing designs exist?  Flynn‘s taxonomy: SISD, SIMD, MISD, MIMD  MIMD: Multithreaded, SMPs, Heterogeneous Multiprocessors  SMPs: UMA, NUMA

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 16 Multiprocessor OS Types  Private OS per node  Master/Slave  Shared OS

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 17 Private OS per node  Shared HW, CPUs & memory partitioned statically  Soft Resources? Processes, pages, disk…

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 18 Master/Slave Central coordinating instance Pros?Cons?

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 19 Shared OS Now every user process can invoke the OS locally  No master CPU bottleneck, yet resource sharing  Other problems?

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 20 Multiprocessor OS issues  Synchronization  Switching off interrupts?  TSL?  Covered in the DS part  Scheduling  What to run?  Where to run?  Which combinations?  Covered in the exercise

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 21 Multiprocessor Synchronization Can TSL do the job?

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 22 Multiprocessor Synchronization

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 23 Multiprocessor Scheduling: Time Sharing

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 24 Multiprocessor Scheduling: Space Sharing

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 25 Multiprocessor Scheduling: Gang Scheduling

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 26 Multiprocessor Scheduling: Gang Scheduling