The fork / COW memory storm
Redis calls fork() for an RDB save or AOF rewrite. If writes are heavy during the fork, copy-on-write duplicates dirty pages and used_memory_rss climbs toward 2x used_memory. The kernel OOM killer fires on RSS. This is the single most common cause of Redis getting killed in memory-limited containers.
- used_memory_rss spikes while rdb_bgsave_in_progress = 1
- rdb_last_cow_size or aof_last_cow_size above 50% of used_memory
- OOM kill in dmesg during a scheduled save
- latest_fork_usec far above ~20ms per GB (THP enabled)







