SlideShare a Scribd company logo
1 of 36
Parallel Processing
Computer Organizations
Multiple Processor Organization
• Single instruction, single data stream – SISD
• Single instruction, multiple data stream – SIMD
• Multiple instruction, single data stream – MISD
• Multiple instruction, multiple data stream- MIMD
Single Instruction, Single Data Stream - SISD
• Single processor
• Single instruction stream
• Data stored in single memory
Single Instruction, Multiple Data Stream - SIMD
• Single machine instruction
— Each instruction executed on different set of data by
different processors
• Number of processing elements
— Machine controls simultaneous execution
– Lockstep basis
— Each processing element has associated data memory
• Application: Vector and array processing
Multiple Instruction, Single Data Stream - MISD
• Sequence of data
• Transmitted to set of processors
• Each processor executes different instruction
sequence
• Not clear if it has ever been implemented
Multiple Instruction, Multiple Data Stream- MIMD
• Set of processors
• Simultaneously executes different instruction
sequences
• Different sets of data
• Examples: SMPs, NUMA systems, and Clusters
Taxonomy of Parallel Processor Architectures
Block Diagram of Tightly Coupled Multiprocessor
• Processors share memory
• Communicate via that shared memory
Symmetric Multiprocessor Organization
Symmetric Multiprocessors
• A stand alone computer with the following
characteristics
— Two or more similar processors of comparable capacity
— Processors share same memory and I/O
— Processors are connected by a bus or other internal
connection
— Memory access time is approximately the same for each
processor
— All processors share access to I/O
– Either through same channels or different channels giving paths
to same devices
— All processors can perform the same functions (hence
symmetric)
— System controlled by integrated operating system
– providing interaction between processors
– Interaction at job, task, file and data element levels
IBM z990
Multiprocessor
Structure
SMP Advantages
• Performance
—If some work can be done in parallel
• Availability
—Since all processors can perform the same
functions, failure of a single processor does not
halt the system
• Incremental growth
—User can enhance performance by adding
additional processors
• Scaling
—Vendors can offer range of products based on
number of processors
Cache Coherence Problems
Popular solution - Snoopy Protocol
• Distribute cache coherence responsibility among
cache controllers
• Cache recognizes that a line is shared
• Updates announced to other caches
Loosely Coupled - Clusters
• Collection of independent whole uniprocessors or SMPs
— Usually called nodes
• Interconnected to form a cluster
• Working together as unified resource
— Illusion of being one machine
• Communication via fixed path or network connections
Cluster Configurations
Cluster Benefits
• Absolute scalability
• Incremental scalability
• High availability
• Superior price/performance
Cluster Computer Architecture
Cluster v. SMP
• Both provide multiprocessor support to high
demand applications.
• Both available commercially
• SMP:
—Easier to manage and control
—Closer to single processor systems
– Scheduling is main difference
– Less physical space
– Lower power consumption
• Clustering:
—Superior incremental & absolute scalability
—Less cost
—Superior availability
– Redundancy
Nonuniform Memory Access (NUMA)
(Tightly coupled)
• Alternative to SMP & Clusters
• Nonuniform memory access
— All processors have access to all parts of memory
– Using load & store
— Access time of processor differs depending on region of memory
– Different processors access different regions of memory at different
speeds
• Cache coherent NUMA ?
— Cache coherence is maintained among the caches of the various
processors
— Significantly different from SMP and Clusters
Motivation
• SMP has practical limit to number of
processors
—Bus traffic limits to between 16 and 64 processors
• In clusters each node has own memory
—Apps do not see large global memory
—Coherence maintained by software not hardware
• NUMA retains SMP flavour while giving large
scale multiprocessing
• Objective is to maintain transparent system
wide memory while permitting multiprocessor
nodes, each with own bus or internal
interconnection system
CC-NUMA Organization
NUMA Pros & Cons
• Possibly effective performance at higher
levels of parallelism than one SMP
• Not very supportive of software changes
• Performance can breakdown if too much
access to remote memory
—Can be avoided by:
– L1 & L2 cache design reducing all memory access
+ Need good temporal locality of software
• Not transparent
—Page allocation, process allocation and load
balancing changes can be difficult
• Availability?
Multithreading
• Instruction stream divided into smaller streams
(threads)
• Executed in parallel
• There are a wide variety of multithreading designs
Definitions of Threads and Processes
• Threads in multithreaded processors may or may not
be same as software threads
• Process:
— An instance of program running on computer
• Thread: dispatchable unit of work within process
— Includes processor context (which includes the program
counter and stack pointer) and data area for stack
— Thread executes sequentially
— Interruptible: processor can turn to another thread
• Thread switch
— Switching processor between threads within same process
— Typically less costly than process switch
Implicit and Explicit Multithreading
• All commercial processors and most
experimental ones use explicit multithreading
—Concurrently execute instructions from different
explicit threads
—Interleave instructions from different threads on
shared pipelines or parallel execution on parallel
pipelines
• Implicit multithreading is concurrent
execution of multiple threads extracted from
single sequential program
—Implicit threads defined statically by compiler or
dynamically by hardware
Approaches to Explicit Multithreading
• Interleaved
— Fine-grained
— Processor deals with two or more thread contexts at a time
— Switching thread at each clock cycle
— If thread is blocked it is skipped
• Blocked
— Coarse-grained
— Thread executed until event causes delay
— E.g. cache miss
— Effective on in-order processor
— Avoids pipeline stall
• Simultaneous (SMT)
— Instructions simultaneously issued from multiple threads to
execution units of superscalar processor
• Chip multiprocessing
— Processor is replicated on a single chip
— Each processor handles separate threads
Scalar Processor Approaches
• Single-threaded scalar
—Simple pipeline
—No multithreading
• Interleaved multithreaded scalar
—Easiest multithreading to implement
—Switch threads at each clock cycle
—Pipeline stages kept close to fully occupied
—Hardware needs to switch thread context between
cycles
• Blocked multithreaded scalar
—Thread executed until latency event occurs
—Would stop pipeline
—Processor switches to another thread
Scalar Diagrams
Multiple Instruction Issue Processors
• Superscalar
— No multithreading
• Interleaved multithreading superscalar:
— Each cycle, as many instructions as possible issued from
single thread
— Delays due to thread switches eliminated
— Number of instructions issued in cycle limited by
dependencies
• Blocked multithreaded superscalar
— Instructions from one thread
— Blocked multithreading used
Multiple Instruction Issue Diagram
Multiple Instruction Issue Processors
• Very long instruction word (VLIW)
—E.g. IA-64
—Multiple instructions in single word
—Typically constructed by compiler
—Operations may be executed in parallel in same word
—May pad with no-ops
• Interleaved multithreading VLIW
—Similar efficiencies to interleaved multithreading on
superscalar architecture
• Blocked multithreaded VLIW
—Similar efficiencies to blocked multithreading on
superscalar architecture
Multiple Instruction Issue Diagram
Parallel, Simultaneous
Execution of Multiple Threads
• Simultaneous multithreading
—Issue multiple instructions at a time
—One thread may fill all horizontal slots
—Instructions from two or more threads may be
issued
—With enough threads, can issue maximum number
of instructions on each cycle
• Chip multiprocessor
—Multiple processors
—Each has two-issue superscalar processor
—Each processor is assigned thread
– Can issue up to two instructions per cycle per thread
Parallel Diagram
Examples
• Some Pentium 4 (single processor)
—Intel calls it hyperthreading
—SMT with support for two threads
—Single multithreaded processor, logically two
processors
• IBM Power5
—High-end PowerPC
—Combines chip multiprocessing with SMT
—Chip has two separate processors
—Each supporting two threads concurrently using
SMT

