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
03629ba0
Unverified
Commit
03629ba0
authored
Dec 07, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Dec 07, 2018
Browse files
Merge pull request #5633 from oranagra/frag_bytes_signed
fix #5580, display fragmentation and rss overhead bytes as signed
parents
cdab4c3e
b587c54c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
03629ba0
...
@@ -3243,11 +3243,11 @@ sds genRedisInfoString(char *section) {
...
@@ -3243,11 +3243,11 @@ sds genRedisInfoString(char *section) {
"allocator_frag_ratio:%.2f
\r\n
"
"allocator_frag_ratio:%.2f
\r\n
"
"allocator_frag_bytes:%zu
\r\n
"
"allocator_frag_bytes:%zu
\r\n
"
"allocator_rss_ratio:%.2f
\r\n
"
"allocator_rss_ratio:%.2f
\r\n
"
"allocator_rss_bytes:%z
u
\r\n
"
"allocator_rss_bytes:%z
d
\r\n
"
"rss_overhead_ratio:%.2f
\r\n
"
"rss_overhead_ratio:%.2f
\r\n
"
"rss_overhead_bytes:%z
u
\r\n
"
"rss_overhead_bytes:%z
d
\r\n
"
"mem_fragmentation_ratio:%.2f
\r\n
"
"mem_fragmentation_ratio:%.2f
\r\n
"
"mem_fragmentation_bytes:%z
u
\r\n
"
"mem_fragmentation_bytes:%z
d
\r\n
"
"mem_not_counted_for_evict:%zu
\r\n
"
"mem_not_counted_for_evict:%zu
\r\n
"
"mem_replication_backlog:%zu
\r\n
"
"mem_replication_backlog:%zu
\r\n
"
"mem_clients_slaves:%zu
\r\n
"
"mem_clients_slaves:%zu
\r\n
"
...
...
src/server.h
View file @
03629ba0
...
@@ -864,11 +864,11 @@ struct redisMemOverhead {
...
@@ -864,11 +864,11 @@ struct redisMemOverhead {
float
dataset_perc
;
float
dataset_perc
;
float
peak_perc
;
float
peak_perc
;
float
total_frag
;
float
total_frag
;
size_t
total_frag_bytes
;
s
size_t
total_frag_bytes
;
float
allocator_frag
;
float
allocator_frag
;
size_t
allocator_frag_bytes
;
s
size_t
allocator_frag_bytes
;
float
allocator_rss
;
float
allocator_rss
;
size_t
allocator_rss_bytes
;
s
size_t
allocator_rss_bytes
;
float
rss_extra
;
float
rss_extra
;
size_t
rss_extra_bytes
;
size_t
rss_extra_bytes
;
size_t
num_dbs
;
size_t
num_dbs
;
...
...
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