From 7638653c2ef3c066d3c4bdf0f60190532506b630 Mon Sep 17 00:00:00 2001 From: "debing.sun" Date: Tue, 16 Apr 2024 19:48:38 +0800 Subject: [PATCH 1/2] Add some fields for Lua allocator in INFO DEBUG --- commands/info.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/info.md b/commands/info.md index d21680462..7cf242cac 100644 --- a/commands/info.md +++ b/commands/info.md @@ -453,6 +453,10 @@ It won't be included when `INFO` or `INFO ALL` are called, and it is returned on * `eventloop_duration_cron_sum`: Total time consumption of cron in microseconds (including serverCron and beforeSleep, but excluding IO and AOF flushing) * `eventloop_duration_max`: The maximal time spent in a single eventloop cycle in microseconds * `eventloop_cmd_per_cycle_max`: The maximal number of commands processed in a single eventloop cycle +* `allocator_allocated_lua`: Total bytes allocated form the allocator specifically for Lua, including internal-fragmentation. +* `allocator_active_lua`: Total bytes in the allocator active pages specifically for Lua, this includes external-fragmentation. +* `allocator_resident_lua`: Total bytes resident (RSS) in the allocator specifically for Lua, this includes pages that can be released to the OS (by `MEMORY PURGE`, or just waiting). +* `allocator_frag_bytes_lua`: Delta between `allocator_active_lua` and `allocator_allocated_lua`. [hcgcpgp]: http://code.google.com/p/google-perftools/ From ea96dd4d6d1ee4a0bcbc4d4d26080313a583c51f Mon Sep 17 00:00:00 2001 From: "debing.sun" Date: Sat, 20 Apr 2024 08:40:18 +0800 Subject: [PATCH 2/2] Update commands/info.md Co-authored-by: Binbin --- commands/info.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/info.md b/commands/info.md index 7cf242cac..e750382e5 100644 --- a/commands/info.md +++ b/commands/info.md @@ -453,7 +453,7 @@ It won't be included when `INFO` or `INFO ALL` are called, and it is returned on * `eventloop_duration_cron_sum`: Total time consumption of cron in microseconds (including serverCron and beforeSleep, but excluding IO and AOF flushing) * `eventloop_duration_max`: The maximal time spent in a single eventloop cycle in microseconds * `eventloop_cmd_per_cycle_max`: The maximal number of commands processed in a single eventloop cycle -* `allocator_allocated_lua`: Total bytes allocated form the allocator specifically for Lua, including internal-fragmentation. +* `allocator_allocated_lua`: Total bytes allocated from the allocator specifically for Lua, including internal-fragmentation. * `allocator_active_lua`: Total bytes in the allocator active pages specifically for Lua, this includes external-fragmentation. * `allocator_resident_lua`: Total bytes resident (RSS) in the allocator specifically for Lua, this includes pages that can be released to the OS (by `MEMORY PURGE`, or just waiting). * `allocator_frag_bytes_lua`: Delta between `allocator_active_lua` and `allocator_allocated_lua`.