INFO command reports used_memory > used_memory_peak #1570

Closed
z5h opened this Issue Feb 28, 2014 · 2 comments

Comments

Projects
None yet
2 participants

z5h commented Feb 28, 2014

INFO command reports used_memory > used_memory_peak

127.0.0.1:6379> info
# Server
redis_version:2.8.3
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:e836d8ad888e21a1
redis_mode:standalone
os:Darwin 13.0.2 x86_64
arch_bits:64
multiplexing_api:kqueue
gcc_version:4.2.1
process_id:9322
run_id:a2378229123b4fcba429008629b583c28e8b8b4c
tcp_port:6379
uptime_in_seconds:979
uptime_in_days:0
hz:10
lru_clock:949430
config_file:

# Clients
connected_clients:1
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

# Memory
used_memory:1002608
used_memory_human:979.11K
used_memory_rss:1691648
used_memory_peak:1001808
used_memory_peak_human:978.33K
used_memory_lua:33792
mem_fragmentation_ratio:1.69
mem_allocator:libc

# Persistence
loading:0
rdb_changes_since_last_save:6
rdb_bgsave_in_progress:0
rdb_last_save_time:1393613654
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok

# Stats
total_connections_received:2
total_commands_processed:2
instantaneous_ops_per_sec:0
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0

# Replication
role:master
connected_slaves:0
master_repl_offset:0
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

# CPU
used_cpu_sys:0.25
used_cpu_user:0.19
used_cpu_sys_children:0.00
used_cpu_user_children:0.00

# Keyspace
Owner

antirez commented Feb 28, 2014

Hello, peak memory is sampled once every clock tick so this is normal, while used memory is instantaneous. Difference will always be small like this in the worst case. Thanks for reporting! Salvatore

antirez closed this Feb 28, 2014

z5h commented Feb 28, 2014

Thank you. Reassuring to understand what's happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment