This visual execution shows how to analyze Redis memory usage using the INFO memory command. First, the command is run to get memory statistics. Then key metrics like used_memory, used_memory_rss, used_memory_peak, and mem_fragmentation_ratio are extracted. The used_memory shows actual memory used by Redis data. The used_memory_rss shows memory allocated by the operating system, which is usually larger due to fragmentation and overhead. The used_memory_peak shows the highest memory used since Redis started, helping identify memory spikes. The mem_fragmentation_ratio indicates how much extra memory is used due to fragmentation; a value of 2.0 means twice the memory is used compared to actual data size, which is inefficient. By analyzing these values, one can decide if optimization or monitoring is needed. This step-by-step trace helps beginners understand how Redis memory metrics relate and how to interpret them for better memory management.