mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Lua memory usage in INFO
This commit is contained in:
parent
40531be0e3
commit
8c3402dffa
@ -1320,6 +1320,7 @@ sds genRedisInfoString(char *section) {
|
|||||||
"used_memory_rss:%zu\r\n"
|
"used_memory_rss:%zu\r\n"
|
||||||
"used_memory_peak:%zu\r\n"
|
"used_memory_peak:%zu\r\n"
|
||||||
"used_memory_peak_human:%s\r\n"
|
"used_memory_peak_human:%s\r\n"
|
||||||
|
"used_memory_lua:%lld\r\n"
|
||||||
"mem_fragmentation_ratio:%.2f\r\n"
|
"mem_fragmentation_ratio:%.2f\r\n"
|
||||||
"mem_allocator:%s\r\n",
|
"mem_allocator:%s\r\n",
|
||||||
zmalloc_used_memory(),
|
zmalloc_used_memory(),
|
||||||
@ -1327,6 +1328,7 @@ sds genRedisInfoString(char *section) {
|
|||||||
zmalloc_get_rss(),
|
zmalloc_get_rss(),
|
||||||
server.stat_peak_memory,
|
server.stat_peak_memory,
|
||||||
peak_hmem,
|
peak_hmem,
|
||||||
|
((long long)lua_gc(server.lua,LUA_GCCOUNT,0))*1024LL,
|
||||||
zmalloc_get_fragmentation_ratio(),
|
zmalloc_get_fragmentation_ratio(),
|
||||||
REDIS_MALLOC
|
REDIS_MALLOC
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user