What is compaction in operating system?
The external fragmentation problem can be solved by shifting all the processes
to one end of memory, so that all the memory holes can be collected into a
single section and a large block of free memory will be available for use. This
technique is known as compaction.