Concept Flow - Internal vs external fragmentation
Memory Allocation Request
Check for Free Block
Block fits
Allocate Block
Unused space inside block?
Yes
Internal Fragmentation
End
Memory allocation tries to find a free block. If block is bigger than needed, leftover inside causes internal fragmentation. If no suitable block found due to scattered free spaces, external fragmentation occurs.