0% found this document useful (0 votes)
74 views6 pages

Presentation 1

Compaction is a memory management technique in operating systems aimed at reducing fragmentation and optimizing memory utilization by rearranging memory blocks into larger contiguous free memory. Fragmentation occurs when memory is divided into small, non-contiguous blocks, which can degrade system performance. The advantages of compaction include reduced external fragmentation, more efficient memory usage, and the ability to load more processes into contiguous memory.

Uploaded by

harshitkumbhkar1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views6 pages

Presentation 1

Compaction is a memory management technique in operating systems aimed at reducing fragmentation and optimizing memory utilization by rearranging memory blocks into larger contiguous free memory. Fragmentation occurs when memory is divided into small, non-contiguous blocks, which can degrade system performance. The advantages of compaction include reduced external fragmentation, more efficient memory usage, and the ability to load more processes into contiguous memory.

Uploaded by

harshitkumbhkar1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

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❤

You might also like