t03160010220104036 multipleproc week11-1-pert 21

Post on 07-Aug-2015

88 Views

Category:

Documents

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Multi-Processing SystemWeek 11 - 1

Course : T0316 - Operating System Year : February 2011

Multiple Processor System

Bina Nusantara University 3

(a) A shared-memory multiprocessor. (b) A message-passing multicomputer. (c) A wide area distributed system.

UMA Multiprocessors with Bus-Based Architectures

Bina Nusantara University 4

Three bus-based multiprocessors. (a) Without caching. (b) With caching. (c) With caching and private memories.

UMA vs. NUMA

Bina Nusantara University 5

• Unified Memory Access (UMA)– also known as Symmetric MultiProcessors (SMP)

• Non-Unified Memory Access (NUMA)• SAME

– single memory space– pitfall: Compared between shared memory and

distributed memory.

(Irrelevant Comparison)• DIFFERENT

– access time– # of processors– bus vs. network implementation

NUMA Processors(1)

Bina Nusantara University 6

Characteristics of NUMA machines:1.There is a single address space visible to

all CPUs.2.Access to remote memory is via LOAD and

STORE instructions.3.Access to remote memory is slower than

access to local memory.

NUMA Processors(2)

Bina Nusantara University 7

(a) A 256-node directory-based multiprocessor.

Each CPU Has Its Own Operating System

Bina Nusantara University 8

Partitioning multiprocessor memory among four CPUs, but sharing a single copy of the operating system code. The boxes marked Data are the operating

• system’s private data for each CPU.

Master-slave Multiprocessor Model

Bina Nusantara University 9

Multi Processor Synchronization(1)

Bina Nusantara University 10

• Figure 8-10. The TSL instruction can fail if the bus cannot be locked. These four steps show a sequence of events where the failure is demonstrated.

Multi Processor Synchronization(2)

Bina Nusantara University 11

• Figure 8-11. Use of multiple locks to avoid cache thrashing.

Time Sharing

Bina Nusantara University 12

• Figure 8-12. Using a single data structure for scheduling a multiprocessor.

Space Sharing

Bina Nusantara University 13

• Figure 8-13. A set of 32 CPUs split into four partitions, with two CPUs available.

Gang Scheduling (1)

Bina Nusantara University 14

• Figure 8-14. Communication between two threads belonging to thread A that are running out of phase.

Gang Scheduling (2)

Bina Nusantara University 15

The three parts of gang scheduling:1.Groups of related threads are scheduled

as a unit, a gang.2.All members of a gang run simultaneously,

on different timeshared CPUs.3.All gang members start and end their time

slices together.

Gang Scheduling (3)

Bina Nusantara University 16

The End

Bina Nusantara University 17

top related