Skip to content

Commit

Permalink
Add allocator_muzzy field in INFO MEMORY and MEMORY STATS (#2672)
Browse files Browse the repository at this point in the history
In redis/redis#12996 we add a new `allocator_muzzy` field for `INFO MEMORY` and `MEMORY STATS`.
Also update MEMORY-STATS.md for missing fields.
  • Loading branch information
sundb authored Mar 11, 2024
1 parent 7f18c04 commit d74da8f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions commands/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Here is the meaning of all fields in the **memory** section:
* `allocator_allocated`: Total bytes allocated form the allocator, including internal-fragmentation. Normally the same as `used_memory`.
* `allocator_active`: Total bytes in the allocator active pages, this includes external-fragmentation.
* `allocator_resident`: Total bytes resident (RSS) in the allocator, this includes pages that can be released to the OS (by `MEMORY PURGE`, or just waiting).
* `allocator_muzzy`: Total bytes of 'muzzy' memory (RSS) in the allocator. Muzzy memory is memory that has been freed, but not yet fully returned to the operating system. It can be reused immediately when needed or reclaimed by the OS when system pressure increases.
* `mem_not_counted_for_evict`: Used memory that's not counted for key eviction. This is basically transient replica and AOF buffers.
* `mem_clients_slaves`: Memory used by replica clients - Starting Redis 7.0, replica buffers share memory with the replication backlog, so this field can show 0 when replicas don't trigger an increase of memory usage.
* `mem_clients_normal`: Memory used by normal clients
Expand Down
13 changes: 13 additions & 0 deletions commands/memory-stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ values. The following metrics are reported:
* `aof.buffer`: The summed size in bytes of AOF related buffers.
* `lua.caches`: the summed size in bytes of the overheads of the Lua scripts'
caches
* `functions.caches`: the summed size in bytes of the overheads of the Function scripts'
caches
* `dbXXX`: For each of the server's databases, the overheads of the main and
expiry dictionaries (`overhead.hashtable.main` and
`overhead.hashtable.expires`, respectively) are reported in bytes
Expand All @@ -39,6 +41,17 @@ values. The following metrics are reported:
memory usage
* `peak.percentage`: The percentage of `total.allocated` out of
`peak.allocated`
* `allocator.allocated`: See `INFO`'s `allocator_allocated`
* `allocator.active`: See `INFO`'s `allocator_active`
* `allocator.resident`: See `INFO`'s `allocator_resident`
* `allocator.muzzy`: See `INFO`'s `allocator_muzzy`
* `allocator-fragmentation.ratio`: See `INFO`'s `allocator_frag_ratio`
* `allocator-fragmentation.bytes`: See `INFO`'s `allocator_frag_bytes`
* `allocator-rss.ratio`: See `INFO`'s `allocator_rss_ratio`
* `allocator-rss.bytes`: See `INFO`'s `allocator_rss_bytes`
* `rss-overhead.ratio`: See `INFO`'s `rss_overhead_ratio`
* `rss-overhead.bytes`: See `INFO`'s `rss_overhead_bytes`
* `fragmentation`: See `INFO`'s `mem_fragmentation_ratio`
* `fragmentation.bytes`: See `INFO`'s `mem_fragmentation_bytes`

**A note about the word slave used in this man page**: Starting with Redis 5, if not for backward compatibility, the Redis project no longer uses the word slave. Unfortunately in this command the word slave is part of the protocol, so we'll be able to remove such occurrences only when this API will be naturally deprecated.

0 comments on commit d74da8f

Please sign in to comment.