Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add allocator_muzzy field in INFO MEMORY and MEMORY STATS #2672

Merged
merged 4 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions commands/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,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 @@ -36,6 +38,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.
Loading