More Related Content

What's hot

Multi Processors And Multi Computers
 Multi Processors And Multi Computers Multi Processors And Multi Computers
Multi Processors And Multi ComputersNemwos
 
Multiprocessor architecture
Multiprocessor architectureMultiprocessor architecture
Multiprocessor architectureArpan Baishya
 
multiprocessors and multicomputers
 multiprocessors and multicomputers multiprocessors and multicomputers
multiprocessors and multicomputersPankaj Kumar Jain
 
Applications of paralleL processing
Applications of paralleL processingApplications of paralleL processing
Applications of paralleL processingPage Maker
 
INTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptxINTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptxLECO9
 
MPI message passing interface
MPI message passing interfaceMPI message passing interface
MPI message passing interfaceMohit Raghuvanshi
 
Introduction to OpenMP (Performance)
Introduction to OpenMP (Performance)Introduction to OpenMP (Performance)
Introduction to OpenMP (Performance)Akhila Prabhakaran
 
Parallel computing chapter 3
Parallel computing chapter 3Parallel computing chapter 3
Parallel computing chapter 3Md. Mahedi Mahfuj
 
1 Computer Architecture
1 Computer Architecture1 Computer Architecture
1 Computer Architecturefika sweety
 
program partitioning and scheduling IN Advanced Computer Architecture
program partitioning and scheduling  IN Advanced Computer Architectureprogram partitioning and scheduling  IN Advanced Computer Architecture
program partitioning and scheduling IN Advanced Computer ArchitecturePankaj Kumar Jain
 
