The first memory is not partitioned, partitions are created as processes are loaded and have the same size of these, later partitions are free (when a process completes, for example) and are occupied by new processes, if a process is smaller than a partition, this is divided into two parts, the first one as large as the process and the other the remainder.
Memory has a finite size, only a limited number of processes can be in memory at once, but the swap space (backing store) allows to keep some of these processes, generally the less active, and leave available memory for the new ones. Swapped out processes are allocated back into memory when needed.
| Process | Size: Units |
| P1 | 5 |
| P2 | 8 |
| P3 | 3 |
| P4 | 15 |
| P5 | 2 |
| P6 | 20 |
| P7 | 8 |
| P8 | 10 |
Processes are allocated in the table order.
Comments: