Jazan University, Jazan KSA

Slides:



Advertisements
Similar presentations
Chapter 4 Memory Management Basic memory management Swapping
Advertisements

361 Computer Architecture Lecture 15: Cache Memory
Buffer Management The buffer manager reads disk pages into a main memory page as needed. The general idea is to minimize the amount of disk I/O by keeping.
Lecture 19: Cache Basics Today’s topics: Out-of-order execution
Topics covered: Memory subsystem CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Lecture 15: Background Information for the VMWare ESX Memory Management.
Lecture 34: Chapter 5 Today’s topic –Virtual Memories 1.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Memory Management – 4 Page Replacement Algorithms CS 342 – Operating Systems.
Review CPSC 321 Andreas Klappenecker Announcements Tuesday, November 30, midterm exam.
LRU Replacement Policy Counters Method Example
Memory Management Virtual Memory Page replacement algorithms
Maninder Kaur CACHE MEMORY 24-Nov
Chapter 3 Memory Management: Virtual Memory
7-1 Chapter 7 - Memory Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer Architecture.
7-1 Chapter 7 - Memory Department of Information Technology, Radford University ITEC 352 Computer Organization Principles of Computer Architecture Miles.
Operating Systems Lecture 02: Computer System Overview Anda Iamnitchi
Memory Hierarchy and Cache Memory Jennifer Tsay CS 147 Section 3 October 8, 2009.
Computer Architecture Lecture 26 Fasih ur Rehman.
Chapter 8 Virtual Memory Operating Systems: Internals and Design Principles Seventh Edition William Stallings.
By Andrew Yee. Virtual Memory Memory Management What is Page Replacement?
COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 3:00-4:00 PM.
CSE 241 Computer Engineering (1) هندسة الحاسبات (1) Lecture #3 Ch. 6 Memory System Design Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
Lecture 40: Review Session #2 Reminders –Final exam, Thursday 3:10pm Sloan 150 –Course evaluation (Blue Course Evaluation) Access through.
Page Replacement Algorithms and Simulation Neville Allen.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Lecture Topics: 11/24 Sharing Pages Demand Paging (and alternative) Page Replacement –optimal algorithm –implementable algorithms.
Memory Management & Virtual Memory © Dr. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada.
11 Intro to cache memory Kosarev Nikolay MIPT Nov, 2009.
Saket Mengle Paging refers to the process of managing program access to virtual memory pages that do not currently reside in RAM.
Problem 3.2 Paging Algorithms-Time & Space Requirements Problem:What are the space and time requirements of LIFO, LFU, and LED? LRU:(least-recently-used):
Cache Small amount of fast memory Sits between normal main memory and CPU May be located on CPU chip or module.
10.1 Chapter 10: Virtual Memory Background Demand Paging Process Creation Page Replacement Allocation of Frames Thrashing Operating System Examples.
CS422 Principles of Database Systems Buffer Management Chengyu Sun California State University, Los Angeles.
COT 4600 Operating Systems Spring 2011 Dan C. Marinescu Office: HEC 304 Office hours: Tu-Th 5:00-6:00 PM.
PAGE REPLACEMNT ALGORITHMS FUNDAMENTAL OF ALGORITHMS.
A PRESENTATION ON VIRTUAL MEMORY (PAGING) Submitted to Submitted by Prof. Dr. Ashwani kumar Ritesh verma Dept. Of Physics Mtech (Instrumentation) Roll.
Cache Memory Yi-Ning Huang. Principle of Locality Principle of Locality A phenomenon that the recent used memory location is more likely to be used again.
Memory Management (2).
Lecture 21: Memory Hierarchy
Lecture 21: Memory Hierarchy
CGS 3763 Operating Systems Concepts Spring 2013
FIGURE 12-1 Memory Hierarchy
CS241 Section: Week 10.
Memory Management & Virtual Memory
ECE 445 – Computer Organization
Lecture 39 Syed Mansoor Sarwar
Virtual Memory فصل هشتم.
COT 4600 Operating Systems Spring 2011
Database Management Systems (CS 564)
M. Usha Professor/CSE Sona College of Technology
CS 140 Lecture Notes: Demand Paging
Lecture 11: Cache Hierarchies
Lecture 21: Memory Hierarchy
CS 140 Lecture Notes: Demand Paging
CS222P: Principles of Data Management Lecture #3 Buffer Manager, PAX
Exercise (10).
A Top-Level View Of Computer Function And Interconnection
Jazan University, Jazan KSA
Computer Evolution and Performance
A Top-Level View Of Computer Function And Interconnection
Computer Evolution and Performance
Jazan University, Jazan KSA
A Top-Level View Of Computer Function And Interconnection
Lecture 13: Cache Basics Topics: terminology, cache organization (Sections )
Computer Organization and Architecture William Stallings 8th Edition
Operating Systems Concepts
Jazan University, Jazan KSA
Jazan University, Jazan KSA
CGS 3763 Operating Systems Concepts Spring 2013
Chapter Contents 7.1 The Memory Hierarchy 7.2 Random Access Memory
Presentation transcript:

Jazan University, Jazan KSA Chapter 4 Lecture 10 Faheem Lecturer, CNET Dept., Jazan University, Jazan KSA Cache Memory

Cache Memory Mapping Memory Mapping means, making connection or link between main memory with the cache memory. Because there are fewer cache lines than main memory blocks, an algorithm is needed for mapping main memory blocks into cache lines. Further, a means is needed for determining which main memory block currently occupies a cache line. The choice of the mapping function dictates how the cache is organized. There are two techniques used in memory mapping, direct and associative. Book Page No 124

Direct Mapping In direct mapping Each block of main memory maps into one unique line of the cache. The above concept is clear from the diagram below. Book Page No 126 Direct Mapping

Associated mapping The second type of mapping is associated mapping. In associated mapping each block of main memory is associated to all line of cache memory. The above concept is clear from the diagram below. Book Page No 126 Associated Mapping

Replacement algorithms Once the cache has been filled, when a new block is brought into the cache, one of the existing blocks must be replaced. For direct mapping, there is only one possible line for any particular block, and no choice is possible. For the associative techniques, a replacement algorithm is needed. Book Page No 136

FIFO example First In First Out

LRU Least recently Used

Replacement algorithms There are three replacement algorithm, MRU, LRU and FIFO, that is Most recently used algorithm Least recently used algorithm First in first out In direct mapping there is no choice, as each block only maps to one line so replace that line. Book Page No 136

Thank you!!! Chapter 4 Ends!!!