Segmentation Observation: Programmers don’t think in pages!

Slides:



Advertisements
Similar presentations
Allocating Memory.
Advertisements

Memory Management Operating Systems - Spring 2003 Gregory (Grisha) Chokler Ittai Abraham Zinovi Rabinovich.
CS 153 Design of Operating Systems Spring 2015
Memory Management Design & Implementation Segmentation Chapter 4.
Memory Management. 2 How to create a process? On Unix systems, executable read by loader Compiler: generates one object file per source file Linker: combines.
Chapter 9 Virtual Memory Produced by Lemlem Kebede Monday, July 16, 2001.
Lecture 9: SHELL PROGRAMMING (continued) Creating shell scripts!
Virtual Memory BY JEMINI ISLAM. What is Virtual Memory Virtual memory is a memory management system that gives a computer the appearance of having more.
Chapter 91 Translation Lookaside Buffer (described later with virtual memory) Frame.
Operating System Concepts
A. Frank - P. Weisberg Operating Systems Simple/Basic Segmentation.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts, Amherst Operating Systems CMPSCI 377 Lecture.
Segmentation CS 537 – Introduction to Operating Systems.
Memory Management Ch.8.
Operating System Chapter 7. Memory Management Lynn Choi School of Electrical Engineering.
Operating Systems Chapter 8
1 Memory Management Memory Management COSC513 – Spring 2004 Student Name: Nan Qiao Student ID#: Professor: Dr. Morteza Anvari.
Chapter 8 Memory Management Dr. Yingwu Zhu. Outline Background Basic Concepts Memory Allocation.
Chapter 7 Memory Management
8.4 paging Paging is a memory-management scheme that permits the physical address space of a process to be non-contiguous. The basic method for implementation.
Paging Example What is the data corresponding to the logical address below:
Lecture 11 Page 1 CS 111 Online Memory Management: Paging and Virtual Memory CS 111 On-Line MS Program Operating Systems Peter Reiher.
CE Operating Systems Lecture 14 Memory management.
Memory Management COSC 513 Presentation Jun Tian 08/17/2000.
CSC 360, Instructor Kui Wu Memory Management I: Main Memory.
Memory Management Continued Questions answered in this lecture: What is paging? How can segmentation and paging be combined? How can one speed up address.
 The MULTICS system solved problems of external fragmentation and lengthy search times by paging the segments  Solution differs from pure segmentation.
OS Memory Addressing. Architecture CPU – Processing units – Caches – Interrupt controllers – MMU Memory Interconnect North bridge South bridge PCI, etc.
Chapter 7 Memory Management Eighth Edition William Stallings Operating Systems: Internals and Design Principles.
Memory Management. 2 How to create a process? On Unix systems, executable read by loader Compiler: generates one object file per source file Linker: combines.
Memory Management Chapter 5 Advanced Operating System.
Chapter 9 Memory Organization. 9.1 Hierarchical Memory Systems Figure 9.1.
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.
Introduction to Paging. Readings r 4.3 of the text book.
Paging.
Memory Management.
CS703 - Advanced Operating Systems
Outline Paging Swapping and demand paging Virtual memory.
Paging COMP 755.
COMBINED PAGING AND SEGMENTATION
Simple/Basic Segmentation
Chien-Chung Shen CIS/UD
CSE 153 Design of Operating Systems Winter 2018
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy 11/12/2018.
Practice Six Chapter Eight.
Segmentation Lecture November 2018.
MEMORY MANAGEMENT & their issues
Module IV Memory Organization.
Main Memory Background Swapping Contiguous Allocation Paging
MICROPROCESSOR MEMORY ORGANIZATION
Main Memory Session - 16.
Lecture 3: Main Memory.
So far in memory management…
Operating System Chapter 7. Memory Management
Virtual Memory Overcoming main memory size limitation
CSE 451: Operating Systems Autumn 2003 Lecture 10 Paging & TLBs
CSE 451: Operating Systems Winter 2004 Module 10.5 Segmentation
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.
CSE 451: Operating Systems Autumn 2003 Lecture 10 Paging & TLBs
Memory Management CSE451 Andrew Whitaker.
Lecture 35 Syed Mansoor Sarwar
Page Table Implementations
Translation Lookaside Buffers
CS703 - Advanced Operating Systems
Paging Memory Relocation and Fragmentation Paging
CSE 153 Design of Operating Systems Winter 2019
CSE451 Operating Systems Winter 2009
Chapter 8: Main Memory CSS503 Systems Programming
Page Main Memory.
Presentation transcript:

Segmentation Observation: Programmers don’t think in pages! CSCE 410/611 Segmentation Observation: Programmers don’t think in pages! Segmentation Pro-and-Cons of segmentation; external fragmentation Solution: Segmented Paging Segmentation

Segmentation: Problem with Paging CSCE 410/611 Segmentation: Problem with Paging Observation: Users think of memory in terms of segments (data, code, stack, objects, ...) Paging MMU logical memory physical memory Segmentation

Segmentation: Problem with Paging CSCE 410/611 Segmentation: Problem with Paging Observation: Users think of memory in terms of segments (data, code, stack, objects, ...) Segmenting MMU A < + A B < + C B C < + logical memory physical memory Segmentation

Segmentation in Hardware CSCE 410/611 Segmentation in Hardware segment number Segmenting Memory Management Unit CPU <? + s logical addr d offset b s d limit base logical memory segment table physical memory Segmentation

Segmentation: Pros and Cons CSCE 410/611 Segmentation: Pros and Cons Pros: Data in a segment typically semantically related Protection can be associated with segments read/write protection range checks for arrays Data and code sharing Process 1 s d <? + limit base Process 2 base limit + d <? s physical memory Segmentation

Segmentation: Pros and Cons CSCE 410/611 Segmentation: Pros and Cons Pros: Data in a segment typically semantically related Protection can be associated with segments read/write protection range checks for arrays Data and code sharing Cons: External Fragmentation! Process 1 s d <? + limit base new segment Process 2 base limit + d <? s physical memory Segmentation

Segmented Paging CPU s p d f d s p logical memory physical memory CSCE 410/611 Segmented Paging Segmented-Paging Memory Management Unit segment number page nr offset CPU s logical addr p d f d <? s s p limit base frame logical memory segment table segment page table physical memory Segmentation

Segmentation: Summary CSCE 410/611 Segmentation: Summary Programmers like to think in terms of memory segments Segmentation allows for efficient allocation and management of semantically-related data segments Segmentation re-introduces external Fragmentation Segmented Paging eliminates fragmentation Segmentation