forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](memory) Fix Jemalloc Cache Memory Tracker (apache#37464)
## Proposed changes Doris uses Jemalloc as default Allocator, Jemalloc Cache consists of two parts: - Thread Cache, cache a specified number of Pages in Thread Cache. - Dirty Page, memory Page that can be reused in all Arenas. 1. Metadata should not be counted as cache, this will cause memory GC to be delayed, leading to BE OOM. 2. Fix Jemalloc dirty page memory size, previous code used dirty page number * page size (4K on x86), which is much smaller than the actual memory. the fix is the sum of dirty page memory of all size classes of extents.
- Loading branch information
Showing
4 changed files
with
54 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters