-
Notifications
You must be signed in to change notification settings - Fork 410
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
Memory usage raise about 4 GB when there are stale snapshot #5084
Comments
And the raise of memory is effect by the number of segments (or the amount of data) being held by the snapshot.
|
The setting |
It's no need to cache the |
But |
It seems the memory increase is caused by |
There is no such problem in the read process of processing requests from TiDB, because each time a segment is read, the corresponding snapshot will be released. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
tiflash/dbms/src/Storages/DeltaMerge/DeltaMergeStore.cpp
Lines 1139 to 1145 in e3a4412
2. What did you expect to see? (Required)
After the snapshot created, the memory usage do no change significantly
3. What did you see instead (Required)
After the snapshot created, the memory usage raise about 4 GB, without any write operations.
After the snapshot released, the memory usage will drop to normal level.
http://172.16.5.81:21510/d/SVbh2xUWk/jayson-tiflash-summary?orgId=1&from=1654597201960&to=1654599606104
4. What is your TiFlash version? (Required)
https://github.com/JaySon-Huang/tiflash/commits/debug_ps base on e3a4412
The text was updated successfully, but these errors were encountered: