際際滷

際際滷Share a Scribd company logo
2
Most read
4
Most read
5
Most read
Cache Coherence for
  Multiprocessors
Presented by Adesh Mishra
    Reg. No.:1111427
   Roll No.:RD1107A44
 Shared-Memory Multiprocessor
all processor share a common memory,
each processor have own cache.
 Cache Coherence Problem
 Solutions to Cache Coherence
   Hardware
       Policies
       Two Primary Categories
   Software
Shared-Memory Multiprocessor
Cache Coherence Problem
 Multiple copy of the same data can exist in the different
  caches simultaneously,
 and if processors allowed to update their own copies freely,
  an inconsistent view of memory can result.
 Write policies : write back, write through
->In the write back policy only cache is updated and the location
   marked so that it can be copied later into main memory.
->In the write through policy cache and main memory are
   updated with every write operation.
Solutions to Cache Coherence
 Hardware Solution : in hardware solution the cache
  controller specify designed to allow it to monitor all bus
  requests from CPUs and IOPs.
->Directory protocol :
  >it collect & maintain the information about copies of lines
  reside .
  >contain the information about content of various local
  caches.
    >keeping the information up-to-date.
    >manage the information which caches copy of which line.
   Drawback  only for less buses not large scale system
Snoopy Cache Protocol
 ->distributed responsibility for maintaining cache coherence
   among all of the cache controller in the multiprocessor.
Basic Approach: write invalid & write update.
 Write invalid protocol  there can be multiple readers but
  only one writer at a time, only one cache can write to the line.
 Write update protocol  there can be multiple writer as
   well as multiple readers.
 ->when a processor wishes to update a shared line, the word to
   be distributed to all others, and caches containing that line
   can update it.
Software cache solution
 in the software based protocol relying on the operating
  system and Compiler.
 Compiler-based coherence mechanisms performed an
  analysis on the code to determine which data items become
  unsafe for caching, and the mark those item accordingly.
 The operating system prevent any non-cacheable items from
  being cached.
 Software Approaches are attractive because to overhead of
  detecting potential problems is transferred run time to
  compile time.
?
Ad

Recommended

Memory Organization
Memory Organization
Kamal Acharya
Cache coherence problem and its solutions
Cache coherence problem and its solutions
Majid Saleem
Opetating System Memory management
Opetating System Memory management
Johan Granados Montero
Interrupts
Interrupts
Urwa Shanza
8 memory management strategies
8 memory management strategies
Dr. Loganathan R
Cache coherence
Cache coherence
Priyam Pandey
Memory management
Memory management
Rajni Sirohi
9 virtual memory management
9 virtual memory management
Dr. Loganathan R
Operating systems system structures
Operating systems system structures
Mukesh Chinta
Operating system structures
Operating system structures
Mohd Arif
Virtual memory management in Operating System
Virtual memory management in Operating System
Rashmi Bhat
Computer architecture virtual memory
Computer architecture virtual memory
Mazin Alwaaly
Memory organization (Computer architecture)
Memory organization (Computer architecture)
Sandesh Jonchhe
Parallel architecture
Parallel architecture
Mr SMAK
Parallel computing
Parallel computing
Vinay Gupta
Cache memory
Cache memory
Anuj Modi
Cache coherence
Cache coherence
Shyam Krishna Khadka
Parallel processing
Parallel processing
rajshreemuthiah
RAM and ROM Memory Overview
RAM and ROM Memory Overview
Pankaj Khodifad
Cache Memory
Cache Memory
Subid Biswas
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer Architecture
Balaji Vignesh
Linux Memory Management
Linux Memory Management
Suvendu Kumar Dash
Multi processor scheduling
Multi processor scheduling
Shashank Kapoor
Symmetric multiprocessing
Symmetric multiprocessing
Mohammad Ali Khan
Cache coherence ppt
Cache coherence ppt
ArendraSingh2
Distributed Operating System_1
Distributed Operating System_1
Dr Sandeep Kumar Poonia
Memory mapping
Memory mapping
SnehalataAgasti
operating system structure
operating system structure
Waseem Ud Din Farooqui
Lecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptx
Amanuelmergia
Introduction to symmetric multiprocessor
Introduction to symmetric multiprocessor
myjuni04

