SlideShare a Scribd company logo
Unit -5
Department of Computer Science - Kamban
College of Arts And Science For Women
SYLLABUS
Auxiliary memory – Main memory – Associative memory – Cache memory
– Virtual memory
Department of Computer Science - Kamban
College of Arts And Science For Women
AUXILIARY MEMORY
 It is used to overcome the limitations of primary storage
 Unlimited capacity because the cost per bit of storage is very low
 Larger capacity than main memory
 Used to store large volumes of data on a permanent basis
 It is non-volatile in nature
 Also known as secondary memory
Department of Computer Science - Kamban
College of Arts And Science For Women
MAGNETIC MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
MAGNETIC DISKS
Department of Computer Science - Kamban
College of Arts And Science For Women
MAGNETIC TAPES
Department of Computer Science - Kamban
College of Arts And Science For Women
MAIN MEMORY
 Memory unit that communicates directly with CPU
 Programs and data currently needed by the processor reside here
 Also known as primary memory
 RAM and ROM
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MEMORY ORGANIZATION
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MEMORY ORGANIZATION
 Associative memory is organized in such a way
 Argument register(A): It contains the word to be searched. It has n bit (one
for each bit of the word)
 key register(K): This specifies which part of the argument word needs to
be compared with words in memory. If all bits in register are q. the entire
word should be compared. Otherwise only the bits having k bit set to 1 will
be compared
 Associative memory array: It contains the words which any to be
compared with the argument word
 Match register(M): It has m bits. One bit corresponding to each word in
the memory array. After the matching process, the bits corresponding to
matching words in match register are set to 1
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MEMORY ORGANIZATION
Department of Computer Science - Kamban
College of Arts And Science For Women
DISADVANTAGES OF ASSOCIATIVE MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
ADVANTAGES OF ASSOCIATIVE MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
CACHE MAPPING
 There are most common methods available in cache mapping. They are,
• Direct Mapped Cache
• Associative Mapped Cache
• Set- Associated Mapped Cache
Department of Computer Science - Kamban
College of Arts And Science For Women
DIRECT MAPPING
 Each block of main memory maps to only one cache line
i.e., if a block is in cache, it must be is one specific place
 Address is in two parts;
• Least significant w bits identify unique word
• Most significant s bits specify one memory block
Department of Computer Science - Kamban
College of Arts And Science For Women
DIRECT MAPPING ADDRESS STRUCTURE
 24 bit address
 2 bit word identifier(4 byte block)
 22 bit block identifier
 8 bit tag(=22-14)
 14 bit slot or line
Department of Computer Science - Kamban
College of Arts And Science For Women
DIRECT MAPPING FROM CACHE TO MAIN MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
DIRECT MAPPING CACHE ORGANIZATION
Department of Computer Science - Kamban
College of Arts And Science For Women
ADVANTAGES
 The tag memory is much smaller than in associative mapped cache
 No need for an associative search, since the slot field is used to direct the
comparison to a single field.
DISADVANTAGES
 Consider what happens when a program references locations that are 219
words apart, which is the size of the cache. Every memory reference will
result in a miss, which will cause an entire block to be read into the cache
even though only a single word is used
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MAPPED CACHE
 A main memory block can load into any line of cache
 Memory address is interpreted as tag and word
 Tag uniquely identifies block of memory
 Every lines tag is examined for a match
 Cache searching gets expensive
Department of Computer Science - Kamban
College of Arts And Science For Women
ASSOCIATIVE MAPPED CACHE
Department of Computer Science - Kamban
College of Arts And Science For Women
ADVANTAGES
 Any main memory block can be placed into any cache slot
 Regardless of how irregular the data and program references are, if a slot is
available for the block, it can be stored in the cache
DISADVANTAGES
 Considerable hardware overhead needed for cache bookkeeping
 There must be a mechanism for searching the tag memory in parallel
Department of Computer Science - Kamban
College of Arts And Science For Women
SET ASSOCIATIVE MAPPING
 Cache is divided into a number of sets
 Each set contains a number of lines
 A given block maps to any line in a given set
 E.g. Block B can be in any line of set I
 2 way associative mapping
Department of Computer Science - Kamban
College of Arts And Science For Women
SET ASSOCIATIVE MAPPING
Department of Computer Science - Kamban
College of Arts And Science For Women
ADVANATAGES
 In our example the tag memory increases only slightly from the direct
mapping and only two tags need to be searched for each memory reference
 The set-associative cache is widely used in today’s micro processors
Department of Computer Science - Kamban
College of Arts And Science For Women
VIRTUAL MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
NEED OF VIRTUAL MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
ADDRESS SPACE AND MEMORY SPACE
Department of Computer Science - Kamban
College of Arts And Science For Women
PAGE REPLACEMENT ALGORITHMS
Department of Computer Science - Kamban
College of Arts And Science For Women
FIFO
Department of Computer Science - Kamban
College of Arts And Science For Women
LRU
Department of Computer Science - Kamban
College of Arts And Science For Women
OPT
Department of Computer Science - Kamban
College of Arts And Science For Women
ADVANTAGES OF VIRTUAL MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women
DISADVANTAGES OF VIRTUAL MEMORY
Department of Computer Science - Kamban
College of Arts And Science For Women

