+ All Categories
Home > Documents > © DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 1 Administrative Issues Exam...

© DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 1 Administrative Issues Exam...

Date post: 01-Apr-2015
Category:
Upload: jamari-gomm
View: 218 times
Download: 2 times
Share this document with a friend
20
1 © DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support Administrative Issues Exam date candidates CW 7 * Feb 14th (Tue): 10-12 * Feb 16th (Thu): 10-12 CW 8 * Feb 24th (Fri): 14-16 CW 9 * Feb 28th (Tue): 14-16 * Feb 29th (Wed): 14-16 (cool date for an exam ) * March 1st (Thu): 10-12
Transcript
Page 1: © DEEDS – OS Course WS11/12 Lecture 10 - Multiprocessing Support 1 Administrative Issues  Exam date candidates  CW 7 * Feb 14th (Tue): 10-12 * Feb 16th.

1© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Administrative Issues

Exam date candidates CW 7

* Feb 14th (Tue): 10-12 * Feb 16th (Thu): 10-12

CW 8 * Feb 24th (Fri): 14-16

CW 9 * Feb 28th (Tue): 14-16 * Feb 29th (Wed): 14-16 (cool date for an exam ) * March 1st (Thu): 10-12

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

2© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Multiprocessing Support

Tannenbaum (3. ed)Chapter 8

• Parallel computer architectures

• OS design issues

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

3© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Parallel computer architectures

Is parallel computing a good idea?

Which parallel computing designs exist?

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

4© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Parallel Processing Motivation

P1P1

P3P3

P2P2InputInput VV O/PO/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…

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

5© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Parallel Processing Motivation

Performance gain through clock ratePower consumption? Implications?

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

6© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Parallel Processing Overview

Flynn’s Taxonomy

Single instruction single data (SISD) streamno parallel operation

Single instruction multiple data (SIMD) streamvector and array processors, MMX & SSE instructions

Multiple instruction single data (MISD) streamnever implemented

Multiple instruction multiple data (MIMD) streammulticore, multiprocessor

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

7© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

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

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

8© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

SMPs

Shared-memory

multiprocessor

Message-passing

multicomputer

DistributedSystem

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

9© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

SMPs: Bus-based UMA

No caching Caching Caching +private

memory

Scalability?

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

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

SMPs: Crossbar-switched UMA

Scalability?

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

11© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

SMPs: Multistage Network UMA

Network of 2x2 switches

A X, X A A Y, Y AB X, X BB Y, Y B

Memory addressing scheme

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

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

SMPs: Multistage Network UMA

Scalability?n CPUs x n memory units: n/2(log2n) switches

Other problems?

011 sends READ (a) to module 110001 sends READ (b) to module 001

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

13© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Intel’s Single-Chip Cloud Computer (SCC)

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

14© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

SMPs: Non-Uniform Memory Access (NUMA)

Single address space Load/Store interface Access times differ!

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

15© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

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

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

16© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Multiprocessor OS Types

Private OS per node

Master/Slave

Shared OS

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

17© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Private OS per node

Shared HW, CPUs & memory partitioned statically

Soft Resources? Processes, pages, disk…

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

18© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Master/Slave

Central coordinating instancePros? Cons?

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

19© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

Shared OS

Now every user process can invoke the OS locally No master CPU bottleneck, yet resource sharing

Other problems?

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

20© DEEDS – OS Course WS11/12Lecture 10 - Multiprocessing Support

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


Recommended