-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[fix](memory) Fix Jemalloc Cache Memory Tracker #37464
[fix](memory) Fix Jemalloc Cache Memory Tracker #37464
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 40937 ms
|
TPC-DS: Total hot run time: 174027 ms
|
ClickBench: Total hot run time: 30.07 s
|
20e8053
to
aa7d8fa
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 40002 ms
|
TPC-DS: Total hot run time: 174466 ms
|
ClickBench: Total hot run time: 30.52 s
|
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 40519 ms
|
TPC-DS: Total hot run time: 175224 ms
|
ClickBench: Total hot run time: 31.16 s
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
## 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.
## 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.
## 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.
Proposed changes
Doris uses Jemalloc as default Allocator, Jemalloc Cache consists of two parts: