4P13 Week 7 Talking Points 1. 2 3 4 Memory Mgmt Data Structs 5.

Slides:



Advertisements
Similar presentations
Chapter 12: File System Implementation
Advertisements

Dynamic Allocation and Linked Lists. Dynamic memory allocation in C C uses the functions malloc() and free() to implement dynamic allocation. malloc is.
Memory.
More on File Management
Introduction to Database Systems1 Records and Files Storage Technology: Topic 3.
Liu Meihua Chapter 3 Memory management Chapter 3 Memory management —— 3.5 Kernel Memory.
Chapter 12. Kernel Memory Allocation
Fixed/Variable Partitioning
Allocating Memory.
Chapter 11: File System Implementation
Memory Management Memory Areas and their use Memory Manager Tasks:
File System Implementation: beyond the user’s view A possible file system layout on a disk.
Memory Management Policies: UNIX
Chapter 12: File System Implementation
Memory Management Five Requirements for Memory Management to satisfy: –Relocation Users generally don’t know where they will be placed in main memory May.
File System Implementation
Memory Allocation CS Introduction to Operating Systems.
Virtual Memory Chantha Thoeun. Overview  Purpose:  Use the hard disk as an extension of RAM.  Increase the available address space of a process. 
CHP - 9 File Structures. INTRODUCTION In some of the previous chapters, we have discussed representations of and operations on data structures. These.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 32 Paging Read Ch. 9.4.
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-7 Memory Management (1) Department of Computer Science and Software.
Chapter 8 Memory Management Dr. Yingwu Zhu. Outline Background Basic Concepts Memory Allocation.
CY2003 Computer Systems Lecture 09 Memory Management.
ICS 145B -- L. Bic1 Project: Main Memory Management Textbook: pages ICS 145B L. Bic.
Memory. Chapter 8: Memory Management Background Swapping Contiguous Memory Allocation Paging Structure of the Page Table Segmentation.
1 Memory Management Chapter 7. 2 Memory Management Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 12: File System Implementation File System Structure File System Implementation.
CNIT 127: Exploit Development Ch 4: Introduction to Heap Overflows
CS 241 Section Week #9 (11/05/09). Topics MP6 Overview Memory Management Virtual Memory Page Tables.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 11 File-System Implementation Slide 1 Chapter 11: File-System Implementation.
CE Operating Systems Lecture 17 File systems – interface and implementation.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 12: File System Implementation File System Structure File System Implementation.
Memory Management -Memory allocation -Garbage collection.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo 1 Memory management & paging.
It consists of two parts: collection of files – stores related data directory structure – organizes & provides information Some file systems may have.
Virtual Memory – Managing Physical Memory
CS 241 Discussion Section (2/9/2012). MP2 continued Implement malloc, free, calloc and realloc Reuse free memory – Sequential fit – Segregated fit.
CS 241 Discussion Section (12/1/2011). Tradeoffs When do you: – Expand Increase total memory usage – Split Make smaller chunks (avoid internal fragmentation)
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.
Lecture 7 Page 1 CS 111 Summer 2013 Dynamic Domain Allocation A concept covered in a previous lecture We’ll just review it here Domains are regions of.
CSE 351 Dynamic Memory Allocation 1. Dynamic Memory Dynamic memory is memory that is “requested” at run- time Solves two fundamental dilemmas: How can.
Background Program must be brought into memory and placed within a process for it to be run. Input queue – collection of processes on the disk that are.
Week 5:Virtual Memory CS 162. Today’s Section Administrivia Quiz Review of Lecture Worksheet and Discussion.
External fragmentation in a paging system Use paging circuitry to map groups of noncontiguous free pages into logically contiguous addresses (remap your.
Virtual Memory By CS147 Maheshpriya Venkata. Agenda Review Cache Memory Virtual Memory Paging Segmentation Configuration Of Virtual Memory Cache Memory.
Main Memory CSSE 332 Operating Systems Rose-Hulman Institute of Technology.
Memory Management.
File-System Implementation
Memory Allocation The main memory must accommodate both:
Chapter 11: File System Implementation
Operating Systems (CS 340 D)
Paging and Segmentation
Chapter 8: Main Memory.
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy 11/12/2018.
Chapter 11: File System Implementation
Optimizing Malloc and Free
CS Introduction to Operating Systems
Segmentation Lecture November 2018.
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 8 11/24/2018.
Chapter 11: File System Implementation
Multistep Processing of a User Program
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
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.
Lecture 3: Main Memory.
Memory Management Lectures notes from the text supplement by Siberschatz and Galvin Modified by B.Ramamurthy Chapter 9 4/5/2019.
Chapter 11: File System Implementation
Presentation transcript:

4P13 Week 7 Talking Points 1

2

3

4

Memory Mgmt Data Structs 5

6

7

8

9

Segment Allocation Policies VM_BESTFIT: Search for the smallest segment on freelist[n] that can satisfy the allocation. If none are found, search for the smallest segment on freelist[n + 1] that can satisfy the allocation. VM_INSTANTFIT: If the size is exactly 2n, take the first segment on freelist[n]. Otherwise, take the first segment on freelist[n+1]. Any segment on this freelist is necessarily large enough to satisfy the allocation, yielding constant-time performance with a reasonably good fit. Instant fit is the default in FreeBSD because it guarantees constant-time performance, provides low fragmentation in practice, and is easy to implement. VM_NEXTFIT: Ignore the freelists altogether and search the arena for the next free segment after the one previously allocated. This option is not supported in FreeBSD 10. The vmem in Solaris supports it for allocating resources like process identifiers. 10

11

12

13

Vm_object Stores A collection of the pages for that vm_object that are currently resident in main memory; a page may be mapped into multiple address spaces, but it is always claimed by exactly one vm_object A count of the number of vm_map_entry structures or other vm_objects that reference the vm_object The size of the file or anonymous area described by the vm_object The number of memory-resident pages held by the vm_object For shadow objects, a pointer to the next vm_object in the chain (shadow objects are described in Section 6.5) The type of pager for the vm_object; the pager is responsible for providing the data to fill a page and for providing a place to store the page when it has been modified (pagers are covered in Section 6.10) 14

15

16

17

18

19

20

21

22

23

24

25

26