Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With libc memory allocator,redis used memory increased suddenly and with high mem_fragmentation_ratio #5776

Open
kuncao opened this issue Jan 14, 2019 · 2 comments

Comments

@kuncao
Copy link

kuncao commented Jan 14, 2019

Hello every experts,
I have the memory used issue about redis,the detail information is as following:
OS:
uname -a
Linux localhost 3.10.62-ltsi-WR6.0.0.36_standard #2 SMP PREEMPT Mon Dec 24 20:17 :11 CST 2018 armv7l GNU/Linux
32 bit
Memory Allocator is libc.
Redis version: 3.0.7
When put keys in hash table,
the redis used memory increase suddenly from 8M to about 30M and with the mem_fragmentation_ratio to 7.35.
keys size from 22 to 285 bytes
values size from 88 to 300 bytes
There are about 2700 records.
The detail memory information
VmRSS/VmHWM mem_fragmentation_ratio
redis redis(memory fragment ratio)
5448/5448 1.85
7024/7024 3.13
7204/8080 2.82
7204/8080 2.42
7204/8080 1.74
7204/8080 1.75
7204/8080 1.76
29664/29664 7.35 (changed suddenly)

Memory

used_memory:4131904
used_memory_human:3.94M
used_memory_rss:30375936
used_memory_peak:25704632
used_memory_peak_human:24.51M
used_memory_lua:26624
mem_fragmentation_ratio:7.35
mem_allocator:libc

I want to confirm,why redis used memory increased suddenly and how to reduce the mem_fragmentation_ratio?
By the way,the topology is one master with four standbys.
Thanks a lot.

@kuncao
Copy link
Author

kuncao commented Jan 14, 2019

Any one can help to give some advice?
Thanks a lot.

@kuncao
Copy link
Author

kuncao commented Jan 14, 2019

@antirez
Please help to give some idea.
Thanks a lot.

@kuncao kuncao changed the title with libc memory allocator,redis used memory increased suddenly and with high mem_fragmentation_ratio With libc memory allocator,redis used memory increased suddenly and with high mem_fragmentation_ratio Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant