Movatterモバイル変換


[0]ホーム

URL:


infomerlin, profile picture
Uploaded byinfomerlin
PPT, PDF3,228 views

Contiguous Memory Allocation.ppt

Contiguous allocation is an early method for allocating main memory between the operating system and user processes. Each process is contained within a single contiguous section of memory. Relocation and limit registers are used to protect processes from each other and allow transient changes to the operating system. Multiple-partition allocation allocates variable sized partitions to processes out of memory holes. Storage allocation approaches like first-fit and best-fit are used to allocate partitions from the holes. Fragmentation can occur both externally and internally, taking up space that cannot be used.

In this document
Powered by AI

Discusses the allocation of main memory for OS and user processes, using contiguous sections and relocation registers for protection.

Mentions the role of hardware support in managing relocation and limit registers, crucial for memory protection.

Examines multiple-partition allocation, including the handling of memory holes and the dynamic storage allocation strategies like first-fit, best-fit, and worst-fit.

Explores internal and external fragmentation, their impact on memory utilization, and potential reduction strategies like memory compaction.

Embed presentation

Downloaded 13 times
8.1 Silberschatz, Galvin and Gagne ©2013Operating System Concepts – 9th EditionContiguous Allocation Main memory must support both OS and user processes Limited resource, must allocate efficiently Contiguous allocation is one early method Main memory usually into two partitions: Resident operating system, usually held in low memory withinterrupt vector User processes then held in high memory Each process contained in single contiguous section ofmemory
8.2 Silberschatz, Galvin and Gagne ©2013Operating System Concepts – 9th EditionContiguous Allocation (Cont.) Relocation registers used to protect user processes from eachother, and from changing operating-system code and data Base register contains value of smallest physical address Limit register contains range of logical addresses – eachlogical address must be less than the limit register MMU maps logical address dynamically Can then allow actions such as kernel code being transientand kernel changing size
8.3 Silberschatz, Galvin and Gagne ©2013Operating System Concepts – 9th EditionHardware Support for Relocation and Limit Registers
8.4 Silberschatz, Galvin and Gagne ©2013Operating System Concepts – 9th EditionMultiple-partition allocation Multiple-partition allocation Degree of multiprogramming limited by number of partitions Variable-partition sizes for efficiency (sized to a given process’ needs) Hole – block of available memory; holes of various size are scatteredthroughout memory When a process arrives, it is allocated memory from a hole large enough toaccommodate it Process exiting frees its partition, adjacent free partitions combined Operating system maintains information about:a) allocated partitions b) free partitions (hole)
8.5 Silberschatz, Galvin and Gagne ©2013Operating System Concepts – 9th EditionDynamic Storage-Allocation Problem First-fit: Allocate the first hole that is big enough Best-fit: Allocate the smallest hole that is big enough; mustsearch entire list, unless ordered by size Produces the smallest leftover hole Worst-fit: Allocate the largest hole; must also search entire list Produces the largest leftover holeHow to satisfy a request of size n from a list of free holes?First-fit and best-fit better than worst-fit in terms of speed and storageutilization
8.6 Silberschatz, Galvin and Gagne ©2013Operating System Concepts – 9th EditionFragmentation External Fragmentation – total memory space exists tosatisfy a request, but it is not contiguous Internal Fragmentation – allocated memory may be slightlylarger than requested memory; this size difference is memoryinternal to a partition, but not being used First fit analysis reveals that given N blocks allocated, 0.5 Nblocks lost to fragmentation 1/3 may be unusable -> 50-percent rule
8.7 Silberschatz, Galvin and Gagne ©2013Operating System Concepts – 9th EditionFragmentation (Cont.) Reduce external fragmentation by compaction Shuffle memory contents to place all free memory togetherin one large block Compaction is possible only if relocation is dynamic, and isdone at execution time I/O problem Latch job in memory while it is involved in I/O Do I/O only into OS buffers Now consider that backing store has same fragmentationproblems

Recommended

