Skip to content

[enhancement](memory) Fix Allocator tracking real memory size#33728

Closed
xinyiZzz wants to merge 4 commits intoapache:masterfrom
xinyiZzz:20240407_fix_tracker0_fix_alloctor_0416
Closed

[enhancement](memory) Fix Allocator tracking real memory size#33728
xinyiZzz wants to merge 4 commits intoapache:masterfrom
xinyiZzz:20240407_fix_tracker0_fix_alloctor_0416

Conversation

@xinyiZzz
Copy link
Contributor

Proposed changes

  1. use jemalloc_usable_size to tracking real memory size in Allocator.

  2. add global PointQueryExecutor memory tracker in ExecEnv, because memory may be shared between PointQueryExecutors of different pointer queries, but memory will not be shared between PointQueryExecutor and Fragment of the same pointer query.

  3. If memory tracker not equal to 0 when Query ends, BE will crash under DEBUG.

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@xinyiZzz
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@xinyiZzz
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@xinyiZzz
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.50% (8909/25098)
Line Coverage: 27.23% (73179/268779)
Region Coverage: 26.35% (37826/143575)
Branch Coverage: 23.13% (19275/83328)
Coverage Report: http://coverage.selectdb-in.cc/coverage/ba970ef31f760506aaa13d0655f55100ac0aefdd_ba970ef31f760506aaa13d0655f55100ac0aefdd/report/index.html

@xinyiZzz xinyiZzz closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants