127.0.0.1:6380> info memory
# Memory
used_memory:4189334840
used_memory_rss:4692721664
mem_fragmentation_ratio:1.12
mem_allocator:jemalloc-3.6.0
used_memory: Total number of bytes allocated by Redis using its allocator (either standard libc, jemalloc, or an alternative allocator such as tcmalloc).
used_memory最大值是由config set maxmemory xx设置的。
127.0.0.1:6380> config get maxmemory
1) "maxmemory"
2) "9277800448"
used_memory_rss: Number of bytes that Redis allocated as seen by the operating system (a.k.a resident set size). This is the number reported by tools such as top(1) and ps(1).
used_memory_rss该值同top的RES(%MEM),ps的%ME