Multi core processors
Multi core processorsMulti core processors
Multi core processorsAdithya Bhat
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systemsvampugani
 
Flynns classification
Flynns classificationFlynns classification
Flynns classificationYasir Khan
 
Shared-Memory Multiprocessors
Shared-Memory MultiprocessorsShared-Memory Multiprocessors
Shared-Memory MultiprocessorsSalvatore La Bua
 
System interconnect architecture
System interconnect architectureSystem interconnect architecture
System interconnect architectureGagan Kumar
 

What's hot (20)

Multi Processors And Multi Computers
 Multi Processors And Multi Computers Multi Processors And Multi Computers
Multi Processors And Multi Computers
 
Multiprocessor architecture
Multiprocessor architectureMultiprocessor architecture
Multiprocessor architecture
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
multiprocessors and multicomputers
 multiprocessors and multicomputers multiprocessors and multicomputers
multiprocessors and multicomputers
 
Chpt7
Chpt7Chpt7
Chpt7
 
Applications of paralleL processing
Applications of paralleL processingApplications of paralleL processing
Applications of paralleL processing
 
Multi processing
Multi processingMulti processing
Multi processing
 
INTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptxINTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptx
 
MPI message passing interface
MPI message passing interfaceMPI message passing interface
MPI message passing interface
 
3 Pipelining
3 Pipelining3 Pipelining
3 Pipelining
 
Introduction to OpenMP (Performance)
Introduction to OpenMP (Performance)Introduction to OpenMP (Performance)
Introduction to OpenMP (Performance)
 
Parallel computing chapter 3
Parallel computing chapter 3Parallel computing chapter 3
Parallel computing chapter 3
 
Risc and cisc
Risc and ciscRisc and cisc
Risc and cisc
 
1 Computer Architecture
1 Computer Architecture1 Computer Architecture
1 Computer Architecture
 
program partitioning and scheduling IN Advanced Computer Architecture
program partitioning and scheduling  IN Advanced Computer Architectureprogram partitioning and scheduling  IN Advanced Computer Architecture
program partitioning and scheduling IN Advanced Computer Architecture
 
Multi core processors
Multi core processorsMulti core processors
Multi core processors
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systems
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 
Shared-Memory Multiprocessors
Shared-Memory MultiprocessorsShared-Memory Multiprocessors
Shared-Memory Multiprocessors
 
