Question
maxmemory versus host memory capacity: what does each limit?
Answer
maxmemory governs memory used for eviction decisions; host capacity bounds the process and operating system. Set maxmemory below available RAM to leave headroom for allocator overhead, replication, persistence, and the OS. Applies to Redis and Valkey.