xinyiZzz opened a new pull request, #46136:
URL: https://github.com/apache/doris/pull/46136
### What problem does this PR solve?
Fix Jemalloc dirty page usage strategy:
1. Process memory and system available memory no longer consider Jemalloc
dirty page memory.
2. Refactor jemallctl related methods to `get_jemallctl_value`,
`set_jemallctl_value` and `action_jemallctl`.
3. Add `je_reset_all_arena_dirty_decay_ms` and
`je_decay_all_arena_dirty_pages`
4. Modify `je_purge_dirty_pages_thread` to `je_reset_dirty_decay_thread`,
disable Jemalloc dirty page when process memory exceeds soft mem limit, and
re-enable it when memory is sufficient. (see the code comments for detailed
strategies)
5. When `Allocator` memory check fails, try to decay or purge Jemalloc dirty
page. (see the code comments for detailed strategies)
Fix some memory management bugs:
1. Fix `label_to_queryid` failure log. (need to synchronize branch-2.1)
2. Fix `is_exceed_soft_mem_limit` and `is_exceed_hard_mem_limit` are skipped
when bytes is equal to 0.
3 Fix memory daemon thread waiting time from 1s to 100ms. (need to
synchronize branch-2.1)
4. Fix memory daemon thread notify at the end of each loop execution. (need
to synchronize branch-2.1)
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]