SlideShare uma empresa Scribd logo
1 de 14
1
Basic Components of a Parallel (or Serial) Computer
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
CPU
MEM
•Processors
• Memory
•Interconnect Network
2
Processor Related Terms
• RISC: Reduced Instruction Set Computers
• PIPELINE : Technique where multiple instructions
are overlapped in execution
• SUPERSCALAR: Multiple instructions per clock
period
3
Network Interconnect Related Terms
• LATENCY : How long does it take to start sending
a "message"? Units are generally microseconds
or milliseconds.
• BANDWIDTH : What data rate can be sustained
once the message is started? Units are bytes/sec,
Mbytes/sec, Gbytes/sec etc.
• TOPLOGY: What is the actual ‘shape’ of the
interconnect? Are the nodes connect by a 2D
mesh? A ring? Something more elaborate?
4
Memory/Cache Related Terms
CPU
MAIN MEMORY
Cache
CACHE : Cache is the level of memory hierarchy between
the CPU and main memory. Cache is much smaller than
main memory and hence there is mapping of data from
main memory to cache.
5
Memory/Cache Related Terms
• ICACHE : Instruction cache
• DCACHE (L1) : Data cache closest to registers
• SCACHE (L2) : Secondary data cache
– Data from SCACHE has to go through DCACHE
to registers
– SCACHE is larger than DCACHE
– All processors do not have SCACHE
• TLB : Translation-lookaside buffer keeps
addresses of pages ( block of memory) in main
memory that have recently been accessed
6
Memory/Cache Related Terms (cont.)
CPU
MEMORY
(e.g., L1 cache)
MEMORY
(e.g., L2 cache)
MEMORY
(e.g., DRAM)
SPEED SIZE Cost ($/bit)
7
Memory/Cache Related Terms (cont.)
• The data cache was designed with two key concepts in
mind
– Spatial Locality
• When an element is referenced its neighbors will be
referenced too
• Cache lines are fetched together
• Work on consecutive data elements in the same cache
line
– Temporal Locality
• When an element is referenced, it might be referenced
again soon
• Arrange code so that date in cache is reused as often as
possible
8
Memory/Cache Related Terms (cont.)
Direct mapped cache: A block from main memory can go in
exactly one place in the cache. This is called direct mapped
because there is direct mapping from any block address in
memory to a single location in the cache.
cache
Main memory
9
Memory/Cache Related Terms (cont.)
Fully associative cache : A block from main memory can be
placed in any location in the cache. This is called fully
associative because a block in main memory may be
associated with any entry in the cache.
cache
Main memory
Memory/Cache Related Terms (cont.)
Set associative cache : The middle range of designs between
direct mapped cache and fully associative cache is called
set-associative cache. In a n-way set-associative cache a
block from main memory can go into n (n at least 2)
locations in the cache.
2-way set-associative cache
Main memory
Memory/Cache Related Terms (cont.)
• Least Recently Used (LRU) : Cache replacement
strategy for set associative caches. The cache
block that is least recently used is replaced with a
new block.
• Random Replace : Cache replacement strategy
for set associative caches. A cache block is
randomly replaced.
Types of Parallel Computers
• Until recently, Flynn's taxonomy was commonly
use to classify parallel computers into one of four
basic types:
– Single instruction, single data (SISD): single scalar
processor
– Single instruction, multiple data (SIMD): Thinking
machines CM-2
– Multiple instruction, single data (MISD): various
special purpose machines
– Multiple instruction, multiple data (MIMD): Nearly
all parallel machines
• However, since the MIMD model “won,” a much
more useful way to classify modern parallel
computers is by their memory model
– shared memory
– distributed memory
– (more recently) hybrid of the above two (also
called multi-tiered, CLUMPS )
P P P P P P
B U S / Cross Bar
M e m o r y
Shared and Distributed memory
Shared memory: single address
space. All processors have access
to a pool of shared memory.
(examples: Sun ES10000)
Methods of memory access :
- Bus
- Crossbar
Distributed memory: each processor
has it’s own local memory. Must do
message passing to exchange data
between processors.
(examples: IBM SP, CRAY T3E)
M
P
M
P
M
P
M
P
M
P
M
P
Network

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Coherence and consistency models in multiprocessor architecture
Coherence and consistency models in multiprocessor architectureCoherence and consistency models in multiprocessor architecture
Coherence and consistency models in multiprocessor architecture
 
