# Memory Fragmentation

> What does memfragmentationratio in INFO memory mean, how do you interpret high and low values, and how do you fix fragmentation?

Canonical: https://www.internhack.in/learn/interview/redis-caching/redis-memory-fragmentation
Last updated: 2026-11-28

Difficulty: Advanced

## Question

What does \`mem_fragmentation_ratio\` in \`INFO memory\` mean, how do you interpret high and low values, and how do you fix fragmentation?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

mem_fragmentation_ratio, used_memory_rss, jemalloc, Active defragmentation, Swapping

Previous: [Pausing Clients](https://www.internhack.in/learn/interview/redis-caching/redis-client-pause) · Next: [Client-Side Caching (Redis 6+)](https://www.internhack.in/learn/interview/redis-caching/redis-client-caching-tracking) · [All of Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)

## More Redis & Caching questions

- [ACLs (Access Control Lists)](https://www.internhack.in/learn/interview/redis-caching/redis-acl-manager)
- [AOF Sync Options](https://www.internhack.in/learn/interview/redis-caching/redis-appendfsync-options)
- [RDB Compression](https://www.internhack.in/learn/interview/redis-caching/redis-rdb-compression)
- [Disabling Replies](https://www.internhack.in/learn/interview/redis-caching/redis-client-reply)
- [Data Migration](https://www.internhack.in/learn/interview/redis-caching/redis-migration-pattern)
- [Redis VM/Swap (Legacy)](https://www.internhack.in/learn/interview/redis-caching/redis-swap-files-legacy)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Redis & Caching](https://www.internhack.in/learn/interview/redis-caching)
