computer architecture: a quantitative approach - cap4 - section 2

13
Multiprocessors and Thread-Level Parallelism Symmetric Shared- Memory Architectures “The use of large, multilevel caches can substantially reduce the memory bandwidth demands of a processor.” Hennessy and Patterson

Upload: marcelo-arbore

Post on 22-Apr-2015

3.772 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Computer Architecture: A quantitative approach - Cap4 - Section 2

Multiprocessors and Thread-Level Parallelism

Symmetric Shared-Memory Architectures

“The use of large, multilevel caches can substantially reduce the memory bandwidth

demands of a processor.”

Hennessy and Patterson

Page 2: Computer Architecture: A quantitative approach - Cap4 - Section 2

Hardware Designers Motivation

• The use of large, multilevel caches can substantially reduce the memory bandwidth demands of a processor.

Page 3: Computer Architecture: A quantitative approach - Cap4 - Section 2

Multiprocessors Cache Coherence

Page 4: Computer Architecture: A quantitative approach - Cap4 - Section 2

Basic Schemes for Enforcing Coherence

Directory Based

Snooping

Page 5: Computer Architecture: A quantitative approach - Cap4 - Section 2

The Snooping Protocols

Write Invalidate Protocol

Write Broadcast Protocol

Page 6: Computer Architecture: A quantitative approach - Cap4 - Section 2

Write Invalidate Protocol

Page 7: Computer Architecture: A quantitative approach - Cap4 - Section 2

An Example Protocol

Page 8: Computer Architecture: A quantitative approach - Cap4 - Section 2

An Example Protocol

Page 9: Computer Architecture: A quantitative approach - Cap4 - Section 2

An Example Protocol

Page 10: Computer Architecture: A quantitative approach - Cap4 - Section 2

SSM and Snooping Limitations

• As the number of processors in a multiprocessor grows, or as the memory demands of each processor grow, any centralized resource in the system can become a bottleneck.

Page 11: Computer Architecture: A quantitative approach - Cap4 - Section 2

SSM and Snooping Limitations

Page 12: Computer Architecture: A quantitative approach - Cap4 - Section 2

Implementing Snoopy Cache Coherence

Race Situation: Have a winner is more important than who wins.

Broadcast for all misses and some basic properties of the interconnection network.

Ability to restart the miss handling of the loser in a race.

Page 13: Computer Architecture: A quantitative approach - Cap4 - Section 2

Thank you!

Author: Prof. Sergio Takeo, Marcelo Arbore.

Bibliography: Patterson, D. A.; Hennessy, J. L. Computer Architecture: A quantitative Approach, 4th Ed. Morgan Kaufmann Publishers.

“The use of large, multilevel caches can substantially reduce the memory bandwidth

demands of a processor.”

Hennessy and Patterson