PPTX
contiguous memory allocation.pptx
PPT
Memory allocation (4)
PPT
Thrashing allocation frames.43
PPTX
Virtual memory management in Operating System
DOC
Introduction to Operating System (Important Notes)
PPTX
Allocation of Frames & Thrashing
PPTX
File Protection in Operating System
PDF
9 virtual memory management
PPTX
Operating system paging and segmentation
PPTX
Demand paging
PPTX
Directory structure
PPTX
Memory Management in OS
PPTX
Semophores and it's types
PPTX
Critical section problem in operating system.
PDF
OS - Process Concepts
PPTX
Paging and segmentation
PPT
Chapter 11 - File System Implementation
PPTX
Page replacement algorithms
PPT
deadlock avoidance
PPT
Scheduling algorithms
PPT
Introduction to System Calls
PPTX
System calls
PDF
Distributed Operating System_1
PPTX
Kernel I/O subsystem
PPT
Deadlock
PPT
Chapter 14 - Protection
PPTX
System components (os)
PPT
ch8 Memory management (Operating System).ppt
PPTX
ch9.pptx

More Related Content

PPTX
contiguous memory allocation.pptx
PPT
Memory allocation (4)
PPT
Thrashing allocation frames.43
PPTX
Virtual memory management in Operating System
DOC
Introduction to Operating System (Important Notes)
PPTX
Allocation of Frames & Thrashing
PPTX
File Protection in Operating System
PDF
9 virtual memory management
contiguous memory allocation.pptx
Memory allocation (4)
Thrashing allocation frames.43
Virtual memory management in Operating System
Introduction to Operating System (Important Notes)
Allocation of Frames & Thrashing
File Protection in Operating System
9 virtual memory management

What's hot

PPTX
Operating system paging and segmentation
PPTX
Demand paging
PPTX
Directory structure
PPTX
Memory Management in OS
PPTX
Semophores and it's types
PPTX
Critical section problem in operating system.
PDF
OS - Process Concepts
PPTX
Paging and segmentation
PPT
Chapter 11 - File System Implementation
PPTX
Page replacement algorithms
PPT
deadlock avoidance
PPT
Scheduling algorithms
PPT
Introduction to System Calls
PPTX
System calls
PDF
Distributed Operating System_1
PPTX
Kernel I/O subsystem
PPT
Deadlock
PPT
Chapter 14 - Protection
PPTX
System components (os)
Operating system paging and segmentation
Demand paging
Directory structure
Memory Management in OS
Semophores and it's types
Critical section problem in operating system.
OS - Process Concepts
Paging and segmentation
Chapter 11 - File System Implementation
Page replacement algorithms
deadlock avoidance
Scheduling algorithms
Introduction to System Calls
System calls
Distributed Operating System_1
Kernel I/O subsystem
Deadlock
Chapter 14 - Protection
System components (os)

Similar to Contiguous Memory Allocation.ppt

PPT
ch8 Memory management (Operating System).ppt
PPTX
ch9.pptx
PPTX
ch9.pptx
PPTX
Main Memory
PPTX
To lean about os easy way to understanding
PPTX
operating system chapter 9 syllabus.pptx
PPTX
Chapter 9 Operating Systems silberschatz
PPTX
Chapter8-Main Memory.pptxbdbbsbzbzuzbsbwb
PPTX
ch8-1 (final Memory).pptx
PPTX
Main Memory
PPTX
operating systems module 4 engineering.pptx
PDF
Main memory-2 (ch8,os)
PPT
PDF
main memory chapter 9 for cs and its a way to present it
PPT
Operating systems presentation part 1 2025
PPTX
Operating system- memory management this ppt elaborated the concepts related ...
PDF
Operating System-Ch8 memory management
PPT
Chapter Five main management of memory .ppt
PPT
memorymanagementmawaodisjoidjaoijscawd.ppt
PDF
Ch8 main memory
ch8 Memory management (Operating System).ppt
ch9.pptx
ch9.pptx
Main Memory
To lean about os easy way to understanding
operating system chapter 9 syllabus.pptx
Chapter 9 Operating Systems silberschatz
Chapter8-Main Memory.pptxbdbbsbzbzuzbsbwb
ch8-1 (final Memory).pptx
Main Memory
operating systems module 4 engineering.pptx
Main memory-2 (ch8,os)
main memory chapter 9 for cs and its a way to present it
Operating systems presentation part 1 2025
Operating system- memory management this ppt elaborated the concepts related ...
Operating System-Ch8 memory management
Chapter Five main management of memory .ppt
memorymanagementmawaodisjoidjaoijscawd.ppt
Ch8 main memory