Address mapping
Address mappingAddress mapping
Address mapping
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
 
Snooping 2
Snooping 2Snooping 2
Snooping 2
 
Lecture 6.1
Lecture  6.1Lecture  6.1
Lecture 6.1
 
Snooping protocols 3
Snooping protocols 3Snooping protocols 3
Snooping protocols 3
 
Shared-Memory Multiprocessors
Shared-Memory MultiprocessorsShared-Memory Multiprocessors
Shared-Memory Multiprocessors
 
Cache memoy designed by Mohd Tariq
Cache memoy designed by Mohd TariqCache memoy designed by Mohd Tariq
Cache memoy designed by Mohd Tariq
 
Cache memory principles
Cache memory principlesCache memory principles
Cache memory principles
 
Mesi
MesiMesi
Mesi
 
Shared Memory Multi Processor
Shared Memory Multi ProcessorShared Memory Multi Processor
Shared Memory Multi Processor
 
Cache memory and cache
Cache memory and cacheCache memory and cache
Cache memory and cache
 
Cache memory
Cache memoryCache memory
Cache memory
 
cache memory
 cache memory cache memory
cache memory
 
cache memory management
cache memory managementcache memory management
cache memory management
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cachememory
CachememoryCachememory
Cachememory
 
Mapping
MappingMapping
Mapping
 

Destaque

Towards a Multilingual Ontology for Ontology-driven Content Mining in Social ...
Towards a Multilingual Ontology for Ontology-driven Content Mining in Social ...Towards a Multilingual Ontology for Ontology-driven Content Mining in Social ...
Towards a Multilingual Ontology for Ontology-driven Content Mining in Social ...Marcirio Chaves
 
A Identificação de Riscos Novos e Potencializados em Projetos de Tecnologia d...
A Identificação de Riscos Novos e Potencializados em Projetos de Tecnologia d...A Identificação de Riscos Novos e Potencializados em Projetos de Tecnologia d...
A Identificação de Riscos Novos e Potencializados em Projetos de Tecnologia d...Marcirio Chaves
 
A Multidomain and Multilingual Conceptual Data Model for Online Reviews Repre...
A Multidomain and Multilingual Conceptual Data Model for Online Reviews Repre...A Multidomain and Multilingual Conceptual Data Model for Online Reviews Repre...
A Multidomain and Multilingual Conceptual Data Model for Online Reviews Repre...Marcirio Chaves
 
Revisita e Análise dos Métodos para Captura de Lições Aprendidas: Uma Contrib...
Revisita e Análise dos Métodos para Captura de Lições Aprendidas: Uma Contrib...Revisita e Análise dos Métodos para Captura de Lições Aprendidas: Uma Contrib...
Revisita e Análise dos Métodos para Captura de Lições Aprendidas: Uma Contrib...Marcirio Chaves
 
A Fine-Grained Analysis of User-Generated Content to Support Decision Making
A Fine-Grained Analysis of User-Generated Content to Support Decision MakingA Fine-Grained Analysis of User-Generated Content to Support Decision Making
A Fine-Grained Analysis of User-Generated Content to Support Decision MakingMarcirio Chaves
 
Database management system chapter15
Database management system chapter15Database management system chapter15
Database management system chapter15Md. Mahedi Mahfuj
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12Md. Mahedi Mahfuj
 
Tutorial on Parallel Computing and Message Passing Model - C5
Tutorial on Parallel Computing and Message Passing Model - C5Tutorial on Parallel Computing and Message Passing Model - C5
Tutorial on Parallel Computing and Message Passing Model - C5Marcirio Chaves
 
Tutorial on Parallel Computing and Message Passing Model - C4
Tutorial on Parallel Computing and Message Passing Model - C4Tutorial on Parallel Computing and Message Passing Model - C4
Tutorial on Parallel Computing and Message Passing Model - C4Marcirio Chaves
 
Collective Communications in MPI
 Collective Communications in MPI Collective Communications in MPI
Collective Communications in MPIHanif Durad
 
