save peak memory usage as statistic and show it in INFO. Also a new INFO field was added showing the fragmentation ratio using the peak memory info.

This commit is contained in:
antirez
2011-04-21 10:49:52 +02:00
parent c7ba7b8bbb
commit 17b24ff30d
2 changed files with 17 additions and 2 deletions

View File

@ -518,6 +518,7 @@ struct redisServer {
long long stat_evictedkeys; /* number of evicted keys (maxmemory) */
long long stat_keyspace_hits; /* number of successful lookups of keys */
long long stat_keyspace_misses; /* number of failed lookups of keys */
size_t stat_peak_memory; /* max used memory record */
/* Configuration */
int verbosity;
int maxidletime;