Discussed in https://github.com/redis/redis/discussions/13667

Originally posted by **rkohrt** November 27, 2024 My redis is not able to do the background saving, my log is full with logs like these:
2817:M 23 Nov 2024 11:28:59.938 - DB 0: 27168 keys (0 volatile) in 32768 slots HT.
2817:M 23 Nov 2024 11:28:59.938 . 1 clients connected (0 replicas), 13098864 bytes in use
2817:M 23 Nov 2024 11:29:00.039 * 1 changes in 3600 seconds. Saving...
2817:M 23 Nov 2024 11:29:00.043 * Background saving started by pid 29696
29696:C 23 Nov 2024 11:29:00.051 - Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
2817:M 23 Nov 2024 11:29:00.549 # Background saving terminated by signal 31
Unfortunately I am not able to get more verbose logs about this (the above is with loglevel=debug), so I really do not know how to fix/improve this. I already configured my machine to allow memory overcommit:
cat /proc/sys/vm/overcommit_memory 
1
redis-server -v
Redis server v=7.0.15 sha=00000000:0 malloc=jemalloc-5.3.0 bits=32 build=8fef3e995a542118
It seems redis is sometimes able to do the saving:
ls /var/lib/redis -al
total 4104
drwxr-x---  2 redis redis    4096 Nov 23 11:45 .
drwxr-xr-x 28 root  root     4096 Nov 13 10:14 ..
-rw-rw----  1 redis redis 4193638 Nov 16 09:42 dump.rdb
and during a restart it seems to work as well:
# systemctl restart redis
# ls /var/lib/redis -al
total 8200
drwxr-x---  2 redis redis    4096 Nov 23 11:46 .
drwxr-xr-x 28 root  root     4096 Nov 13 10:14 ..
-rw-rw----  1 redis redis 4193638 Nov 16 09:42 dump.rdb
-rw-rw----  1 redis redis 4194304 Nov 23 11:46 temp-2817.rdb
But why is it not working in the background? I am not sure if this is a bug or not, the same thing is happening on two machines (with the same arm processor) - do you think I should open a bug report for this? (Note, this is a duplicate of https://serverfault.com/questions/1168060/redis-rdb-saving-fails-with-signal-31 )

I looked more into this and this does look more and more like a bug to me:

So I restarted my instance and nuked the rdb file and now the bgsave is working fine again, then I noticed that the temp*.rdb files created during shutdown of redis are all roughly the same size:

-rw-rw----  1 redis redis 1188391 Nov 28 08:18 dump.rdb
-rw-rw----  1 redis redis 4192639 Nov 25 20:50 prev_dump.rdb
-rw-rw----  1 redis redis 4194304 Nov 27 09:00 temp-9716.rdb
-rw-rw----  1 redis redis 4194304 Nov 28 06:49 temp-994.rdb

and are all not valid:

# redis-check-rdb temp-9716.rdb
[offset 0] Checking RDB file temp-9716.rdb
[offset 27] AUX FIELD redis-ver = '7.0.15'
[offset 41] AUX FIELD redis-bits = '32'
[offset 53] AUX FIELD ctime = '1732694435'
[offset 68] AUX FIELD used-mem = '12011128'
[offset 80] AUX FIELD aof-base = '0'
[offset 82] Selecting DB ID 0
--- RDB ERROR DETECTED ---
[offset 4194258] Unexpected EOF reading RDB file
[additional info] While doing: read-object-value
[additional info] Reading key 'events:CH*SWI*E18485'
[additional info] Reading type 18 (quicklist-v2)
[info] 30207 keys read
[info] 0 expires
[info] 0 already expired

(I am happy to supply the *.rdb files, if this helps)

Suspiciously they are all around 4mb - this being a 32bit machine, it is seems related?

also notice:

2^32/1024 == 4194304

which is exactly the file size of the invalid temp.rdb file created during shutdown - so this looks like an unsigned integer is overflowing during rdb dumping?

Comment From: rkohrt

To add a bit more content, that was missing above

ls -al
total 14124
drwxr-x---  2 redis redis    4096 Nov 28 16:39 .
drwxr-xr-x 23 root  root     4096 Nov 24 07:23 ..
-rw-rw----  1 redis redis 1869771 Nov 28 16:39 dump.rdb
-rw-rw----  1 redis redis 4192639 Nov 25 20:50 prev_dump.rdb
-rw-rw----  1 redis redis 4194304 Nov 27 09:00 temp-9716.rdb
-rw-rw----  1 redis redis 4194304 Nov 28 06:49 temp.rdb

My database is growing continuously, and as long as the file size of dump.rdb is below 4194304, bgsave seems to work every time, afterwards (i.e. if the file would be above that value) it does not work at all anymore and dump.rdb does not get updated anymore -> which explains the size of prev_dump.rdb, which is just below that limit and I assume the write after this was just above and thus failed.

Comment From: Rana-Jhanzaib-SE

i am facing exactly the same Issue. is there any help ????

Comment From: sundb

@Rana-Jhanzaib-SE what the size of the rdb file you generated?

Comment From: Rana-Jhanzaib-SE

Maximum size i got was 3.8mb. If the expected RDB size exceeds 4MB, the background saving process fails and is terminated with signal 31. However, when I manually remove some keys to reduce the size below 4MB, the BGSAVE operation resumes successfully. The problem reappears as soon as the RDB size exceeds the 4MB threshold again.

I have already configured the following settings to address this issue: "vm.overcommit_memory = 1" in /etc/sysctl.conf "stop-writes-on-bgsave-error no" in /etc/redis/redis.conf

so there are two more files with size 4194304 bytes when redis failed to save (where stop-writes-on-bgsave-error yes i guess) rdb

Comment From: sundb

@Rana-Jhanzaib-SE can you share the output of INFO ALL, I guess your memory footprint is much higher than 4 mb. If there is no sensitive information, can you share this rdb with my email(debing.sun@redis.con)? thanks.

Comment From: Rana-Jhanzaib-SE

ses@raspberrypi:~ $ redis-cli info all

Server

redis_version:7.0.15 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:8fef3e995a542118 redis_mode:standalone os:Linux 6.6.28+rpt-rpi-v8 aarch64 arch_bits:32 monotonic_clock:POSIX clock_gettime multiplexing_api:epoll atomicvar_api:c11-builtin gcc_version:12.2.0 process_id:767 process_supervised:systemd run_id:940fb24e557ec448552b6d4a1277deee552b64a7 tcp_port:6379 server_time_usec:1735809645807904 uptime_in_seconds:2232 uptime_in_days:0 hz:10 configured_hz:10 lru_clock:7756397 executable:/usr/bin/redis-server config_file:/etc/redis/redis.conf io_threads_active:0

Clients

connected_clients:15 cluster_connections:0 maxclients:10000 client_recent_max_input_buffer:20480 client_recent_max_output_buffer:0 blocked_clients:0 tracking_clients:0 clients_in_timeout_table:0

Memory

used_memory:8208936 used_memory_human:7.83M used_memory_rss:17825792 used_memory_rss_human:17.00M used_memory_peak:8417840 used_memory_peak_human:8.03M used_memory_peak_perc:97.52% used_memory_overhead:1180928 used_memory_startup:707464 used_memory_dataset:7028008 used_memory_dataset_perc:93.69% allocator_allocated:8834944 allocator_active:15007744 allocator_resident:15597568 total_system_memory:1936637952 total_system_memory_human:1.80G used_memory_lua:22528 used_memory_vm_eval:22528 used_memory_lua_human:22.00K used_memory_scripts_eval:0 number_of_cached_scripts:0 number_of_functions:0 number_of_libraries:0 used_memory_vm_functions:23552 used_memory_vm_total:46080 used_memory_vm_total_human:45.00K used_memory_functions:120 used_memory_scripts:120 used_memory_scripts_human:120B maxmemory:209715200 maxmemory_human:200.00M maxmemory_policy:allkeys-lru allocator_frag_ratio:1.70 allocator_frag_bytes:6172800 allocator_rss_ratio:1.04 allocator_rss_bytes:589824 rss_overhead_ratio:1.14 rss_overhead_bytes:2228224 mem_fragmentation_ratio:2.18 mem_fragmentation_bytes:9656512 mem_not_counted_for_evict:0 mem_replication_backlog:0 mem_total_replication_buffers:0 mem_clients_slaves:0 mem_clients_normal:64352 mem_cluster_links:0 mem_aof_buffer:0 mem_allocator:jemalloc-5.3.0 active_defrag_running:0 lazyfree_pending_objects:0 lazyfreed_objects:0

Persistence

loading:0 async_loading:0 current_cow_peak:0 current_cow_size:0 current_cow_size_age:0 current_fork_perc:0.00 current_save_keys_processed:0 current_save_keys_total:0 rdb_changes_since_last_save:130601 rdb_bgsave_in_progress:0 rdb_last_save_time:1735808314 rdb_last_bgsave_status:err rdb_last_bgsave_time_sec:0 rdb_current_bgsave_time_sec:-1 rdb_saves:74 rdb_last_cow_size:675840 rdb_last_load_keys_expired:0 rdb_last_load_keys_loaded:5060 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 aof_rewrites:0 aof_rewrites_consecutive_failures:0 aof_last_write_status:ok aof_last_cow_size:0 module_fork_in_progress:0 module_fork_last_cow_size:0

Stats

total_connections_received:2456 total_commands_processed:16934 instantaneous_ops_per_sec:2 total_net_input_bytes:5644408 total_net_output_bytes:15822663 total_net_repl_input_bytes:0 total_net_repl_output_bytes:0 instantaneous_input_kbps:2.77 instantaneous_output_kbps:0.01 instantaneous_input_repl_kbps:0.00 instantaneous_output_repl_kbps:0.00 rejected_connections:0 sync_full:0 sync_partial_ok:0 sync_partial_err:0 expired_keys:0 expired_stale_perc:0.00 expired_time_cap_reached_count:0 expire_cycle_cpu_milliseconds:139 evicted_keys:0 evicted_clients:0 total_eviction_exceeded_time:0 current_eviction_exceeded_time:0 keyspace_hits:9647 keyspace_misses:38 pubsub_channels:0 pubsub_patterns:0 pubsubshard_channels:0 latest_fork_usec:1083 total_forks:74 migrate_cached_sockets:0 slave_expires_tracked_keys:0 active_defrag_hits:0 active_defrag_misses:0 active_defrag_key_hits:0 active_defrag_key_misses:0 total_active_defrag_time:0 current_active_defrag_time:0 tracking_total_keys:0 tracking_total_items:0 tracking_total_prefixes:0 unexpected_error_replies:0 total_error_replies:28 dump_payload_sanitizations:0 total_reads_processed:19404 total_writes_processed:17003 io_threaded_reads_processed:0 io_threaded_writes_processed:0 reply_buffer_shrinks:33 reply_buffer_expands:19

Replication

role:master connected_slaves:0 master_failover_state:no-failover master_replid:91e3de15eb67aefda5df2c438a42b8703a7077ab master_replid2:0000000000000000000000000000000000000000 master_repl_offset:0 second_repl_offset:-1 repl_backlog_active:0 repl_backlog_size:1048576 repl_backlog_first_byte_offset:0 repl_backlog_histlen:0

CPU

used_cpu_sys:4.310093 used_cpu_user:6.284647 used_cpu_sys_children:1.078775 used_cpu_user_children:7.442098 used_cpu_sys_main_thread:4.186710 used_cpu_user_main_thread:6.269220

Modules

Commandstats

cmdstat_get:calls=38,usec=468,usec_per_call=12.32,rejected_calls=0,failed_calls=0 cmdstat_keys:calls=324,usec=482977,usec_per_call=1490.67,rejected_calls=0,failed_calls=0 cmdstat_info:calls=1395,usec=115611,usec_per_call=82.88,rejected_calls=0,failed_calls=0 cmdstat_hgetall:calls=9643,usec=312996,usec_per_call=32.46,rejected_calls=0,failed_calls=0 cmdstat_exists:calls=4,usec=26,usec_per_call=6.50,rejected_calls=0,failed_calls=0 cmdstat_dbsize:calls=1046,usec=6391,usec_per_call=6.11,rejected_calls=0,failed_calls=0 cmdstat_hset:calls=4484,usec=514923,usec_per_call=114.84,rejected_calls=0,failed_calls=0

Errorstats

errorstat_ERR:count=28

Latencystats

latency_percentiles_usec_get:p50=11.007,p99=21.119,p99.9=21.119 latency_percentiles_usec_keys:p50=1171.455,p99=5111.807,p99.9=6848.511 latency_percentiles_usec_info:p50=80.383,p99=129.023,p99.9=280.575 latency_percentiles_usec_hgetall:p50=18.047,p99=77.311,p99.9=112.127 latency_percentiles_usec_exists:p50=6.015,p99=9.023,p99.9=9.023 latency_percentiles_usec_dbsize:p50=6.015,p99=12.031,p99.9=27.007 latency_percentiles_usec_hset:p50=81.407,p99=264.191,p99.9=376.831

Cluster

cluster_enabled:0

Keyspace

db0:keys=9540,expires=0,avg_ttl=0 ses@raspberrypi:~ $

Comment From: Rana-Jhanzaib-SE

I have sent the files to the provided email address

Comment From: sundb

@RainbowMango thanks, already got the file.

Comment From: RainbowMango

What? I guess you want cc @Rana-Jhanzaib-SE

Comment From: sundb

@RainbowMango ohh, sorry.

Comment From: rkohrt

One thing I noticed in the meantime that this does not seem to happen, if i don't start redis with systemd. (Same binary, with systemd the issue is there, without it, not) I did not look further at that so far...

Comment From: Rana-Jhanzaib-SE

@sundb is there any update.

Comment From: sundb

@Rana-Jhanzaib-SE I haven't had time to deal with it yet, please wait for me for a while.

Comment From: Rana-Jhanzaib-SE

@sundb ok

Comment From: sundb

@Rana-Jhanzaib-SE where did you get or how did you build this binary?

Comment From: Rana-Jhanzaib-SE

we install from apt server. sudo apt install redis-server

Comment From: rkohrt

127.0.0.1:6379> bgsave
Background saving started

->

30886:M 10 Jan 2025 05:38:36.040 * Background saving started by pid 30948
30886:M 10 Jan 2025 05:38:36.452 # Background saving terminated by signal 31
127.0.0.1:6379> INFO ALL
# Server
redis_version:7.4.1
redis_git_sha1:00000000
redis_git_dirty:1
redis_build_id:bc5b8f4ef0f455b4
redis_mode:standalone
os:Linux 6.6.62-current-sunxi armv7l
arch_bits:32
monotonic_clock:POSIX clock_gettime
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:12.2.0
process_id:30886
process_supervised:systemd
run_id:5d3231dd83cfd96cadb9b1cb640afe29676b2935
tcp_port:6379
server_time_usec:1736483992463515
uptime_in_seconds:525
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:8430744
executable:/usr/bin/redis-server
config_file:/etc/redis/redis.conf
io_threads_active:0
listener0:name=tcp,bind=127.0.0.1,bind=-::1,port=6379

# Clients
connected_clients:1
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:8
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
pubsub_clients:0
watching_clients:0
clients_in_timeout_table:0
total_watched_keys:0
total_blocking_keys:0
total_blocking_keys_on_nokey:0

# Memory
used_memory:66691120
used_memory_human:63.60M
used_memory_rss:52953088
used_memory_rss_human:50.50M
used_memory_peak:66909600
used_memory_peak_human:63.81M
used_memory_peak_perc:99.67%
used_memory_overhead:2221144
used_memory_startup:769224
used_memory_dataset:64469976
used_memory_dataset_perc:97.80%
allocator_allocated:67540448
allocator_active:68104192
allocator_resident:69619712
allocator_muzzy:0
total_system_memory:513298432
total_system_memory_human:489.52M
used_memory_lua:23552
used_memory_vm_eval:23552
used_memory_lua_human:23.00K
used_memory_scripts_eval:0
number_of_cached_scripts:0
number_of_functions:0
number_of_libraries:0
used_memory_vm_functions:24576
used_memory_vm_total:48128
used_memory_vm_total_human:47.00K
used_memory_functions:120
used_memory_scripts:120
used_memory_scripts_human:120B
maxmemory:128000000
maxmemory_human:122.07M
maxmemory_policy:noeviction
allocator_frag_ratio:1.01
allocator_frag_bytes:483968
allocator_rss_ratio:1.02
allocator_rss_bytes:1515520
rss_overhead_ratio:0.76
rss_overhead_bytes:-16666624
mem_fragmentation_ratio:0.79
mem_fragmentation_bytes:-13715664
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_total_replication_buffers:0
mem_clients_slaves:0
mem_clients_normal:1672
mem_cluster_links:0
mem_aof_buffer:0
mem_allocator:jemalloc-5.3.0
mem_overhead_db_hashtable_rehashing:0
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0

# Persistence
loading:0
async_loading:0
current_cow_peak:0
current_cow_size:0
current_cow_size_age:0
current_fork_perc:0.00
current_save_keys_processed:0
current_save_keys_total:0
rdb_changes_since_last_save:1443264
rdb_bgsave_in_progress:0
rdb_last_save_time:1736483797
rdb_last_bgsave_status:err
rdb_last_bgsave_time_sec:0
rdb_current_bgsave_time_sec:-1
rdb_saves:24
rdb_last_cow_size:929792
rdb_last_load_keys_expired:0
rdb_last_load_keys_loaded:1407
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
aof_rewrites:0
aof_rewrites_consecutive_failures:0
aof_last_write_status:ok
aof_last_cow_size:0
module_fork_in_progress:0
module_fork_last_cow_size:0

# Stats
total_connections_received:4
total_commands_processed:32996
instantaneous_ops_per_sec:0
total_net_input_bytes:67637177
total_net_output_bytes:794733
total_net_repl_input_bytes:0
total_net_repl_output_bytes:0
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.00
instantaneous_input_repl_kbps:0.00
instantaneous_output_repl_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_subkeys:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:65
evicted_keys:0
evicted_clients:0
evicted_scripts:0
total_eviction_exceeded_time:0
current_eviction_exceeded_time:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
pubsubshard_channels:0
latest_fork_usec:8719
total_forks:24
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
total_active_defrag_time:0
current_active_defrag_time:0
tracking_total_keys:0
tracking_total_items:0
tracking_total_prefixes:0
unexpected_error_replies:0
total_error_replies:0
dump_payload_sanitizations:0
total_reads_processed:36036
total_writes_processed:33002
io_threaded_reads_processed:0
io_threaded_writes_processed:0
client_query_buffer_limit_disconnections:0
client_output_buffer_limit_disconnections:0
reply_buffer_shrinks:5
reply_buffer_expands:1
eventloop_cycles:40802
eventloop_duration_sum:30461744
eventloop_duration_cmd_sum:3721476
instantaneous_eventloop_cycles_per_sec:9
instantaneous_eventloop_duration_usec:5161
acl_access_denied_auth:0
acl_access_denied_cmd:0
acl_access_denied_key:0
acl_access_denied_channel:0

# Replication
role:master
connected_slaves:0
master_failover_state:no-failover
master_replid:7f4f45517aab03b9803f923975bc45e8e4eb6c30
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

# CPU
used_cpu_sys:8.598620
used_cpu_user:23.944038
used_cpu_sys_children:2.279343
used_cpu_user_children:7.671088
used_cpu_sys_main_thread:8.488906
used_cpu_user_main_thread:23.943172

# Modules

# Commandstats
cmdstat_rpush:calls=15777,usec=3014911,usec_per_call=191.10,rejected_calls=0,failed_calls=0
cmdstat_bgsave:calls=1,usec=9507,usec_per_call=9507.00,rejected_calls=0,failed_calls=0
cmdstat_hset:calls=17214,usec=636096,usec_per_call=36.95,rejected_calls=0,failed_calls=0
cmdstat_command|docs:calls=3,usec=58724,usec_per_call=19574.67,rejected_calls=0,failed_calls=0
cmdstat_info:calls=1,usec=2238,usec_per_call=2238.00,rejected_calls=0,failed_calls=0

# Errorstats

# Latencystats
latency_percentiles_usec_rpush:p50=78.335,p99=4390.911,p99.9=5701.631
latency_percentiles_usec_bgsave:p50=9568.255,p99=9568.255,p99.9=9568.255
latency_percentiles_usec_hset:p50=32.127,p99=109.055,p99.9=207.871
latency_percentiles_usec_command|docs:p50=19791.871,p99=31326.207,p99.9=31326.207
latency_percentiles_usec_info:p50=2244.607,p99=2244.607,p99.9=2244.607

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=32991,expires=0,avg_ttl=0,subexpiry=0

And this is how it looks when I start the exact same binary without systemd:

127.0.0.1:6379> bgsave
Background saving started
31236:M 10 Jan 2025 05:43:37.017 * Background saving started by pid 31252
31252:C 10 Jan 2025 05:43:37.035 - Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
31252:C 10 Jan 2025 05:43:39.199 - Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
31236:M 10 Jan 2025 05:43:40.408 - DB 0: 33884 keys (0 volatile) in 65536 slots HT.
31236:M 10 Jan 2025 05:43:40.409 . 1 clients connected (0 replicas), 128317368 bytes in use
31252:C 10 Jan 2025 05:43:41.681 - Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
31252:C 10 Jan 2025 05:43:42.899 * DB saved on disk
127.0.0.1:6379> INFO ALL
# Server
redis_version:7.4.1
redis_git_sha1:00000000
redis_git_dirty:1
redis_build_id:bc5b8f4ef0f455b4
redis_mode:standalone
os:Linux 6.6.62-current-sunxi armv7l
arch_bits:32
monotonic_clock:POSIX clock_gettime
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:12.2.0
process_id:31236
process_supervised:no
run_id:880e52d71d8ea45e4001b59d042331ae91a2dd08
tcp_port:6379
server_time_usec:1736484312356482
uptime_in_seconds:145
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:8431064
executable:/home/ralf/dev/redis-stable/redis-server
config_file:/home/ralf/dev/redis-stable/etc-redis2.conf
io_threads_active:0
listener0:name=tcp,bind=127.0.0.1,bind=-::1,port=6379

# Clients
connected_clients:1
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:8
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
pubsub_clients:0
watching_clients:0
clients_in_timeout_table:0
total_watched_keys:0
total_blocking_keys:0
total_blocking_keys_on_nokey:0

# Memory
used_memory:128339736
used_memory_human:122.39M
used_memory_rss:44613632
used_memory_rss_human:42.55M
used_memory_peak:128533400
used_memory_peak_human:122.58M
used_memory_peak_perc:99.85%
used_memory_overhead:2253324
used_memory_startup:769256
used_memory_dataset:126086412
used_memory_dataset_perc:98.84%
allocator_allocated:129136216
allocator_active:129576960
allocator_resident:132038656
allocator_muzzy:0
total_system_memory:513298432
total_system_memory_human:489.52M
used_memory_lua:23552
used_memory_vm_eval:23552
used_memory_lua_human:23.00K
used_memory_scripts_eval:0
number_of_cached_scripts:0
number_of_functions:0
number_of_libraries:0
used_memory_vm_functions:24576
used_memory_vm_total:48128
used_memory_vm_total_human:47.00K
used_memory_functions:120
used_memory_scripts:120
used_memory_scripts_human:120B
maxmemory:128000000
maxmemory_human:122.07M
maxmemory_policy:noeviction
allocator_frag_ratio:1.00
allocator_frag_bytes:360968
allocator_rss_ratio:1.02
allocator_rss_bytes:2461696
rss_overhead_ratio:0.34
rss_overhead_bytes:-87425024
mem_fragmentation_ratio:0.35
mem_fragmentation_bytes:-83703736
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_total_replication_buffers:0
mem_clients_slaves:0
mem_clients_normal:1672
mem_cluster_links:0
mem_aof_buffer:0
mem_allocator:jemalloc-5.3.0
mem_overhead_db_hashtable_rehashing:0
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0

# Persistence
loading:0
async_loading:0
current_cow_peak:0
current_cow_size:0
current_cow_size_age:0
current_fork_perc:0.00
current_save_keys_processed:0
current_save_keys_total:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1736484222
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:5
rdb_current_bgsave_time_sec:-1
rdb_saves:1
rdb_last_cow_size:933888
rdb_last_load_keys_expired:0
rdb_last_load_keys_loaded:33884
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
aof_rewrites:0
aof_rewrites_consecutive_failures:0
aof_last_write_status:ok
aof_last_cow_size:0
module_fork_in_progress:0
module_fork_last_cow_size:0

# Stats
total_connections_received:3
total_commands_processed:3
instantaneous_ops_per_sec:0
total_net_input_bytes:1352
total_net_output_bytes:427264
total_net_repl_input_bytes:0
total_net_repl_output_bytes:0
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.00
instantaneous_input_repl_kbps:0.00
instantaneous_output_repl_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_subkeys:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:18
evicted_keys:0
evicted_clients:0
evicted_scripts:0
total_eviction_exceeded_time:138538
current_eviction_exceeded_time:138538
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
pubsubshard_channels:0
latest_fork_usec:13555
total_forks:1
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
total_active_defrag_time:0
current_active_defrag_time:0
tracking_total_keys:0
tracking_total_items:0
tracking_total_prefixes:0
unexpected_error_replies:0
total_error_replies:1
dump_payload_sanitizations:0
total_reads_processed:7
total_writes_processed:4
io_threaded_reads_processed:0
io_threaded_writes_processed:0
client_query_buffer_limit_disconnections:0
client_output_buffer_limit_disconnections:0
reply_buffer_shrinks:2
reply_buffer_expands:0
eventloop_cycles:1369
eventloop_duration_sum:6389983
eventloop_duration_cmd_sum:46404
instantaneous_eventloop_cycles_per_sec:9
instantaneous_eventloop_duration_usec:4918
acl_access_denied_auth:0
acl_access_denied_cmd:0
acl_access_denied_key:0
acl_access_denied_channel:0

# Replication
role:master
connected_slaves:0
master_failover_state:no-failover
master_replid:8cc0c1ca3b00aaa4c195d61f8211e06a1edb2e00
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

# CPU
used_cpu_sys:1.246385
used_cpu_user:6.482009
used_cpu_sys_children:1.510714
used_cpu_user_children:2.796428
used_cpu_sys_main_thread:1.229709
used_cpu_user_main_thread:6.479157

# Modules

# Commandstats
cmdstat_command|docs:calls=2,usec=30459,usec_per_call=15229.50,rejected_calls=0,failed_calls=0
cmdstat_bgsave:calls=1,usec=15945,usec_per_call=15945.00,rejected_calls=0,failed_calls=0
cmdstat_rpush:calls=0,usec=0,usec_per_call=0.00,rejected_calls=1,failed_calls=0

# Errorstats
errorstat_OOM:count=1

# Latencystats
latency_percentiles_usec_command|docs:p50=8355.839,p99=22151.167,p99.9=22151.167
latency_percentiles_usec_bgsave:p50=15990.783,p99=15990.783,p99.9=15990.783

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=33884,expires=0,avg_ttl=0,subexpiry=0

In this case I built the binary myself, after it did not work with the one from apt - but this did not change anything.

This is running on an orangepizero, i.e. armv7l

@sundb Let me know if you need more :+1:

Comment From: sundb

@Rana-Jhanzaib-SE @rkohrt thanks, your information is very useful, and I need to find some ways to reproduce it.