L10 Lecture Memory
L10 Lecture Memory
L10 Lecture Memory
Memory Management
Source: https://www.geeksforgeeks.org/levels-of-memory-in-operating-system/
Logical vs. Physical Address Space
Operating System
RAM (Primary Memory) HDD (Secondary Storage)
Teams
Words
Operating System
RAM (Primary Memory) HDD (Secondary Storage)
NEW PROCESS Available Segment
Teams
Chrome
Words
CANNOT FIT,
INSUFFUCIENT
RAM SPACE
Operating System
HOW??
RAM (Primary Memory) HDD (Secondary Storage)
NEW PROCESS Available Segment
Teams
Chrome
SWAP OUT
Idle Process will be
Words moved out of the
CANNOT FIT,
INSUFFUCIENT memory
RAM SPACE
Operating System
HOW??
RAM (Primary Memory) HDD (Secondary Storage)
NEW PROCESS Available Space
Teams
Chrome
Words
Available Space
Operating System
RAM (Primary Memory) HDD (Secondary Storage)
NEW PROCESS Available Space
Spreadsheet Teams
Words
Available Space
Operating System
RAM (Primary Memory) HDD (Secondary Storage)
NEW PROCESS Available Space
Spreadsheet Teams
Words
Available Space
Operating System
External Fragmentation
available memory is broken up into lots of little pieces, none of which is big enough to satisfy
the next memory requirement, although the sum total could.
In other words, the total memory space exists to satisfy a request, but it is not contiguous
Segmentation (Non-Contiguous Memory Allocation)
Most users ( programmers ) do
not think of their programs as
existing in one continuous
linear address space.
Memory in multiple segments,
each dedicated to a particular
use, such as code, data, the
stack, the heap, etc.
Memory segmentation supports
this view by providing addresses
with a segment number
( mapped to a segment base
address ) and an offset from the
beginning of that segment.
RAM (Primary Memory) HDD (Secondary Storage)
NEW PROCESS Available Segment 1000
1200
Spreadsheet Teams
Words
Available Segment 2000
2400
(Segment Table) Operating System
Words
Available Segment 2000