More Related Content

What's hot (20)

Operating systems system structures
Operating systems system structures
Mukesh Chinta
Operating system structures
Operating system structures
Mohd Arif
Virtual memory management in Operating System
Virtual memory management in Operating System
Rashmi Bhat
Computer architecture virtual memory
Computer architecture virtual memory
Mazin Alwaaly
Memory organization (Computer architecture)
Memory organization (Computer architecture)
Sandesh Jonchhe
Parallel architecture
Parallel architecture
Mr SMAK
Parallel computing
Parallel computing
Vinay Gupta
Cache memory
Cache memory
Anuj Modi
Cache coherence
Cache coherence
Shyam Krishna Khadka
Parallel processing
Parallel processing
rajshreemuthiah
RAM and ROM Memory Overview
RAM and ROM Memory Overview
Pankaj Khodifad
Cache Memory
Cache Memory
Subid Biswas
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer Architecture
Balaji Vignesh
Linux Memory Management
Linux Memory Management
Suvendu Kumar Dash
Multi processor scheduling
Multi processor scheduling
Shashank Kapoor
Symmetric multiprocessing
Symmetric multiprocessing
Mohammad Ali Khan
Cache coherence ppt
Cache coherence ppt
ArendraSingh2
Distributed Operating System_1
Distributed Operating System_1
Dr Sandeep Kumar Poonia
Memory mapping
Memory mapping
SnehalataAgasti
operating system structure
operating system structure
Waseem Ud Din Farooqui
Operating systems system structures
Operating systems system structures
Mukesh Chinta
Operating system structures
Operating system structures
Mohd Arif
Virtual memory management in Operating System
Virtual memory management in Operating System
Rashmi Bhat
Computer architecture virtual memory
Computer architecture virtual memory
Mazin Alwaaly
Memory organization (Computer architecture)
Memory organization (Computer architecture)
Sandesh Jonchhe
Parallel architecture
Parallel architecture
Mr SMAK
Parallel computing
Parallel computing
Vinay Gupta
Cache memory
Cache memory
Anuj Modi
RAM and ROM Memory Overview
RAM and ROM Memory Overview
Pankaj Khodifad
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer Architecture
Balaji Vignesh
Multi processor scheduling
Multi processor scheduling
Shashank Kapoor
Symmetric multiprocessing
Symmetric multiprocessing
Mohammad Ali Khan
Cache coherence ppt
Cache coherence ppt
ArendraSingh2

Similar to Cache coherence (20)

Lecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptx
Amanuelmergia
Introduction to symmetric multiprocessor
Introduction to symmetric multiprocessor
myjuni04
Memory Management in Operating Systems for all
Memory Management in Operating Systems for all
VSKAMCSPSGCT
chapter-6-multiprocessors-and-thread-level (1).ppt
chapter-6-multiprocessors-and-thread-level (1).ppt
harishM874937
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
ssuser5c9d4b1
22CS201 COA
22CS201 COA
Kathirvel Ayyaswamy
Cache Coherence.pptx
Cache Coherence.pptx
SamyakJain710491
Cache simulator
Cache simulator
Suraj Saini
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
23mu36
Ch8 main memory
Ch8 main memory
Welly Dian Astika
operationg systemsdocumentmemorymanagement
operationg systemsdocumentmemorymanagement
SNIGDHAAPPANABHOTLA
OS-unit-3 part -1mxmxmxmmxmxmmxmxmxmxmxmmxmxmmx.ppt
OS-unit-3 part -1mxmxmxmmxmxmmxmxmxmxmxmmxmxmmx.ppt
SNIGDHAAPPANABHOTLA
Operating systems- Main Memory Management
Operating systems- Main Memory Management
Dr. Chandrakant Divate
MK Sistem Operasi.pdf
MK Sistem Operasi.pdf
wisard1
Memory Management.pdf
Memory Management.pdf
SujanTimalsina5
UNIT 3-EXPLAINING THE MEMORY MANAGEMENT LOGICAL AND AND PHYSICAL DATA FLOW DI...
UNIT 3-EXPLAINING THE MEMORY MANAGEMENT LOGICAL AND AND PHYSICAL DATA FLOW DI...
LeahRachael
Mahti quick-start guide
Mahti quick-start guide
CSC - IT Center for Science
Parallel Processing Presentation2
Parallel Processing Presentation2
daniyalqureshi712
Cache Memory.pptx
Cache Memory.pptx
ssusere16bd9
KA 5 - Lecture 1 - Parallel Processing.pdf
KA 5 - Lecture 1 - Parallel Processing.pdf
Carlos701746
Lecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptx
Amanuelmergia
Introduction to symmetric multiprocessor
Introduction to symmetric multiprocessor
myjuni04
Memory Management in Operating Systems for all
Memory Management in Operating Systems for all
VSKAMCSPSGCT
chapter-6-multiprocessors-and-thread-level (1).ppt
chapter-6-multiprocessors-and-thread-level (1).ppt
harishM874937
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
ssuser5c9d4b1
Cache simulator
Cache simulator
Suraj Saini
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
23mu36
operationg systemsdocumentmemorymanagement
operationg systemsdocumentmemorymanagement
SNIGDHAAPPANABHOTLA
OS-unit-3 part -1mxmxmxmmxmxmmxmxmxmxmxmmxmxmmx.ppt
OS-unit-3 part -1mxmxmxmmxmxmmxmxmxmxmxmmxmxmmx.ppt
SNIGDHAAPPANABHOTLA
Operating systems- Main Memory Management
Operating systems- Main Memory Management
Dr. Chandrakant Divate
MK Sistem Operasi.pdf
MK Sistem Operasi.pdf
wisard1
Memory Management.pdf
Memory Management.pdf
SujanTimalsina5
UNIT 3-EXPLAINING THE MEMORY MANAGEMENT LOGICAL AND AND PHYSICAL DATA FLOW DI...
UNIT 3-EXPLAINING THE MEMORY MANAGEMENT LOGICAL AND AND PHYSICAL DATA FLOW DI...
LeahRachael
Parallel Processing Presentation2
Parallel Processing Presentation2
daniyalqureshi712
Cache Memory.pptx
Cache Memory.pptx
ssusere16bd9
KA 5 - Lecture 1 - Parallel Processing.pdf
KA 5 - Lecture 1 - Parallel Processing.pdf
Carlos701746
Ad

Cache coherence

  • 1. Cache Coherence for Multiprocessors Presented by Adesh Mishra Reg. No.:1111427 Roll No.:RD1107A44
  • 2. Shared-Memory Multiprocessor all processor share a common memory, each processor have own cache. Cache Coherence Problem Solutions to Cache Coherence Hardware Policies Two Primary Categories Software
  • 4. Cache Coherence Problem Multiple copy of the same data can exist in the different caches simultaneously, and if processors allowed to update their own copies freely, an inconsistent view of memory can result. Write policies : write back, write through ->In the write back policy only cache is updated and the location marked so that it can be copied later into main memory. ->In the write through policy cache and main memory are updated with every write operation.
  • 5. Solutions to Cache Coherence Hardware Solution : in hardware solution the cache controller specify designed to allow it to monitor all bus requests from CPUs and IOPs. ->Directory protocol : >it collect & maintain the information about copies of lines reside . >contain the information about content of various local caches. >keeping the information up-to-date. >manage the information which caches copy of which line. Drawback only for less buses not large scale system
  • 6. Snoopy Cache Protocol ->distributed responsibility for maintaining cache coherence among all of the cache controller in the multiprocessor. Basic Approach: write invalid & write update. Write invalid protocol there can be multiple readers but only one writer at a time, only one cache can write to the line. Write update protocol there can be multiple writer as well as multiple readers. ->when a processor wishes to update a shared line, the word to be distributed to all others, and caches containing that line can update it.
  • 7. Software cache solution in the software based protocol relying on the operating system and Compiler. Compiler-based coherence mechanisms performed an analysis on the code to determine which data items become unsafe for caching, and the mark those item accordingly. The operating system prevent any non-cacheable items from being cached. Software Approaches are attractive because to overhead of detecting potential problems is transferred run time to compile time.
  • 8. ?