-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](segment cache) estimate momory consumed by segment #35647
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
Conversation
The memory consumed in segment cache is 0 after https://github.com/apache/doris/pull/35432/files. The pr also tracks memory usage of column readers.
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
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.
clang-tidy made some suggestions
| } | ||
| return OrdinalPageIndexIterator(this, left); | ||
| } | ||
|
|
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.
warning: use '= default' to define a trivial destructor [modernize-use-equals-default]
OrdinalIndexReader::~OrdinalIndexReader() {
^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.
clang-tidy made some suggestions
| return OrdinalPageIndexIterator(this, left); | ||
| } | ||
|
|
||
| OrdinalIndexReader::~OrdinalIndexReader() { |
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.
warning: use '= default' to define a trivial destructor [modernize-use-equals-default]
OrdinalIndexReader::~OrdinalIndexReader() {
^|
run buildall |
|
run buildall |
|
TeamCity be ut coverage result: |
|
run buildall |
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.
clang-tidy made some suggestions
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 41238 ms |
TPC-DS: Total hot run time: 172408 ms |
ClickBench: Total hot run time: 30.81 s |
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
run performance |
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 41139 ms |
TPC-DS: Total hot run time: 172316 ms |
ClickBench: Total hot run time: 30.75 s |
|
LGTM |
|
|
||
| namespace doris { | ||
|
|
||
| static bvar::Adder<size_t> g_total_rowset_num("doris_total_rowset_num"); |
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.
|
|
||
| namespace doris::segment_v2 { | ||
| bvar::Adder<size_t> g_total_segment_num("doris_total_segment_num"); | ||
| static bvar::Adder<size_t> g_total_segment_num("doris_total_segment_num"); |
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.
BE metrics have a counter all_segments_num, value is it same as bvar::doris_total_segment_num?
xinyiZzz
left a comment
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
|
run buildall |
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 40730 ms |
TPC-DS: Total hot run time: 169670 ms |
ClickBench: Total hot run time: 30.41 s |
The memory consumed in segment cache is 0 after https://github.com/apache/doris/pull/35432/files. The pr also tracks memory usage of column readers.
The memory consumed in segment cache is 0 after https://github.com/apache/doris/pull/35432/files. The pr also tracks memory usage of column readers.
…5751) The memory consumed in segment cache is 0 after https://github.com/apache/doris/pull/35432/files. The pr also tracks memory usage of column readers.
The memory consumed in segment cache is 0 after https://github.com/apache/doris/pull/35432/files. The pr also tracks memory usage of column readers.

The memory consumed in segment cache is 0 after
https://github.com/apache/doris/pull/35432/files.
The pr also tracks memory usage of column readers.
Proposed changes
Issue Number: close #xxx