Tutorial on Parallel Computing and Message Passing Model - C2
Tutorial on Parallel Computing and Message Passing Model - C2Tutorial on Parallel Computing and Message Passing Model - C2
Tutorial on Parallel Computing and Message Passing Model - C2Marcirio Chaves
 

Destaque (20)

Towards a Multilingual Ontology for Ontology-driven Content Mining in Social ...
Towards a Multilingual Ontology for Ontology-driven Content Mining in Social ...Towards a Multilingual Ontology for Ontology-driven Content Mining in Social ...
Towards a Multilingual Ontology for Ontology-driven Content Mining in Social ...
 
Clustering manual
Clustering manualClustering manual
Clustering manual
 
A Identificação de Riscos Novos e Potencializados em Projetos de Tecnologia d...
A Identificação de Riscos Novos e Potencializados em Projetos de Tecnologia d...A Identificação de Riscos Novos e Potencializados em Projetos de Tecnologia d...
A Identificação de Riscos Novos e Potencializados em Projetos de Tecnologia d...
 
Lecture1
Lecture1Lecture1
Lecture1
 
A Multidomain and Multilingual Conceptual Data Model for Online Reviews Repre...
A Multidomain and Multilingual Conceptual Data Model for Online Reviews Repre...A Multidomain and Multilingual Conceptual Data Model for Online Reviews Repre...
A Multidomain and Multilingual Conceptual Data Model for Online Reviews Repre...
 
Matrix multiplication graph
Matrix multiplication graphMatrix multiplication graph
Matrix multiplication graph
 
Phd Marcirio Chaves
Phd Marcirio ChavesPhd Marcirio Chaves
Phd Marcirio Chaves
 
Revisita e Análise dos Métodos para Captura de Lições Aprendidas: Uma Contrib...
Revisita e Análise dos Métodos para Captura de Lições Aprendidas: Uma Contrib...Revisita e Análise dos Métodos para Captura de Lições Aprendidas: Uma Contrib...
Revisita e Análise dos Métodos para Captura de Lições Aprendidas: Uma Contrib...
 
A Fine-Grained Analysis of User-Generated Content to Support Decision Making
A Fine-Grained Analysis of User-Generated Content to Support Decision MakingA Fine-Grained Analysis of User-Generated Content to Support Decision Making
A Fine-Grained Analysis of User-Generated Content to Support Decision Making
 
Parallel computing(1)
Parallel computing(1)Parallel computing(1)
Parallel computing(1)
 
Observer pattern
Observer patternObserver pattern
Observer pattern
 
Job search_resume
Job search_resumeJob search_resume
Job search_resume
 
Database management system chapter15
Database management system chapter15Database management system chapter15
Database management system chapter15
 
Database management system chapter12
Database management system chapter12Database management system chapter12
Database management system chapter12
 
Job search_interview
Job search_interviewJob search_interview
Job search_interview
 
Tutorial on Parallel Computing and Message Passing Model - C5
Tutorial on Parallel Computing and Message Passing Model - C5Tutorial on Parallel Computing and Message Passing Model - C5
Tutorial on Parallel Computing and Message Passing Model - C5
 
Tutorial on Parallel Computing and Message Passing Model - C4
Tutorial on Parallel Computing and Message Passing Model - C4Tutorial on Parallel Computing and Message Passing Model - C4
Tutorial on Parallel Computing and Message Passing Model - C4
 
Collective Communications in MPI
 Collective Communications in MPI Collective Communications in MPI
Collective Communications in MPI
 
Chapter 1 pc
Chapter 1 pcChapter 1 pc
Chapter 1 pc
 
Tutorial on Parallel Computing and Message Passing Model - C2
Tutorial on Parallel Computing and Message Passing Model - C2Tutorial on Parallel Computing and Message Passing Model - C2
Tutorial on Parallel Computing and Message Passing Model - C2
 

Semelhante a Lecture2

Computer System Architecture Lecture Note 8.2 Cache Memory
Computer System Architecture Lecture Note 8.2 Cache MemoryComputer System Architecture Lecture Note 8.2 Cache Memory
Computer System Architecture Lecture Note 8.2 Cache MemoryBudditha Hettige
 
Computer architecture for HNDIT
Computer architecture for HNDITComputer architecture for HNDIT
Computer architecture for HNDITtjunicornfx
 
CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...Asst.prof M.Gokilavani
 