System interconnect architecture
System interconnect architectureSystem interconnect architecture
System interconnect architecture
 

Similar to Parallel processing

Similar to Parallel processing (20)

parallel-processing.ppt
parallel-processing.pptparallel-processing.ppt
parallel-processing.ppt
 
18 parallel processing
18 parallel processing18 parallel processing
18 parallel processing
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Parallel processing extra
Parallel processing extraParallel processing extra
Parallel processing extra
 
Lecture4
Lecture4Lecture4
Lecture4
 
Week 13-14 Parrallel Processing-new.pptx
Week 13-14 Parrallel Processing-new.pptxWeek 13-14 Parrallel Processing-new.pptx
Week 13-14 Parrallel Processing-new.pptx
 
parallel processing.ppt
parallel processing.pptparallel processing.ppt
parallel processing.ppt
 
chapter-18-parallel-processing-multiprocessing (1).ppt
chapter-18-parallel-processing-multiprocessing (1).pptchapter-18-parallel-processing-multiprocessing (1).ppt
chapter-18-parallel-processing-multiprocessing (1).ppt
 
Operating system 20 threads
Operating system 20 threadsOperating system 20 threads
Operating system 20 threads
 
OS_MD_4.pdf
OS_MD_4.pdfOS_MD_4.pdf
OS_MD_4.pdf
 
unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
 
unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
 
Threads.ppt
Threads.pptThreads.ppt
Threads.ppt
 
Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.ppt
 
Hardware Multithreading.pdf
Hardware Multithreading.pdfHardware Multithreading.pdf
Hardware Multithreading.pdf
 
Multicore processor.pdf
Multicore processor.pdfMulticore processor.pdf
Multicore processor.pdf
 
CA UNIT IV.pptx
CA UNIT IV.pptxCA UNIT IV.pptx
CA UNIT IV.pptx
 
chapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.pptchapter4-processes nd processors in DS.ppt
chapter4-processes nd processors in DS.ppt
 
22CS201 COA
22CS201 COA22CS201 COA
22CS201 COA
 
CSA unit5.pptx
CSA unit5.pptxCSA unit5.pptx
CSA unit5.pptx
 

More from Shivalik college of engineering

More from Shivalik college of engineering (20)

Front pages of practical file
Front pages of practical fileFront pages of practical file
Front pages of practical file
 
Algorithms Question bank
Algorithms Question bankAlgorithms Question bank
Algorithms Question bank
 
Video streaming
Video streamingVideo streaming
Video streaming
 
Infosystestpattern
InfosystestpatternInfosystestpattern
Infosystestpattern
 
Mydbms
MydbmsMydbms
Mydbms
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Net overview
Net overviewNet overview
Net overview
 
java vs C#
java vs C#java vs C#
java vs C#
 
stack presentation
stack presentationstack presentation
stack presentation
 
sear
searsear
sear
 
Dbms lab file format front page
Dbms lab file format front pageDbms lab file format front page
Dbms lab file format front page
 
Question bank toafl
Question bank toaflQuestion bank toafl
Question bank toafl
 
computer architecture.
computer architecture.computer architecture.
computer architecture.
 
SQA presenatation made by krishna ballabh gupta
SQA presenatation made by krishna ballabh guptaSQA presenatation made by krishna ballabh gupta
SQA presenatation made by krishna ballabh gupta
 
Webapplication ppt prepared by krishna ballabh gupta
Webapplication ppt prepared by krishna ballabh guptaWebapplication ppt prepared by krishna ballabh gupta
Webapplication ppt prepared by krishna ballabh gupta
 
Cloud computing prepare by krishna ballabh gupta
Cloud computing prepare by krishna ballabh guptaCloud computing prepare by krishna ballabh gupta
Cloud computing prepare by krishna ballabh gupta
 
Cloud computing kb gupta
Cloud computing kb guptaCloud computing kb gupta
Cloud computing kb gupta
 
