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
f4b27ae2
Commit
f4b27ae2
authored
Aug 13, 2018
by
Oran Agra
Browse files
script cache memory in INFO and MEMORY includes both script code and overheads
parent
39c70e72
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
f4b27ae2
...
...
@@ -1017,7 +1017,7 @@ struct redisMemOverhead *getMemoryOverheadData(void) {
mh
->
aof_buffer
=
mem
;
mem_total
+=
mem
;
mem
=
0
;
mem
=
server
.
lua_scripts_mem
;
mem
+=
dictSize
(
server
.
lua_scripts
)
*
sizeof
(
dictEntry
)
+
dictSlots
(
server
.
lua_scripts
)
*
sizeof
(
dictEntry
*
);
mem
+=
dictSize
(
server
.
repl_scriptcache_dict
)
*
sizeof
(
dictEntry
)
+
...
...
src/server.c
View file @
f4b27ae2
...
...
@@ -3186,7 +3186,7 @@ sds genRedisInfoString(char *section) {
bytesToHuman
(
peak_hmem
,
server
.
stat_peak_memory
);
bytesToHuman
(
total_system_hmem
,
total_system_mem
);
bytesToHuman
(
used_memory_lua_hmem
,
memory_lua
);
bytesToHuman
(
used_memory_scripts_hmem
,
server
.
lua_scripts_mem
);
bytesToHuman
(
used_memory_scripts_hmem
,
mh
->
lua_caches
);
bytesToHuman
(
used_memory_rss_hmem
,
server
.
cron_malloc_stats
.
process_rss
);
bytesToHuman
(
maxmemory_hmem
,
server
.
maxmemory
);
...
...
@@ -3251,7 +3251,7 @@ sds genRedisInfoString(char *section) {
total_system_hmem
,
memory_lua
,
used_memory_lua_hmem
,
server
.
lua_scripts_mem
,
mh
->
lua_caches
,
used_memory_scripts_hmem
,
dictSize
(
server
.
lua_scripts
),
server
.
maxmemory
,
...
...
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