Presentation
Operating System
Compaction
By - Harshit Kumbhkar
What is Compaction
Compaction is a memory management technique used in
operating system to reduce fragmentation and optimize
memory utilization. It involves rearranging memory block to
Create larger contiguous block of free memory, thereby
improving system performance and efficiency.
An Unwanted problem with Os is fragmentation,
It refers to the phenomenon where memory becomes divided into
small. Non-contiguous block over time as processes allocate and de-
allocate memory.
Fragmentation can degrade system performance and efficiency over
time, as it makes it harder for the operating system to find contiguous
block of memory for new allocation.
Compaction Is primarily a software-based technique implemented
within the operating system’s memory management subsystem. It
involves algorithms and mechanisms designed to rearrange memory
blocks to reduce fragmentation and optimize memory utilization.
It identify free memory holes and then moves allocated memory block
to create contiguous block for free memory. Once all allocated memory
have been moved, the operating system compact the free memory
block to create larger contiguous block of free memory.
Advantages of Compaction
➢ Reduces external fragmentation.
➢ Make memory usage efficient.
➢ Memory becomes contiguous.
➢ More processes can be loaded in this
contiguous memory.
➢ Fragmentation of file system can be temporarily
removed by compaction.
.
Thank-you❤