comparing windows and linux ppt
comparing windows and linux pptcomparing windows and linux ppt
comparing windows and linux ppt
 
Gsm an introduction....
Gsm an introduction....Gsm an introduction....
Gsm an introduction....
 
Gsm an introduction....
Gsm an introduction....Gsm an introduction....
Gsm an introduction....
 

Recently uploaded

WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2
 
WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
WSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid EnvironmentsWSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid EnvironmentsWSO2
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2
 
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Eraconfluent
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 

Recently uploaded (20)

WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration Tooling
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid EnvironmentsWSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid Environments
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Era
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 

Parallel processing

  • 3. Multiple Processor Organization • Single instruction, single data stream – SISD • Single instruction, multiple data stream – SIMD • Multiple instruction, single data stream – MISD • Multiple instruction, multiple data stream- MIMD
  • 4. Single Instruction, Single Data Stream - SISD • Single processor • Single instruction stream • Data stored in single memory
  • 5. Single Instruction, Multiple Data Stream - SIMD • Single machine instruction — Each instruction executed on different set of data by different processors • Number of processing elements — Machine controls simultaneous execution – Lockstep basis — Each processing element has associated data memory • Application: Vector and array processing
  • 6. Multiple Instruction, Single Data Stream - MISD • Sequence of data • Transmitted to set of processors • Each processor executes different instruction sequence • Not clear if it has ever been implemented
  • 7. Multiple Instruction, Multiple Data Stream- MIMD • Set of processors • Simultaneously executes different instruction sequences • Different sets of data • Examples: SMPs, NUMA systems, and Clusters
  • 8. Taxonomy of Parallel Processor Architectures
  • 9. Block Diagram of Tightly Coupled Multiprocessor • Processors share memory • Communicate via that shared memory
  • 11. Symmetric Multiprocessors • A stand alone computer with the following characteristics — Two or more similar processors of comparable capacity — Processors share same memory and I/O — Processors are connected by a bus or other internal connection — Memory access time is approximately the same for each processor — All processors share access to I/O – Either through same channels or different channels giving paths to same devices — All processors can perform the same functions (hence symmetric) — System controlled by integrated operating system – providing interaction between processors – Interaction at job, task, file and data element levels
  • 13. SMP Advantages • Performance —If some work can be done in parallel • Availability —Since all processors can perform the same functions, failure of a single processor does not halt the system • Incremental growth —User can enhance performance by adding additional processors • Scaling —Vendors can offer range of products based on number of processors
  • 14. Cache Coherence Problems Popular solution - Snoopy Protocol • Distribute cache coherence responsibility among cache controllers • Cache recognizes that a line is shared • Updates announced to other caches
  • 15. Loosely Coupled - Clusters • Collection of independent whole uniprocessors or SMPs — Usually called nodes • Interconnected to form a cluster • Working together as unified resource — Illusion of being one machine • Communication via fixed path or network connections
  • 17. Cluster Benefits • Absolute scalability • Incremental scalability • High availability • Superior price/performance
  • 19. Cluster v. SMP • Both provide multiprocessor support to high demand applications. • Both available commercially • SMP: —Easier to manage and control —Closer to single processor systems – Scheduling is main difference – Less physical space – Lower power consumption • Clustering: —Superior incremental & absolute scalability —Less cost —Superior availability – Redundancy
  • 20. Nonuniform Memory Access (NUMA) (Tightly coupled) • Alternative to SMP & Clusters • Nonuniform memory access — All processors have access to all parts of memory – Using load & store — Access time of processor differs depending on region of memory – Different processors access different regions of memory at different speeds • Cache coherent NUMA ? — Cache coherence is maintained among the caches of the various processors — Significantly different from SMP and Clusters
  • 21. Motivation • SMP has practical limit to number of processors —Bus traffic limits to between 16 and 64 processors • In clusters each node has own memory —Apps do not see large global memory —Coherence maintained by software not hardware • NUMA retains SMP flavour while giving large scale multiprocessing • Objective is to maintain transparent system wide memory while permitting multiprocessor nodes, each with own bus or internal interconnection system
  • 23. NUMA Pros & Cons • Possibly effective performance at higher levels of parallelism than one SMP • Not very supportive of software changes • Performance can breakdown if too much access to remote memory —Can be avoided by: – L1 & L2 cache design reducing all memory access + Need good temporal locality of software • Not transparent —Page allocation, process allocation and load balancing changes can be difficult • Availability?
  • 24. Multithreading • Instruction stream divided into smaller streams (threads) • Executed in parallel • There are a wide variety of multithreading designs
  • 25. Definitions of Threads and Processes • Threads in multithreaded processors may or may not be same as software threads • Process: — An instance of program running on computer • Thread: dispatchable unit of work within process — Includes processor context (which includes the program counter and stack pointer) and data area for stack — Thread executes sequentially — Interruptible: processor can turn to another thread • Thread switch — Switching processor between threads within same process — Typically less costly than process switch
  • 26. Implicit and Explicit Multithreading • All commercial processors and most experimental ones use explicit multithreading —Concurrently execute instructions from different explicit threads —Interleave instructions from different threads on shared pipelines or parallel execution on parallel pipelines • Implicit multithreading is concurrent execution of multiple threads extracted from single sequential program —Implicit threads defined statically by compiler or dynamically by hardware
  • 27. Approaches to Explicit Multithreading • Interleaved — Fine-grained — Processor deals with two or more thread contexts at a time — Switching thread at each clock cycle — If thread is blocked it is skipped • Blocked — Coarse-grained — Thread executed until event causes delay — E.g. cache miss — Effective on in-order processor — Avoids pipeline stall • Simultaneous (SMT) — Instructions simultaneously issued from multiple threads to execution units of superscalar processor • Chip multiprocessing — Processor is replicated on a single chip — Each processor handles separate threads
  • 28. Scalar Processor Approaches • Single-threaded scalar —Simple pipeline —No multithreading • Interleaved multithreaded scalar —Easiest multithreading to implement —Switch threads at each clock cycle —Pipeline stages kept close to fully occupied —Hardware needs to switch thread context between cycles • Blocked multithreaded scalar —Thread executed until latency event occurs —Would stop pipeline —Processor switches to another thread
  • 30. Multiple Instruction Issue Processors • Superscalar — No multithreading • Interleaved multithreading superscalar: — Each cycle, as many instructions as possible issued from single thread — Delays due to thread switches eliminated — Number of instructions issued in cycle limited by dependencies • Blocked multithreaded superscalar — Instructions from one thread — Blocked multithreading used
  • 32. Multiple Instruction Issue Processors • Very long instruction word (VLIW) —E.g. IA-64 —Multiple instructions in single word —Typically constructed by compiler —Operations may be executed in parallel in same word —May pad with no-ops • Interleaved multithreading VLIW —Similar efficiencies to interleaved multithreading on superscalar architecture • Blocked multithreaded VLIW —Similar efficiencies to blocked multithreading on superscalar architecture
  • 34. Parallel, Simultaneous Execution of Multiple Threads • Simultaneous multithreading —Issue multiple instructions at a time —One thread may fill all horizontal slots —Instructions from two or more threads may be issued —With enough threads, can issue maximum number of instructions on each cycle • Chip multiprocessor —Multiple processors —Each has two-issue superscalar processor —Each processor is assigned thread – Can issue up to two instructions per cycle per thread
  • 36. Examples • Some Pentium 4 (single processor) —Intel calls it hyperthreading —SMT with support for two threads —Single multithreaded processor, logically two processors • IBM Power5 —High-end PowerPC —Combines chip multiprocessing with SMT —Chip has two separate processors —Each supporting two threads concurrently using SMT