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

内存释放问题 #52

Closed
vegetarianz opened this issue Jan 11, 2021 · 4 comments
Closed

内存释放问题 #52

vegetarianz opened this issue Jan 11, 2021 · 4 comments
Labels
configuration Configuration exception

Comments

@vegetarianz
Copy link

部署了一个单实例,使用benchmark工具跑了些性能测试后,进程闲置两天了,内存占用还是维持在3.5G

如图:
image

是否能更快的自动释放内存?

@vegetarianz
Copy link
Author

另外,memory_human 能像 Redis 一样单位自动换算就更好了

@TendisDev
Copy link
Collaborator

把这个参数配成1,增加到配置文件中
rocks.cache_index_and_filter_blocks 1

@vegetarianz
Copy link
Author

感谢~文档中没有看到这个参数,可以解释下用途吗

@TendisDev
Copy link
Collaborator

这是rocksdb的参数,详细看这里
https://github.com/facebook/rocksdb/blob/master/include/rocksdb/table.h#L123

rocksdb很多参数确实没有在文档中描述,我们补充一下

@TendisDev TendisDev added the configuration Configuration exception label Mar 16, 2021
TendisDev added a commit that referenced this issue Jun 4, 2021
[feature]getMinbinlogid maybe too time costing : saveMinBinlogId in rocksdb
### MR描述
<!--- 详细描述MR的细节 -->
把minbinlogid保存到rocksdb里面去


### 修改动机和上下文背景
<!--- 为什么需要此修改, 解决了什么问题 -->
<!---如果解决了相关的#issue, 在此处进行关联(#issue, close #issue) -->
getMinbinlogid性能比较差,把minbinlogid保存到rocksdb里面去  

#70  

#52   

### 此MR如何进行测试 ?
<!--- 请描述测试MR的细节 -->
<!--- 包括测试的环境以及执行的测试用例 -->
<!--- 说明 change 如何影响其他部分的代码 etc. -->
参考 #70 #52

### change 类型
<!---你的代码引入了何种类型的change, 在所有关联的复选框前选择"x" -->
- [ ] Bug fix (修复了issue的非侵入式修改)
- [ ] New feature (增加功能的非侵入式修改)
- [ ] Breaking change (修复或者增加特性, 但是会造成现有行为的非预期行为)

### 清单
<!--- 查看下述选项,并进行"x"勾选 -->
<!--- 如果你对所有都不确定, 请随时咨询我们 -->
- [ ] 遵循项目的Code-Style
- [ ] Change 需要文档的修改
- [ ] 我已经进行相关文档的修改
- [ ] 我的MR已经通过的相关流水线测试
TendisDev added a commit that referenced this issue Jul 30, 2021
RepllogCursorV2::getMinBinlog use minbinlog META instead of cursor
### MR描述
<!--- 详细描述MR的细节 -->
getMinBinlog 和 getMinBinlogId一样,从元数据里面取最小值,不再用游标。

### 修改动机和上下文背景
<!--- 为什么需要此修改, 解决了什么问题 -->
<!---如果解决了相关的#issue, 在此处进行关联(#issue, close #issue) -->
#52

### 此MR如何进行测试 ?
<!--- 请描述测试MR的细节 -->
<!--- 包括测试的环境以及执行的测试用例 -->
<!--- 说明 change 如何影响其他部分的代码 etc. -->
免测

### change 类型
<!---你的代码引入了何种类型的change, 在所有关联的复选框前选择"x" -->
- [ ] Bug fix (修复了issue的非侵入式修改)
- [ ] New feature (增加功能的非侵入式修改)
- [ ] Breaking change (修复或者增加特性, 但是会造成现有行为的非预期行为)

### 清单
<!--- 查看下述选项,并进行"x"勾选 -->
<!--- 如果你对所有都不确定, 请随时咨询我们 -->
- [ ] 遵循项目的Code-Style
- [ ] Change 需要文档的修改
- [ ] 我已经进行相关文档的修改
- [ ] 我的MR已经通过的相关流水线测试
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Configuration exception
Projects
None yet
Development

No branches or pull requests

2 participants