Cache.pptx
Cache.pptxCache.pptx
Cache.pptxVCETCSE
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Parallel Computing - Lec 3
Parallel Computing - Lec 3Parallel Computing - Lec 3
Parallel Computing - Lec 3Shah Zaib
 
Ct213 memory subsystem
Ct213 memory subsystemCt213 memory subsystem
Ct213 memory subsystemSandeep Kamath
 
Memory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer OrganizationMemory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer Organization2022002857mbit
 
Memory organization
Memory organizationMemory organization
Memory organizationishapadhy
 
Memory organization.pptx
Memory organization.pptxMemory organization.pptx
Memory organization.pptxRamanRay105
 
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSINGADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING Zena Abo-Altaheen
 
Introduction to memory management
Introduction to memory managementIntroduction to memory management
Introduction to memory managementSweety Singhal
 
Multiprocessor.pptx
 Multiprocessor.pptx Multiprocessor.pptx
Multiprocessor.pptxMuhammad54342
 

Semelhante a Lecture2 (20)

Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Computer System Architecture Lecture Note 8.2 Cache Memory
Computer System Architecture Lecture Note 8.2 Cache MemoryComputer System Architecture Lecture Note 8.2 Cache Memory
Computer System Architecture Lecture Note 8.2 Cache Memory
 
Computer architecture for HNDIT
Computer architecture for HNDITComputer architecture for HNDIT
Computer architecture for HNDIT
 
Memory (Computer Organization)
Memory (Computer Organization)Memory (Computer Organization)
Memory (Computer Organization)
 
CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...
 
22CS201 COA
22CS201 COA22CS201 COA
22CS201 COA
 
Cache Memory.pptx
Cache Memory.pptxCache Memory.pptx
Cache Memory.pptx
 
Massively Parallel Architectures
Massively Parallel ArchitecturesMassively Parallel Architectures
Massively Parallel Architectures
 
Cache.pptx
Cache.pptxCache.pptx
Cache.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Parallel Computing - Lec 3
Parallel Computing - Lec 3Parallel Computing - Lec 3
Parallel Computing - Lec 3
 
Ct213 memory subsystem
Ct213 memory subsystemCt213 memory subsystem
Ct213 memory subsystem
 
Memory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer OrganizationMemory Hierarchy PPT of Computer Organization
Memory Hierarchy PPT of Computer Organization
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Auxiliary, Cache and Virtual memory.pptx
Auxiliary, Cache and Virtual memory.pptxAuxiliary, Cache and Virtual memory.pptx
Auxiliary, Cache and Virtual memory.pptx
 
Memory organization.pptx
Memory organization.pptxMemory organization.pptx
Memory organization.pptx
 
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSINGADVANCED COMPUTER ARCHITECTUREAND PARALLEL PROCESSING
ADVANCED COMPUTER ARCHITECTURE AND PARALLEL PROCESSING
 
Introduction to memory management
Introduction to memory managementIntroduction to memory management
Introduction to memory management
 
12-6810-12.ppt
12-6810-12.ppt12-6810-12.ppt
12-6810-12.ppt
 
Multiprocessor.pptx
 Multiprocessor.pptx Multiprocessor.pptx
Multiprocessor.pptx
 

Mais de tt_aljobory (20)

Homework 2 sol
Homework 2 solHomework 2 sol
Homework 2 sol
 
Lecture12
Lecture12Lecture12
Lecture12
 
Lecture11
Lecture11Lecture11
Lecture11
 
Lecture10
Lecture10Lecture10
Lecture10
 
Lecture9
Lecture9Lecture9
Lecture9
 
Lecture7
Lecture7Lecture7
Lecture7
 
Lecture8
Lecture8Lecture8
Lecture8
 
Lecture6
Lecture6Lecture6
Lecture6
 
Lecture5
Lecture5Lecture5
Lecture5
 
Lecture4
Lecture4Lecture4
Lecture4
 
Lecture3
Lecture3Lecture3
Lecture3
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Good example on ga
Good example on gaGood example on ga
Good example on ga
 
Lect3
Lect3Lect3
Lect3
 
Lect4
Lect4Lect4
Lect4
 
Lect4
Lect4Lect4
Lect4
 
