Memory Management COSC 513 Presentation Jun Tian 08/17/2000.

Slides:



Advertisements
Similar presentations
Memory Management Chapter 7.
Advertisements

Garbage Collection CSCI 2720 Spring Static vs. Dynamic Allocation Early versions of Fortran –All memory was static C –Mix of static and dynamic.
CS 311 – Lecture 21 Outline Memory management in UNIX
Mobile Handset Memory Management
Operating System Support Focus on Architecture
Memory Management and Paging CSCI 3753 Operating Systems Spring 2005 Prof. Rick Han.
Multiprocessing Memory Management
Memory Management 2010.
Memory Management Chapter 5.
Chapter 9 Virtual Memory Produced by Lemlem Kebede Monday, July 16, 2001.
Computer Organization and Architecture
Memory Management Five Requirements for Memory Management to satisfy: –Relocation Users generally don’t know where they will be placed in main memory May.
Virtual Memory Deung young, Moon ELEC 5200/6200 Computer Architecture and Design Lectured by Dr. V. Agrawal Lectured by Dr. V.
 2004 Deitel & Associates, Inc. All rights reserved. Chapter 9 – Real Memory Organization and Management Outline 9.1 Introduction 9.2Memory Organization.
CS364 CH08 Operating System Support TECH Computer Science Operating System Overview Scheduling Memory Management Pentium II and PowerPC Memory Management.
Layers and Views of a Computer System Operating System Services Program creation Program execution Access to I/O devices Controlled access to files System.
Virtual Memory By: Dinouje Fahih. Definition of Virtual Memory Virtual memory is a concept that, allows a computer and its operating system, to use a.
CS 346 – Chapter 8 Main memory –Addressing –Swapping –Allocation and fragmentation –Paging –Segmentation Commitment –Please finish chapter 8.
Review of Memory Management, Virtual Memory CS448.
Swapping and Contiguous Memory Allocation. Multistep Processing of a User Program User programs go through several steps before being run. Program components.
Operating Systems Chapter 8
MEMORY MANAGEMENT Presented By:- Lect. Puneet Gupta G.P.C.G. Patiala.
1. Memory Manager 2 Memory Management In an environment that supports dynamic memory allocation, the memory manager must keep a record of the usage of.
Chapter 5 Operating System Support. Outline Operating system - Objective and function - types of OS Scheduling - Long term scheduling - Medium term scheduling.
Memory Management – Page 1 of 49CSCI 4717 – Computer Architecture Memory Management Uni-program – memory split into two parts –One for Operating System.
1 Memory Management Requirements of memory management system to provide the memory space to enable several processes to execute concurrently to provide.
Lecture 11 Page 1 CS 111 Online Memory Management: Paging and Virtual Memory CS 111 On-Line MS Program Operating Systems Peter Reiher.
CS 149: Operating Systems March 3 Class Meeting Department of Computer Science San Jose State University Spring 2015 Instructor: Ron Mak
Chapter 4 Memory Management Virtual Memory.
Memory Management. Memory  Commemoration or Remembrance.
1 Memory Management Chapter 7. 2 Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable.
By Teacher Asma Aleisa Year 1433 H.   Goals of memory management  To provide a convenient abstraction for programming.  To allocate scarce memory.
1 Memory Management Chapter 7. 2 Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 7- 0 Lesson 7 Memory Management.
Basic Memory Management 1. Readings r Silbershatz et al: chapters
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo 1 Memory management & paging.
Logical & Physical Address Nihal Güngör. Logical Address In simplest terms, an address generated by the CPU is known as a logical address. Logical addresses.
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.
Memory Management Program must be brought (from disk) into memory and placed within a process for it to be run Main memory and registers are only storage.
Chapter 7 Memory Management Eighth Edition William Stallings Operating Systems: Internals and Design Principles.
Memory management The main purpose of a computer system is to execute programs. These programs, together with the data they access, must be in main memory.
Main Memory CSSE 332 Operating Systems Rose-Hulman Institute of Technology.
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.
Memory Management Chapter 7.
Memory Management.
ITEC 202 Operating Systems
Chapter 2 Memory and process management
Outline Paging Swapping and demand paging Virtual memory.
Chapter 9 – Real Memory Organization and Management
William Stallings Computer Organization and Architecture
CSI 400/500 Operating Systems Spring 2009
Main Memory Management
Lecture 28: Virtual Memory-Address Translation
O.S Lecture 13 Virtual Memory.
Memory Management 11/17/2018 A. Berrached:CS4315:UHD.
Lecture 27: Virtual Memory
MEMORY MANAGEMENT & their issues
Multistep Processing of a User Program
Module IV Memory Organization.
Main Memory Background Swapping Contiguous Allocation Paging
Operating Systems.
Chapter 8: Memory management
Outline Module 1 and 2 dealt with processes, scheduling and synchronization Next two modules will deal with memory and storage Processes require data to.
Operating System Chapter 7. Memory Management
Paging Memory Relocation and Fragmentation Paging
Memory Management Memory management is the art and the process of coordinating and controlling the use of memory in a computer system Why memory management?
4.3 Virtual Memory.
Page Main Memory.
Presentation transcript:

Memory Management COSC 513 Presentation Jun Tian 08/17/2000

2 Memory Management Memory management is the art and the process of coordinating and controlling the use of memory in a computer system Why memory management? –Multiple processing –Relocation –Protection –Sharing –Logical Organization –Physical Organization

3 Three areas of memory management Memory management hardware –MMUs (Memory Management Unit), RAM, etc. Operating system memory management: –Virtual memory, protection, etc. Application memory management: –Allocation, garbage collection, etc.

4 Memory Management Hardware Memory management devices include RAM, MMUs, caches, disks, and processor registers Ex. MMU –a hardware device responsible for handling memory accesses requested by the main processor –translates virtual addresses to physical addresses

5 Operating System Memory Management Virtual Memory –Operating systems simulates having more memory than is available as main memory, by storing part of the data in backing store, typically on disk. –If the page referenced by the virtual address is not currently in main memory, a page fault occurs, triggering an operating system handler that swaps in the page. –Some other page might be swapped out to make room –Benefits

6 Operating System Memory Management Protection (also known as memory protection, page protection) Operating systems can protect memory pages against a combination of read, write or execute accesses by a process. A process which attempts a protected access will trigger a protection fault.

7 Application Memory Management: Allocation When the program requests a block of memory, the memory manager must allocate that blockout of the larger blocks it has received from the operating system. The part of the memory manager that does this is known as the allocator. Allocation techniques: –First fit –Buddy system –Suballocators

8 Application Memory Management: Recycling When memory blocks have been allocated, but the data they contain is no longer required by the program, then the blocks can be recycled for reuse. There are two approaches to recycling memory: –either the programmer must decide when memory can be reused (known as manual memory management); –or the memory manager must be able to work it out (known as automatic memory management).

9 Application memory manager constraints CPU overhead –The additional time taken by the memory manager while the program is running Interactive pause times –How much delay an interactive user observes Memory overhead –How much space is wasted for administration, rounding (known as internal fragmentation), and poor layout (known as external fragmentation).

10 Memory management problems Premature free or dangling pointer Memory leak External fragmentation Poor locality of reference Inflexible design Interface complexity