More Related Content

Similar to 20042602207.pptx

Cpu caching concepts mr mahesh
Cpu caching concepts mr maheshCpu caching concepts mr mahesh
Cpu caching concepts mr mahesh
Faridabad
 
High- Throughput CAM Based On Search and Shift Mechanism
High- Throughput CAM Based On Search and Shift MechanismHigh- Throughput CAM Based On Search and Shift Mechanism
High- Throughput CAM Based On Search and Shift Mechanism
IJERA Editor
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
Subid Biswas
 
cachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdfcachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdf
OmGadekar2
 
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
IJIR JOURNALS IJIRUSA
 
lecture-2-3_Memory.pdf,describing memory
lecture-2-3_Memory.pdf,describing memorylecture-2-3_Memory.pdf,describing memory
lecture-2-3_Memory.pdf,describing memory
floraaluoch3
 
Demand Paging-R.D.Sivakumar
Demand Paging-R.D.SivakumarDemand Paging-R.D.Sivakumar
Demand Paging-R.D.Sivakumar
Sivakumar R D .
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
PrabhanshuKatiyar1
 
Oversimplified CA
Oversimplified CAOversimplified CA
Oversimplified CA
PrabhanshuKatiyar1
 
Scaling Apache Spark at Facebook
Scaling Apache Spark at FacebookScaling Apache Spark at Facebook
Scaling Apache Spark at Facebook
Databricks
 
Different Approaches in Energy Efficient Cache Memory
Different Approaches in Energy Efficient Cache MemoryDifferent Approaches in Energy Efficient Cache Memory
Different Approaches in Energy Efficient Cache MemoryDhritiman Halder
 
Cache memory
Cache memoryCache memory
Cache memory
Ahsan Ashfaq
 
cache memory.ppt
cache memory.pptcache memory.ppt
cache memory.ppt
MUNAZARAZZAQELEA
 
cache memory.ppt
cache memory.pptcache memory.ppt
cache memory.ppt
MUNAZARAZZAQELEA
 
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset ErrorCounter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
IRJET Journal
 

Similar to 20042602207.pptx (15)

Cpu caching concepts mr mahesh
Cpu caching concepts mr maheshCpu caching concepts mr mahesh
Cpu caching concepts mr mahesh
 
High- Throughput CAM Based On Search and Shift Mechanism
High- Throughput CAM Based On Search and Shift MechanismHigh- Throughput CAM Based On Search and Shift Mechanism
High- Throughput CAM Based On Search and Shift Mechanism
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
 
cachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdfcachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdf
 
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
 
lecture-2-3_Memory.pdf,describing memory
lecture-2-3_Memory.pdf,describing memorylecture-2-3_Memory.pdf,describing memory
lecture-2-3_Memory.pdf,describing memory
 
Demand Paging-R.D.Sivakumar
Demand Paging-R.D.SivakumarDemand Paging-R.D.Sivakumar
Demand Paging-R.D.Sivakumar
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Oversimplified CA
Oversimplified CAOversimplified CA
Oversimplified CA
 
Scaling Apache Spark at Facebook
Scaling Apache Spark at FacebookScaling Apache Spark at Facebook
Scaling Apache Spark at Facebook
 
Different Approaches in Energy Efficient Cache Memory
Different Approaches in Energy Efficient Cache MemoryDifferent Approaches in Energy Efficient Cache Memory
Different Approaches in Energy Efficient Cache Memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
cache memory.ppt
cache memory.pptcache memory.ppt
cache memory.ppt
 
cache memory.ppt
cache memory.pptcache memory.ppt
cache memory.ppt
 
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset ErrorCounter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
Counter Matrix Code for SRAM Based FPGA to Correct Multi Bit Upset Error
 

Recently uploaded

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 

Recently uploaded (20)

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 

20042602207.pptx

  • 1. Unit -5 Department of Computer Science - Kamban College of Arts And Science For Women
  • 2. SYLLABUS Auxiliary memory – Main memory – Associative memory – Cache memory – Virtual memory Department of Computer Science - Kamban College of Arts And Science For Women
  • 3. AUXILIARY MEMORY  It is used to overcome the limitations of primary storage  Unlimited capacity because the cost per bit of storage is very low  Larger capacity than main memory  Used to store large volumes of data on a permanent basis  It is non-volatile in nature  Also known as secondary memory Department of Computer Science - Kamban College of Arts And Science For Women
  • 4. MAGNETIC MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 5. MAGNETIC DISKS Department of Computer Science - Kamban College of Arts And Science For Women
  • 6. MAGNETIC TAPES Department of Computer Science - Kamban College of Arts And Science For Women
  • 7. MAIN MEMORY  Memory unit that communicates directly with CPU  Programs and data currently needed by the processor reside here  Also known as primary memory  RAM and ROM Department of Computer Science - Kamban College of Arts And Science For Women
  • 8. ASSOCIATIVE MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 9. ASSOCIATIVE MEMORY ORGANIZATION Department of Computer Science - Kamban College of Arts And Science For Women
  • 10. ASSOCIATIVE MEMORY ORGANIZATION  Associative memory is organized in such a way  Argument register(A): It contains the word to be searched. It has n bit (one for each bit of the word)  key register(K): This specifies which part of the argument word needs to be compared with words in memory. If all bits in register are q. the entire word should be compared. Otherwise only the bits having k bit set to 1 will be compared  Associative memory array: It contains the words which any to be compared with the argument word  Match register(M): It has m bits. One bit corresponding to each word in the memory array. After the matching process, the bits corresponding to matching words in match register are set to 1 Department of Computer Science - Kamban College of Arts And Science For Women
  • 11. ASSOCIATIVE MEMORY ORGANIZATION Department of Computer Science - Kamban College of Arts And Science For Women
  • 12. DISADVANTAGES OF ASSOCIATIVE MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 13. ADVANTAGES OF ASSOCIATIVE MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 14. CACHE MAPPING  There are most common methods available in cache mapping. They are, • Direct Mapped Cache • Associative Mapped Cache • Set- Associated Mapped Cache Department of Computer Science - Kamban College of Arts And Science For Women
  • 15. DIRECT MAPPING  Each block of main memory maps to only one cache line i.e., if a block is in cache, it must be is one specific place  Address is in two parts; • Least significant w bits identify unique word • Most significant s bits specify one memory block Department of Computer Science - Kamban College of Arts And Science For Women
  • 16. DIRECT MAPPING ADDRESS STRUCTURE  24 bit address  2 bit word identifier(4 byte block)  22 bit block identifier  8 bit tag(=22-14)  14 bit slot or line Department of Computer Science - Kamban College of Arts And Science For Women
  • 17. DIRECT MAPPING FROM CACHE TO MAIN MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 18. DIRECT MAPPING CACHE ORGANIZATION Department of Computer Science - Kamban College of Arts And Science For Women
  • 19. ADVANTAGES  The tag memory is much smaller than in associative mapped cache  No need for an associative search, since the slot field is used to direct the comparison to a single field. DISADVANTAGES  Consider what happens when a program references locations that are 219 words apart, which is the size of the cache. Every memory reference will result in a miss, which will cause an entire block to be read into the cache even though only a single word is used Department of Computer Science - Kamban College of Arts And Science For Women
  • 20. ASSOCIATIVE MAPPED CACHE  A main memory block can load into any line of cache  Memory address is interpreted as tag and word  Tag uniquely identifies block of memory  Every lines tag is examined for a match  Cache searching gets expensive Department of Computer Science - Kamban College of Arts And Science For Women
  • 21. ASSOCIATIVE MAPPED CACHE Department of Computer Science - Kamban College of Arts And Science For Women
  • 22. ADVANTAGES  Any main memory block can be placed into any cache slot  Regardless of how irregular the data and program references are, if a slot is available for the block, it can be stored in the cache DISADVANTAGES  Considerable hardware overhead needed for cache bookkeeping  There must be a mechanism for searching the tag memory in parallel Department of Computer Science - Kamban College of Arts And Science For Women
  • 23. SET ASSOCIATIVE MAPPING  Cache is divided into a number of sets  Each set contains a number of lines  A given block maps to any line in a given set  E.g. Block B can be in any line of set I  2 way associative mapping Department of Computer Science - Kamban College of Arts And Science For Women
  • 24. SET ASSOCIATIVE MAPPING Department of Computer Science - Kamban College of Arts And Science For Women
  • 25. ADVANATAGES  In our example the tag memory increases only slightly from the direct mapping and only two tags need to be searched for each memory reference  The set-associative cache is widely used in today’s micro processors Department of Computer Science - Kamban College of Arts And Science For Women
  • 26. VIRTUAL MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 27. NEED OF VIRTUAL MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 28. ADDRESS SPACE AND MEMORY SPACE Department of Computer Science - Kamban College of Arts And Science For Women
  • 29. PAGE REPLACEMENT ALGORITHMS Department of Computer Science - Kamban College of Arts And Science For Women
  • 30. FIFO Department of Computer Science - Kamban College of Arts And Science For Women
  • 31. LRU Department of Computer Science - Kamban College of Arts And Science For Women
  • 32. OPT Department of Computer Science - Kamban College of Arts And Science For Women
  • 33. ADVANTAGES OF VIRTUAL MEMORY Department of Computer Science - Kamban College of Arts And Science For Women
  • 34. DISADVANTAGES OF VIRTUAL MEMORY Department of Computer Science - Kamban College of Arts And Science For Women