Comments (1)
- 模拟数据 插入以下结构的大约数据 1万个
exhset us:126902 session:dea155d63828f002484fb2d67a879c81 "" EX 60- 查看每个数据占用内存情况 (大约152)
127.0.0.1:6379> memory usage us:105681
(integer) 152- 但总内存占用 100M
127.0.0.1:6379> info memoryMemory
used_memory:105388744 used_memory_human:100.51M 问题:按道理算 10000 * 152 = 1.449M 那为什么会占用 100M内存
测试了三种模式,都是占用这么多内存,希望得到回复
Memory
used_memory:105388744 used_memory_human:100.51M used_memory_rss:118505472 used_memory_rss_human:113.02M used_memory_peak:105447208 used_memory_peak_human:100.56M used_memory_peak_perc:99.94% used_memory_overhead:1407072 used_memory_startup:929088 used_memory_dataset:103981672 used_memory_dataset_perc:99.54% allocator_allocated:105497072 allocator_active:105697280 allocator_resident:109481984 total_system_memory:16573603840 total_system_memory_human:15.44G used_memory_lua:31744 used_memory_vm_eval:31744 used_memory_lua_human:31.00K used_memory_scripts_eval:0 number_of_cached_scripts:0 number_of_functions:0 number_of_libraries:0 used_memory_vm_functions:32768 used_memory_vm_total:64512 used_memory_vm_total_human:63.00K used_memory_functions:184 used_memory_scripts:184 used_memory_scripts_human:184B maxmemory:0 maxmemory_human:0B maxmemory_policy:noeviction allocator_frag_ratio:1.00 allocator_frag_bytes:200208 allocator_rss_ratio:1.04 allocator_rss_bytes:3784704 rss_overhead_ratio:1.08 rss_overhead_bytes:9023488 mem_fragmentation_ratio:1.12 mem_fragmentation_bytes:13137400 mem_not_counted_for_evict:0 mem_replication_backlog:0 mem_total_replication_buffers:0 mem_clients_slaves:0 mem_clients_normal:1928 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
1、请描述下你的redis版本
2、请测试前flushall redis,然后info memory看下内存初始大小,然后在灌入数据后,再次Info memory对比下
3、memory usage只是在算这个tairhash key相关的数据开销,info memory看到的是整个redis进程的内存开销(包括了redis自身元数据、各种Buffer以及内存碎片开销等)
from tairhash.
Related Issues (20)
- Rewrite big tairhash
- [Bug Report] EXHSCAN command syntax error HOT 6
- [NEW] Add exhmset with expire and exhmset with version apis
- [BUG] how to listener field expired event? HOT 2
- where the redis version 7.0? HOT 2
- [FEATURE] ADD Dockerfile may be is better for experience HOT 1
- [NEW] Add `NVER` to only insert field when version is > current version HOT 5
- Need a performance comparison chart
- Potential performance inconsistency HOT 3
- [BUG] Can not get memory size for MEMORY USAGE HOT 2
- 可以支持ARM吗? HOT 1
- [NEW] Add exhdel with version params HOT 1
- [NEW] Add gte param for EXHSET and EXHDEL
- [CRASH] 在redis6.2.12中偶现崩溃 HOT 4
- [CRASH]CentOS Linux release 7.7.1908 redis6.0.16, bits=64 MODULE LOAD tairhash_module.so crash HOT 14
- [NEW] 能否给hashmap本身的key添加一个version呢 HOT 4
- [NEW] Support for HRANDFIELD HOT 1
- 使用tarhash 频繁给一个key设置带EX 的field。当filed过期,但该key占用的内存大小并没有改变,再次访问已过期的key,造成redis奔溃,重启
- [CRASH]使用tarhash 频繁给一个key设置带EX 的field。当filed过期,但该key占用的内存大小并没有改变,再次访问已过期的key,造成redis奔溃,重启 # HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tairhash.