-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Enhancement
There are a lot of known untracked memory at the moment. We plan to track them now!
-
Untracked memory in HashJoin
- Track the memory usage of
entryStorein hashMap executor: add some memory tracker in HashJoin #33918 - Track the memory usage of golang Map in hashMap executor: add some memory tracker in HashJoin #33918
- Iteratror and Row/RowPtrs slice reuse in HashJoin. executor: reuse iterator4Slice and Row/RowPtrs slice in HashJoin. #34878
- Track the memory usage of probe phase in HashJoin. e.g. the memory usage of the matched row. In extreme cases, the memory usage of this part may be the size of the entire hashmap.
Line 115 in e21b435
matched = make([]chunk.Row, 0, len(innerPtrs)) - Optimize the memory usage of the read path in hashRowContainer.
hashRowContainer.GetMatchedRowsAndPtrs --> RowContainer.GetRow --> ListInDisk.GetRow --> diskFormatRow.toMutRowutil: optimize the memory usage of the read path for listInDisk #34778
- Track the memory usage of
-
Untracked memory in Sort
- Track the memory usage of
rowPtrsin SortedRowContainer, which record the position of each row of data in the Chunk util: track the memory usage of rowPtrs in sortedRowContainer #34128 - Optimize the memory usage of GetChunk for listInDisk. #35636
- Track the memory usage of
-
Untracked memory in Spilling process, eg. ListInDisk struct-
Track the memory usage ofoffsetsin ListInDisk, which record the offsets of each row in the file - Use non-extra-memory spilling disk implementation to avoid
offsetsmemory usages. For example, we can also spilloffsetsinto disk. util: support spill offset into disk when spilling #34212
-
-
Untracked memory in IndexJoin/IndexHashJoin
-
Refactor rateLimit for TableReader
-
Track aggregate memory usage more accurate executor: track the memory usage of aggregate more accurate #34732
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.