Reduce the memory usage for huge transactions
Open
Nobody has claimed this yet.
component/storage
type/enhancement
- Dominant language
- C++
- Stars
- 1k
- Forks
- 423
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 24
Description
Enhancement
During the huge transactions, memory usage of TiFlash rises quickly.
Currently, TiFlash caches all uncommitted transaction data in memory. For example, a transaction with over 100GB updates would like to cause OOM.
- TiDB stores row values in Lock cf Percolator. And since TiFlash does not use the values, we can safely remove them. https://github.com/pingcap/tiflash/pull/4857
- Flush Memtable and Persist Region operations could block the processing of apply logs, which cause more entry cache of raft logs
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.