SlideShare a Scribd company logo
2
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.
?

More Related Content

PPTX
Cache coherence ppt
PPTX
Cache coherence
PDF
Cache coherence
PPTX
Computer architecture memory system
PPT
04 cache memory.ppt 1
PDF
Memory management
PPTX
Cache Memory
PPT
Pipeline hazards in computer Architecture ppt
Cache coherence ppt
Cache coherence
Cache coherence
Computer architecture memory system
04 cache memory.ppt 1
Memory management
Cache Memory
Pipeline hazards in computer Architecture ppt

What's hot (20)

PPTX
Associative memory 14208
PPTX
Interleaved memory
PPT
Computer architecture
PPT
Thrashing allocation frames.43
PPTX
Multiprocessor
PPTX
Computer registers
PDF
Run time storage
PPTX
Cache memory
PPTX
Computer arithmetic
PPT
Memory management
PPTX
file sharing semantics by Umar Danjuma Maiwada
PPTX
Memory technology and optimization in Advance Computer Architechture
PPTX
Multiprocessor
PPTX
Cache coherence problem and its solutions
PPT
Allocation methods continuous method.47
PDF
Computer organization memory
PPTX
Csma cd and csma-ca
PPS
Cache memory
PDF
Unit IV Memory and I/O Organization
Associative memory 14208
Interleaved memory
Computer architecture
Thrashing allocation frames.43
Multiprocessor
Computer registers
Run time storage
Cache memory
Computer arithmetic
Memory management
file sharing semantics by Umar Danjuma Maiwada
Memory technology and optimization in Advance Computer Architechture
Multiprocessor
Cache coherence problem and its solutions
Allocation methods continuous method.47
Computer organization memory
Csma cd and csma-ca
Cache memory
Unit IV Memory and I/O Organization
Ad

Similar to Cache coherence (20)

PPTX
Lecture-7 Main Memroy.pptx
PPT
Introduction to symmetric multiprocessor
PPT
Memory Management in Operating Systems for all
PPT
chapter-6-multiprocessors-and-thread-level (1).ppt
PPT
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
PDF
22CS201 COA
PPTX
Cache Coherence.pptx
PPTX
Cache simulator
PPTX
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
PDF
Ch8 main memory
PPT
operationg systemsdocumentmemorymanagement
PPT
OS-unit-3 part -1mxmxmxmmxmxmmxmxmxmxmxmmxmxmmx.ppt
PPT
Operating systems- Main Memory Management
PDF
MK Sistem Operasi.pdf
PDF
Memory Management.pdf
PPTX
UNIT 3-EXPLAINING THE MEMORY MANAGEMENT LOGICAL AND AND PHYSICAL DATA FLOW DI...
PDF
Mahti quick-start guide
PPTX
Parallel Processing Presentation2
PPTX
Cache Memory.pptx
PDF
KA 5 - Lecture 1 - Parallel Processing.pdf
Lecture-7 Main Memroy.pptx
Introduction to symmetric multiprocessor
Memory Management in Operating Systems for all
chapter-6-multiprocessors-and-thread-level (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
22CS201 COA
Cache Coherence.pptx
Cache simulator
assignment_presentaion_jhvvnvhjhbhjhvjh.pptx
Ch8 main memory
operationg systemsdocumentmemorymanagement
OS-unit-3 part -1mxmxmxmmxmxmmxmxmxmxmxmmxmxmmx.ppt
Operating systems- Main Memory Management
MK Sistem Operasi.pdf
Memory Management.pdf
UNIT 3-EXPLAINING THE MEMORY MANAGEMENT LOGICAL AND AND PHYSICAL DATA FLOW DI...
Mahti quick-start guide
Parallel Processing Presentation2
Cache Memory.pptx
KA 5 - Lecture 1 - Parallel Processing.pdf
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. ?