Above theclouds
Above thecloudsAbove theclouds
Above theclouds
 
Inet prog
Inet progInet prog
Inet prog
 
Form
FormForm
Form
 
8051 experiments1
8051 experiments18051 experiments1
8051 experiments1
 

Lecture2

  • 1. 1 Basic Components of a Parallel (or Serial) Computer CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM CPU MEM •Processors • Memory •Interconnect Network
  • 2. 2 Processor Related Terms • RISC: Reduced Instruction Set Computers • PIPELINE : Technique where multiple instructions are overlapped in execution • SUPERSCALAR: Multiple instructions per clock period
  • 3. 3 Network Interconnect Related Terms • LATENCY : How long does it take to start sending a "message"? Units are generally microseconds or milliseconds. • BANDWIDTH : What data rate can be sustained once the message is started? Units are bytes/sec, Mbytes/sec, Gbytes/sec etc. • TOPLOGY: What is the actual ‘shape’ of the interconnect? Are the nodes connect by a 2D mesh? A ring? Something more elaborate?
  • 4. 4 Memory/Cache Related Terms CPU MAIN MEMORY Cache CACHE : Cache is the level of memory hierarchy between the CPU and main memory. Cache is much smaller than main memory and hence there is mapping of data from main memory to cache.
  • 5. 5 Memory/Cache Related Terms • ICACHE : Instruction cache • DCACHE (L1) : Data cache closest to registers • SCACHE (L2) : Secondary data cache – Data from SCACHE has to go through DCACHE to registers – SCACHE is larger than DCACHE – All processors do not have SCACHE • TLB : Translation-lookaside buffer keeps addresses of pages ( block of memory) in main memory that have recently been accessed
  • 6. 6 Memory/Cache Related Terms (cont.) CPU MEMORY (e.g., L1 cache) MEMORY (e.g., L2 cache) MEMORY (e.g., DRAM) SPEED SIZE Cost ($/bit)
  • 7. 7 Memory/Cache Related Terms (cont.) • The data cache was designed with two key concepts in mind – Spatial Locality • When an element is referenced its neighbors will be referenced too • Cache lines are fetched together • Work on consecutive data elements in the same cache line – Temporal Locality • When an element is referenced, it might be referenced again soon • Arrange code so that date in cache is reused as often as possible
  • 8. 8 Memory/Cache Related Terms (cont.) Direct mapped cache: A block from main memory can go in exactly one place in the cache. This is called direct mapped because there is direct mapping from any block address in memory to a single location in the cache. cache Main memory
  • 9. 9 Memory/Cache Related Terms (cont.) Fully associative cache : A block from main memory can be placed in any location in the cache. This is called fully associative because a block in main memory may be associated with any entry in the cache. cache Main memory
  • 10. Memory/Cache Related Terms (cont.) Set associative cache : The middle range of designs between direct mapped cache and fully associative cache is called set-associative cache. In a n-way set-associative cache a block from main memory can go into n (n at least 2) locations in the cache. 2-way set-associative cache Main memory
  • 11. Memory/Cache Related Terms (cont.) • Least Recently Used (LRU) : Cache replacement strategy for set associative caches. The cache block that is least recently used is replaced with a new block. • Random Replace : Cache replacement strategy for set associative caches. A cache block is randomly replaced.
  • 12. Types of Parallel Computers • Until recently, Flynn's taxonomy was commonly use to classify parallel computers into one of four basic types: – Single instruction, single data (SISD): single scalar processor – Single instruction, multiple data (SIMD): Thinking machines CM-2 – Multiple instruction, single data (MISD): various special purpose machines – Multiple instruction, multiple data (MIMD): Nearly all parallel machines
  • 13. • However, since the MIMD model “won,” a much more useful way to classify modern parallel computers is by their memory model – shared memory – distributed memory – (more recently) hybrid of the above two (also called multi-tiered, CLUMPS )
  • 14. P P P P P P B U S / Cross Bar M e m o r y Shared and Distributed memory Shared memory: single address space. All processors have access to a pool of shared memory. (examples: Sun ES10000) Methods of memory access : - Bus - Crossbar Distributed memory: each processor has it’s own local memory. Must do message passing to exchange data between processors. (examples: IBM SP, CRAY T3E) M P M P M P M P M P M P Network