⚡ Memory Allocator Visualizer
Watch malloc() and free() happen in real-time
How it works:
Click "Allocate" to request memory. The allocator finds free blocks and marks them as used. Click "Free Random" to release memory. Watch fragmentation happen as memory gets chopped up!
Allocator Strategy
First Fit
Find first free block
Best Fit
Find smallest fit
Worst Fit
Find largest fit
Next Fit
Continue from last
Memory Pool Size:
1024 bytes
Allocation Size:
64 bytes
🔵 Allocate Memory
🔴 Free Random Block
🔧 Defragment
♻️ Reset
Memory Layout
Free Memory
Allocated
Fragmented (too small)
Statistics
Total Memory
0 B
Used
0 B
Free
0 B
Fragmentation
0%
Allocations
0
Free Blocks
1
Active Allocations