Skip to content

Commit

Permalink
Add overhead metrics to info and memory stats. (#2674)
Browse files Browse the repository at this point in the history
The corresponding doc PR of redis/redis#12913
---------

Co-authored-by: Oran Agra <[email protected]>
  • Loading branch information
CharlesChen888 and oranagra committed Mar 1, 2024
1 parent 20ed031 commit aebf9fb
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -150,6 +150,7 @@ Here is the meaning of all fields in the **memory** section:
* `mem_replication_backlog`: Memory used by replication backlog
* `mem_total_replication_buffers`: Total memory consumed for replication buffers - Added in Redis 7.0.
* `mem_allocator`: Memory allocator, chosen at compile time.
* `mem_overhead_db_hashtable_rehashing`: Temporary memory overhead of database dictionaries currently being rehashed - Added in 8.0.
* `active_defrag_running`: When `activedefrag` is enabled, this indicates whether defragmentation is currently active, and the CPU percentage it intends to utilize.
* `lazyfree_pending_objects`: The number of objects waiting to be freed (as a
result of calling `UNLINK`, or `FLUSHDB` and `FLUSHALL` with the **ASYNC**
Expand Down
3 changes: 3 additions & 0 deletions commands/memory-stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ values. The following metrics are reported:
* `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
* `overhead.db.hashtable.lut`: Total overhead of dictionary buckets in databases (Added in Redis 8.0)
* `overhead.db.hashtable.rehashing`: Temporary memory overhead of database dictionaries currently being rehashed (Added in Redis 8.0)
* `overhead.total`: The sum of all overheads, i.e. `startup.allocated`,
`replication.backlog`, `clients.slaves`, `clients.normal`, `aof.buffer` and
those of the internal data structures that are used in managing the
Redis keyspace (see `INFO`'s `used_memory_overhead`)
* `db.dict.rehashing.count`: Number of DB dictionaries currently being rehashed (Added in Redis 8.0)
* `keys.count`: The total number of keys stored across all databases in the
server
* `keys.bytes-per-key`: The ratio between `dataset.bytes` and `keys.count`
Expand Down

0 comments on commit aebf9fb

Please sign in to comment.