Skip to content

Commit aebf9fb

Browse files
Add overhead metrics to info and memory stats. (#2674)
The corresponding doc PR of redis/redis#12913 --------- Co-authored-by: Oran Agra <oran@redislabs.com>
1 parent 20ed031 commit aebf9fb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

commands/info.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ Here is the meaning of all fields in the **memory** section:
150150
* `mem_replication_backlog`: Memory used by replication backlog
151151
* `mem_total_replication_buffers`: Total memory consumed for replication buffers - Added in Redis 7.0.
152152
* `mem_allocator`: Memory allocator, chosen at compile time.
153+
* `mem_overhead_db_hashtable_rehashing`: Temporary memory overhead of database dictionaries currently being rehashed - Added in 8.0.
153154
* `active_defrag_running`: When `activedefrag` is enabled, this indicates whether defragmentation is currently active, and the CPU percentage it intends to utilize.
154155
* `lazyfree_pending_objects`: The number of objects waiting to be freed (as a
155156
result of calling `UNLINK`, or `FLUSHDB` and `FLUSHALL` with the **ASYNC**

commands/memory-stats.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ values. The following metrics are reported:
2323
* `dbXXX`: For each of the server's databases, the overheads of the main and
2424
expiry dictionaries (`overhead.hashtable.main` and
2525
`overhead.hashtable.expires`, respectively) are reported in bytes
26+
* `overhead.db.hashtable.lut`: Total overhead of dictionary buckets in databases (Added in Redis 8.0)
27+
* `overhead.db.hashtable.rehashing`: Temporary memory overhead of database dictionaries currently being rehashed (Added in Redis 8.0)
2628
* `overhead.total`: The sum of all overheads, i.e. `startup.allocated`,
2729
`replication.backlog`, `clients.slaves`, `clients.normal`, `aof.buffer` and
2830
those of the internal data structures that are used in managing the
2931
Redis keyspace (see `INFO`'s `used_memory_overhead`)
32+
* `db.dict.rehashing.count`: Number of DB dictionaries currently being rehashed (Added in Redis 8.0)
3033
* `keys.count`: The total number of keys stored across all databases in the
3134
server
3235
* `keys.bytes-per-key`: The ratio between `dataset.bytes` and `keys.count`

0 commit comments

Comments
 (0)