More from infomerlin

PPTX
6 launching satellite.ppscscccascaascstx
PPTX
5.Range & angle to satellitefdfdfdfdfdfd
PPTX
GSC-21_029_4_09_TSDSI-R1-1.pptx
PPTX
sat-ppt.pptx
PPT
Paging.ppt
PPTX
Page Replacement Algorithms.pptx
PPT
Segmentation.ppt
PPTX
Allocating of Frames.pptx
PPTX
Allocating Kernel Memory.pptx
PPTX
Deadlock Detection.pptx
PPTX
Deadlock Prevention.pptx
PDF
Frame detection.pdf
PPTX
Deadlock Backgroud.pptx
PPTX
5G Hackathon - Brainstorming Session.pptx
PPT
LNA.ppt
PPTX
Lecture 4.pptx
PPT
System Calls.ppt
PPT
Lec 6 OS structure and Operations.ppt
PPT
cs-intro-os.ppt
PPTX
Lecture-2 Signal-Spectra-Modulation.pptx
6 launching satellite.ppscscccascaascstx
5.Range & angle to satellitefdfdfdfdfdfd
GSC-21_029_4_09_TSDSI-R1-1.pptx
sat-ppt.pptx
Paging.ppt
Page Replacement Algorithms.pptx
Segmentation.ppt
Allocating of Frames.pptx
Allocating Kernel Memory.pptx
Deadlock Detection.pptx
Deadlock Prevention.pptx
Frame detection.pdf
Deadlock Backgroud.pptx
5G Hackathon - Brainstorming Session.pptx
LNA.ppt
Lecture 4.pptx
System Calls.ppt
Lec 6 OS structure and Operations.ppt
cs-intro-os.ppt
Lecture-2 Signal-Spectra-Modulation.pptx

Recently uploaded

