Memory fragmentation is a state where free memory is divided into small, scattered blocks, preventing the allocation of a larger contiguous segment despite sufficient total free space. In agentic memory systems, this occurs when persistent data structures like vector stores or knowledge graphs are frequently updated and evicted, leaving unusable gaps. This reduces effective memory capacity, increases allocation latency, and can degrade the performance of retrieval-augmented generation (RAG) and other memory-intensive operations.
