参数介绍
参数 | 参考值 | 说明 |
---|---|---|
activedefrag | yes | 开启自动内存碎片整理总开关 |
active-defrag-ignore-bytes | 100mb | 当碎片达到 100mb 时,开启内存碎片整理 |
active-defrag-threshold-lower | 10 | 当碎片超过 10% 时,开启内存碎片整理 |
active-defrag-threshold-upper | 100% | 内存碎片超过 100%,则尽最大努力整理 |
active-defrag-cycle-min | 25 | 内存自动整理占用资源最小百分比 |
active-defrag-cycle-max | 75 | 内存自动整理占用资源最大百分比 |
参考文档
- activedefrag
- Redis 4.0 自动内存碎片整理(Active Defrag)源码分析