PDF
45 ĐỀ LUYỆN THI IOE LỚP 8 THEO CHƯƠNG TRÌNH MỚI - NĂM HỌC 2024-2025 (CÓ LINK ...
PPTX
Time Series Analysis - Least Square Method Fitting a Linear Trend Equation
PDF
Photoperiod Classification of Vegetable Plants.pdf
PPTX
Quarter 3 lesson 2 of English Grade 8.pptx
PPTX
ATTENTION - PART 1.pptx cognitive processes -For B.Sc I Sem By Mrs.Shilpa Hot...
PDF
Rigor, ethics, wellbeing and resilience in the biomedical doctoral journey
 
PDF
AI and ICT for Teaching and Learning, Induction-cum-Training Programme, 5th 8...
PPTX
Photography Pillar 1 The Subject PowerPoint
PDF
Agentic AI and AI Agents 20251121.pdf - by Ms. Oceana Wong
PPTX
Chapter 3. Pharmaceutical Aids (pharmaceutics)
PPTX
Session 5 Overview of the PPST and Its Indicators (COI and NCOI).pptx
PDF
UGC NET Paper 1 Syllabus | 10 Units Complete Guide for NTA JRF
PDF
Unit 1- Basics of Management Cha. of Magmt
PPTX
LYMPHATIC SYSTEM.pptx it includes lymph, lymph nodes, bone marrow, spleen
PDF
AI Workflows and Workflow Rhetoric - by Ms. Oceana Wong
PDF
Capitol Webinar November 2025 Emily Barnes.pdf
PDF
Digital Electronics – Registers and Their Applications
PDF
Integrated Circuits: Lithography Techniques - Fundamentals and Advanced Metho...
PPTX
Introduction to Beauty Care and Wellness Services.pptx-day fcs 3rd quarter tl...
PDF
IMPATT Diodes: Theory, Construction, Operation, and Microwave Applications"
45 ĐỀ LUYỆN THI IOE LỚP 8 THEO CHƯƠNG TRÌNH MỚI - NĂM HỌC 2024-2025 (CÓ LINK ...
Time Series Analysis - Least Square Method Fitting a Linear Trend Equation
Photoperiod Classification of Vegetable Plants.pdf
Quarter 3 lesson 2 of English Grade 8.pptx
ATTENTION - PART 1.pptx cognitive processes -For B.Sc I Sem By Mrs.Shilpa Hot...
Rigor, ethics, wellbeing and resilience in the biomedical doctoral journey
 
AI and ICT for Teaching and Learning, Induction-cum-Training Programme, 5th 8...
Photography Pillar 1 The Subject PowerPoint
Agentic AI and AI Agents 20251121.pdf - by Ms. Oceana Wong
Chapter 3. Pharmaceutical Aids (pharmaceutics)
Session 5 Overview of the PPST and Its Indicators (COI and NCOI).pptx
UGC NET Paper 1 Syllabus | 10 Units Complete Guide for NTA JRF
Unit 1- Basics of Management Cha. of Magmt
LYMPHATIC SYSTEM.pptx it includes lymph, lymph nodes, bone marrow, spleen
AI Workflows and Workflow Rhetoric - by Ms. Oceana Wong
Capitol Webinar November 2025 Emily Barnes.pdf
Digital Electronics – Registers and Their Applications
Integrated Circuits: Lithography Techniques - Fundamentals and Advanced Metho...
Introduction to Beauty Care and Wellness Services.pptx-day fcs 3rd quarter tl...
IMPATT Diodes: Theory, Construction, Operation, and Microwave Applications"

Contiguous Memory Allocation.ppt

  • 1.
    8.1 Silberschatz, Galvinand Gagne ©2013Operating System Concepts – 9th EditionContiguous Allocation Main memory must support both OS and user processes Limited resource, must allocate efficiently Contiguous allocation is one early method Main memory usually into two partitions: Resident operating system, usually held in low memory withinterrupt vector User processes then held in high memory Each process contained in single contiguous section ofmemory
  • 2.
    8.2 Silberschatz, Galvinand Gagne ©2013Operating System Concepts – 9th EditionContiguous Allocation (Cont.) Relocation registers used to protect user processes from eachother, and from changing operating-system code and data Base register contains value of smallest physical address Limit register contains range of logical addresses – eachlogical address must be less than the limit register MMU maps logical address dynamically Can then allow actions such as kernel code being transientand kernel changing size
  • 3.
    8.3 Silberschatz, Galvinand Gagne ©2013Operating System Concepts – 9th EditionHardware Support for Relocation and Limit Registers
  • 4.
    8.4 Silberschatz, Galvinand Gagne ©2013Operating System Concepts – 9th EditionMultiple-partition allocation Multiple-partition allocation Degree of multiprogramming limited by number of partitions Variable-partition sizes for efficiency (sized to a given process’ needs) Hole – block of available memory; holes of various size are scatteredthroughout memory When a process arrives, it is allocated memory from a hole large enough toaccommodate it Process exiting frees its partition, adjacent free partitions combined Operating system maintains information about:a) allocated partitions b) free partitions (hole)
  • 5.
    8.5 Silberschatz, Galvinand Gagne ©2013Operating System Concepts – 9th EditionDynamic Storage-Allocation Problem First-fit: Allocate the first hole that is big enough Best-fit: Allocate the smallest hole that is big enough; mustsearch entire list, unless ordered by size Produces the smallest leftover hole Worst-fit: Allocate the largest hole; must also search entire list Produces the largest leftover holeHow to satisfy a request of size n from a list of free holes?First-fit and best-fit better than worst-fit in terms of speed and storageutilization
  • 6.
    8.6 Silberschatz, Galvinand Gagne ©2013Operating System Concepts – 9th EditionFragmentation External Fragmentation – total memory space exists tosatisfy a request, but it is not contiguous Internal Fragmentation – allocated memory may be slightlylarger than requested memory; this size difference is memoryinternal to a partition, but not being used First fit analysis reveals that given N blocks allocated, 0.5 Nblocks lost to fragmentation 1/3 may be unusable -> 50-percent rule
  • 7.
    8.7 Silberschatz, Galvinand Gagne ©2013Operating System Concepts – 9th EditionFragmentation (Cont.) Reduce external fragmentation by compaction Shuffle memory contents to place all free memory togetherin one large block Compaction is possible only if relocation is dynamic, and isdone at execution time I/O problem Latch job in memory while it is involved in I/O Do I/O only into OS buffers Now consider that backing store has same fragmentationproblems

[8]ページ先頭

©2009-2025 Movatter.jp