Economics, Administration & Information system

Slides:



Advertisements
Similar presentations
Part IV: Memory Management
Advertisements

Memory Management Chapter 7.
Memory Management Chapter 7. Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated efficiently to pack as.
Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable supply of ready processes to.
Allocating Memory.
Chapter 7 Memory Management
Chapter 7 Memory Management Operating Systems: Internals and Design Principles, 6/E William Stallings Dave Bremer Otago Polytechnic, N.Z. ©2009, Prentice.
Chapter 7 Memory Management
Memory Management Chapter 7. Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated efficiently to pack as.
Module 3.0: Memory Management
Memory Management Chapter 7 B.Ramamurthy. Memory Management Subdividing memory to accommodate multiple processes Memory needs to allocated efficiently.
1 Memory Management Chapter 7. 2 Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable.
Memory Management Chapter 5.
Computer Organization and Architecture
Chapter 7 Memory Management
1 Lecture 8: Memory Mangement Operating System I Spring 2008.
Chapter 91 Memory Management Chapter 9   Review of process from source to executable (linking, loading, addressing)   General discussion of memory.
1 Memory Management Chapter 7. 2 Roadmap n Memory management u Objectives u Requirements n Simple memory management u Memory partitioning F Fixed partitioning.
Chapter 7 Memory Management Seventh Edition William Stallings Operating Systems: Internals and Design Principles.
Operating System Chapter 7. Memory Management Lynn Choi School of Electrical Engineering.
Operating System 7 MEMORY MANAGEMENT. MEMORY MANAGEMENT REQUIREMENTS.
Memory Management Chapter 7.
1 Memory Management Memory Management COSC513 – Spring 2004 Student Name: Nan Qiao Student ID#: Professor: Dr. Morteza Anvari.
Memory Management Operating Systems: Internals and Design Principles, 6/E William Stallings Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Dr.
Chapter 7 Memory Management
Chapter 7 Memory Management Seventh Edition William Stallings Operating Systems: Internals and Design Principles.
Memory Management Chapter 7.
Memory Management. Roadmap Basic requirements of Memory Management Memory Partitioning Basic blocks of memory management –Paging –Segmentation.
Subject: Operating System.
1 Memory Management Chapter 7. 2 Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable.
1 Memory Management Chapter 7. 2 Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable.
1 Memory Management Chapter 7. 2 Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable.
1 Memory Management Chapter 8. 2 Memory Management n It is the task carried out by the OS and hardware to accommodate multiple processes in main memory.
Basic Memory Management 1. Readings r Silbershatz et al: chapters
Memory Management. Why memory management? n Processes need to be loaded in memory to execute n Multiprogramming n The task of subdividing the user area.
Informationsteknologi Wednesday, October 3, 2007Computer Systems/Operating Systems - Class 121 Today’s class Memory management Virtual memory.
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 Chapter 5 Advanced Operating System.
1 Memory Management n In most schemes, the kernel occupies some fixed portion of main memory and the rest is shared by multiple processes.
2010INT Operating Systems, School of Information Technology, Griffith University – Gold Coast Copyright © William Stallings /2 Memory Management.
MEMORY MANAGEMENT. memory management  In a multiprogramming system, in order to share the processor, a number of processes must be kept in memory. 
Memory Management Chapter 7.
Chapter 7 Memory Management
Memory Management Chapter 7.
Memory Management By: Piyush Agarwal ( ) Akashdeep ( )
Memory Management.
ITEC 202 Operating Systems
Chapter 2 Memory and process management
Chapter 8: Main Memory.
Memory Allocation The main memory must accommodate both:
Real Memory Management
Chapter 8 Main Memory.
Main Memory Management
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 8 11/24/2018.
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
Memory Management Chapter 7.
Lecture 3: Main Memory.
Operating System Chapter 7. Memory Management
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 9 4/5/2019.
Management From the memory view, we can list four important tasks that the OS is responsible for ; To know the used and unused memory partitions To allocate.
COMP755 Advanced Operating Systems
Operating Systems: Internals and Design Principles, 6/E
Chapter 7 Memory Management
Presentation transcript:

Economics, Administration & Information system University of Nizwa Economics, Administration & Information system Memory Management Viewed by : yaqoub younis Al-Abri Master of information system student For: Dr. Tarek Computer System concepts

Memory Management Overview : What we mean by management in general. What we mean by computer memory? General discussion of memory management Fixed partitioning Paging. dynamic partitioning.

Management Is Management is the process of planning, organizing, leading, and controlling the efforts of organization members and of using all other organizational resources to achieve stated organizational goals

Computer memory Main Memory Secondary Memory.

Memory Management Management tasks carried out by the OS and hardware to accommodate multiple programs in main memory If only a few programs can be in main memory, then much of the time all processes will be blocked waiting for I/O and the CPU will be idle So our object is to allocate memory efficiently to pack as many programs into memory as possible

Memory Management In most schemes, the kernel occupies some fixed portion of main memory the rest of memory is shared by all the other programs

Swapping

Memory-Management requirement Relocation Protection Sharing Logical Organization Physical Organization

Memory Management Requirements Relocation Programmer cannot know where the program will be loaded in memory when it is executed A program may be relocated (often) in main memory due to swapping

Memory Management Requirements Protection Processes should not reference memory locations in another process without permission Cannot do this at compile time, because we do not know where the program will be loaded in memory (run time)

Memory Management Requirements Sharing must allow several processes to access a common amount of data or program without compromising protection same program for a different user Saves memory over separate copy for each also applies to dynamic (sharable) libraries

Simple Memory Management We start with the case where a process image is projected in simple fashion on physical memory normally, this implies that the process image is smaller than physical memory and the program is fully loaded for execution We will look at the following simple memory management techniques : fixed partitioning dynamic partitioning paging

Fixed Partitioning (Single Process) If only one process allowed (e.g. MS-DOS): only one user partition and one for the OS Not many decisions to make: program either fits or it doesn’t “OperatingSystem” User space 640k

Fixed Partitioning Partition main memory into a set of non overlapping regions called partitions Partitions can be of equal or unequal sizes ..both pictures show partitioning of 64 M main memory Chapter 9

Fixed Partitioning any program smaller than a partition can be loaded into the partition if all partitions are occupied, the operating system can swap a process out of a partition to make room a program may be too large to fit in a partition. The programmer would then use overlays: when a module needed is not present the user program must load that module into a part that used to store unneeded process.

Placement Algorithm with Partitions Equal-size partitions If there is an available partition, a program can be loaded into that partition because all partitions are of equal size, it does not matter which partition is used If all partitions are occupied by blocked processes, choose one program to swap out to make room for a new program

Placement Algorithm with Partitions Unequal-size partitions: fed from a single queue When it is time to load a process into main memory the smallest available partition that will hold the program is selected increases the level of multiprogramming Does not eliminate internal fragmentation

Paging Partition memory into small equal fixed-size chunks and divide each process into the same size chunks The chunks of a process are called pages and chunks of memory are called frames Operating system maintains a page table for each process Contains the frame location for each page in the process Memory address consist of a page number and offset within the page

Assignment of Process Pages to Free Frames

Assignment of Process Pages to Free Frames

Dynamic Partitioning Placement Algorithm Scans memory from the location of the last placement More often allocate a block of memory at the end of memory where the largest block is found The largest block of memory is broken up into smaller blocks Compaction is required to obtain a large block at the end of memory

Conclusion: Memory Management : How to use Memory in effective way. There are many technics for managing Memory : Fixed partitioning Paging. dynamic partitioning.