Internal fragmentation: wasted space inside an allocated block (for example a 4 KB page allocated for 3 KB of data, wasting 1 KB, or fixed-size partitions).
External fragmentation: enough total free memory exists but it is split into small non-contiguous holes (variable-size partitions and segmentation).
Paging removes external fragmentation but causes some internal fragmentation (the last page of a process); segmentation has the opposite trade-off. Compaction, paging and good allocators reduce the problem.
Loading…