Virtual Memory (Section 9.3). The Need For Virtual Memory Many computers don’t have enough memory in RAM to accommodate all the programs a user wants.

Slides:



Advertisements
Similar presentations
Memory.
Advertisements

Part IV: Memory Management
Memory Management Chapter 7.
Segmentation and Paging Considerations
Day 20 Memory Management. Assumptions A process need not be stored as one contiguous block. The entire process must reside in main memory.
CS 153 Design of Operating Systems Spring 2015
Memory Management Design & Implementation Segmentation Chapter 4.
Memory Management and Paging CSCI 3753 Operating Systems Spring 2005 Prof. Rick Han.
Multiprocessing Memory Management
Understanding Operating Systems1 Operating Systems Virtual Memory Thrashing Single-User Contiguous Scheme Fixed Partitions Dynamic Partitions.
CS 104 Introduction to Computer Science and Graphics Problems
Memory Management 2010.
Memory Organization.
Chapter 9 Virtual Memory Produced by Lemlem Kebede Monday, July 16, 2001.
Computer Organization Cs 147 Prof. Lee Azita Keshmiri.
Memory Management Five Requirements for Memory Management to satisfy: –Relocation Users generally don’t know where they will be placed in main memory May.
Chapter 91 Translation Lookaside Buffer (described later with virtual memory) Frame.
Main Memory. Background Program must be brought (from disk) into memory and placed within a process for it to be run Main memory and registers are only.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts, Amherst Operating Systems CMPSCI 377 Lecture.
VIRTUAL MEMORY. Virtual memory technique is used to extents the size of physical memory When a program does not completely fit into the main memory, it.
Virtual Memory Chantha Thoeun. Overview  Purpose:  Use the hard disk as an extension of RAM.  Increase the available address space of a process. 
Chapter 3 Memory Management: Virtual Memory
CS 346 – Chapter 8 Main memory –Addressing –Swapping –Allocation and fragmentation –Paging –Segmentation Commitment –Please finish chapter 8.
SOCSAMS e-learning Dept. of Computer Applications, MES College Marampally MEMORYMANAGEMNT.
1 Memory Management Memory Management COSC513 – Spring 2004 Student Name: Nan Qiao Student ID#: Professor: Dr. Morteza Anvari.
Subject: Operating System.
By Teacher Asma Aleisa Year 1433 H.   Goals of memory management  To provide a convenient abstraction for programming  To allocate scarce memory resources.
VIRTUAL MEMORY By Thi Nguyen. Motivation  In early time, the main memory was not large enough to store and execute complex program as higher level languages.
Damian Gordon. HARD DISK (MAIN MEMORY) (SECONDARY MEMORY) 2 CACHE 1.
By Teacher Asma Aleisa Year 1433 H.   Goals of memory management  To provide a convenient abstraction for programming.  To allocate scarce memory.
Memory Management Operating Systems CS550. Memory Manager Memory manager - manages allocation and de-allocation of main memory Plays significant impact.
Memory Management Continued Questions answered in this lecture: What is paging? How can segmentation and paging be combined? How can one speed up address.
Virtual Memory Pranav Shah CS147 - Sin Min Lee. Concept of Virtual Memory Purpose of Virtual Memory - to use hard disk as an extension of RAM. Personal.
Chapter 7 Memory Management Eighth Edition William Stallings Operating Systems: Internals and Design Principles.
Virtual Memory By CS147 Maheshpriya Venkata. Agenda Review Cache Memory Virtual Memory Paging Segmentation Configuration Of Virtual Memory Cache Memory.
Chapter 9 Memory Organization. 9.1 Hierarchical Memory Systems Figure 9.1.
Memory Management Chapter 7.
Lesson Objectives Aims Key Words Paging, Segmentation, Virtual Memory
Virtual memory.
Chapter 2 Memory and process management
UNIT–IV: Memory Management
CS703 - Advanced Operating Systems
Day 19 Memory Management.
Main Memory Management
Paging and Segmentation
Chapter 8: Main Memory.
Lecture 28: Virtual Memory-Address Translation
Operating System Concepts
O.S Lecture 13 Virtual Memory.
Memory Management 11/17/2018 A. Berrached:CS4315:UHD.
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 8 11/24/2018.
Computer Architecture
Unit 6: Real Memory organization management
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 9 12/1/2018.
So far… Text RO …. printf() RW link printf Linking, loading
Main Memory Background Swapping Contiguous Allocation Paging
Lecture 32 Syed Mansoor Sarwar
CPSC 457 Operating Systems
Lecture 3: Main Memory.
So far in memory management…
CSE 451: Operating Systems Autumn 2005 Memory Management
Operating System Chapter 7. Memory Management
Memory management Explain how memory is managed in a typical modern computer system (virtual memory, paging and segmentation should be described.
CSE 451: Operating Systems Autumn 2003 Lecture 9 Memory Management
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 9 4/5/2019.
CSE 451: Operating Systems Autumn 2003 Lecture 9 Memory Management
COMP755 Advanced Operating Systems
Operating Systems: Internals and Design Principles, 6/E
Page Main Memory.
Presentation transcript:

Virtual Memory (Section 9.3)

The Need For Virtual Memory Many computers don’t have enough memory in RAM to accommodate all the programs a user wants to run. By using virtual memory, the computer appears to have more memory than it actually does.

Overview of Virtual Memory Swap disk: All possible addresses are divided into blocks (pages, segments or a combination of both) Data is swapped between the swap disk and the physical RAM

Paging Addresses are divided evenly into blocks called “pages.” Physical memory is divided into “frames” which are the same size as the pages. The entire page is replaced by a frame.

Advantages/ Disadvantages of Paging All memory blocks are the same size as each other and blocks from physical storage. Amount of memory allocated may be too large/ small for what is needed.

Segmentation Blocks in the swap disk may vary in size. Some systems require the segments to start at certain addresses, others allow any start addresses.

Advantages/ Disadvantages of Segmentation More flexible with regards to size. “External fragmentation:” When segments are stored, there are gaps between them. New segments must fit in these gaps.

The Memory Management Unit Moves data between the swap disk and physical memory Uses a page table or segment table to keep track of where blocks of memory are stored.

Page Table Keeps track of what frame is stored in what page. When table is full, it replaces one process with another, similar to cache memory.

Segment table Similar to a page table, but must also keep track of the segment start address (segment number + offset) and segment length.

Combining Paging and Segmentation Pages are combined into segments. Stored as segment + page + offset, outputs the frame number Size of segment no longer stored.

Memory Protection Different processes all using the same memory. Protection bit is stored with each entry in the page table or segment table, denotes which process is allowed to access that block of memory.

The User’s Perspective Doesn’t need to get more RAM for computer. Doesn’t need to understand how it works.