There's more...

Please consider that the memory allocated for query buffer and output buffer are calculated into used_memory_overhead returned by the INFO MEMORY command excluding the output buffer of the monitor client. Due to the fact that used_memory = used_memory_overhead + used_memory_dataset, these two kinds of buffer are also taken into account  by the used_memory metric.

Get Redis 4.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.