Variable (or Dynamic) Partitioning in Operating System
Last Updated : 15 Jan, 2026
Variable (Dynamic) Partitioning is a contiguous memory allocation technique where memory partitions are created at run-time based on the size of the process requesting memory. Unlike fixed partitioning, partitions are not predefined during system configuration.
This method was introduced to overcome the limitations of fixed partitioning, especially internal fragmentation.
How Variable Partitioning Works:
Initially, the entire RAM is free and unpartitioned.
When a process arrives, the operating system allocates exactly the amount of memory required by that process.
Each partition is created dynamically and may differ in size.
When a process finishes execution, its allocated memory is released and becomes a free hole.
The number of partitions in memory changes dynamically based on process arrival and termination.