Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8c3402df
Commit
8c3402df
authored
May 07, 2011
by
antirez
Browse files
Lua memory usage in INFO
parent
40531be0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
8c3402df
...
...
@@ -1320,6 +1320,7 @@ sds genRedisInfoString(char *section) {
"used_memory_rss:%zu
\r\n
"
"used_memory_peak:%zu
\r\n
"
"used_memory_peak_human:%s
\r\n
"
"used_memory_lua:%lld
\r\n
"
"mem_fragmentation_ratio:%.2f
\r\n
"
"mem_allocator:%s
\r\n
"
,
zmalloc_used_memory
(),
...
...
@@ -1327,6 +1328,7 @@ sds genRedisInfoString(char *section) {
zmalloc_get_rss
(),
server
.
stat_peak_memory
,
peak_hmem
,
((
long
long
)
lua_gc
(
server
.
lua
,
LUA_GCCOUNT
,
0
))
*
1024LL
,
zmalloc_get_fragmentation_ratio
(),
REDIS_MALLOC
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment