You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "bobhan1 (via GitHub)" <gi...@apache.org> on 2025/12/30 07:14:51 UTC
[PR] [Opt](cloud) Add segment prefetcher [doris]
bobhan1 opened a new pull request, #59482:
URL: https://github.com/apache/doris/pull/59482
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### 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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "Thearas (via GitHub)" <gi...@apache.org>.
Thearas commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3698495466
Thank you for your contribution to Apache Doris.
Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
Please clearly describe your PR:
1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
3. What features were added. Why was this function added?
4. Which code was refactored and why was this part of the code refactored?
5. Which functions were optimized and what is the difference before and after the optimization?
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3888305181
PR approved by at least one committer and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "bobhan1 (via GitHub)" <gi...@apache.org>.
bobhan1 commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3859105627
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3867520433
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3720986557
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "gavinchou (via GitHub)" <gi...@apache.org>.
gavinchou commented on code in PR #59482:
URL: https://github.com/apache/doris/pull/59482#discussion_r2709456600
##########
be/src/util/concurrency_stats.cpp:
##########
@@ -0,0 +1,131 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#include "util/concurrency_stats.h"
+
+#include <chrono>
+#include <sstream>
+
+#include "common/config.h"
+#include "common/logging.h"
+
+namespace doris {
+ConcurrencyStatsManager::ConcurrencyStatsManager() : _running(false) {
+ // Initialize all counters in the order of read path (top to bottom)
+ vscanner_get_block = new ConcurrencyCounter("vscanner");
Review Comment:
when will these counters be reclaimed?
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3867978944
<details>
<summary>ClickBench: <b>Total hot run time: 29.09 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit dd8d690e37b18b6ef28cbb4710b58472f492bbc5, data reload: false
query1 0.06 0.05 0.04
query2 0.09 0.04 0.04
query3 0.25 0.08 0.08
query4 1.61 0.12 0.11
query5 0.27 0.25 0.25
query6 1.17 0.69 0.67
query7 0.03 0.02 0.02
query8 0.06 0.04 0.04
query9 0.58 0.50 0.50
query10 0.55 0.55 0.52
query11 0.13 0.09 0.10
query12 0.14 0.10 0.11
query13 0.63 0.62 0.61
query14 1.06 1.05 1.05
query15 0.88 0.86 0.87
query16 0.40 0.40 0.40
query17 1.10 1.14 1.16
query18 0.22 0.21 0.21
query19 2.10 1.99 2.04
query20 0.02 0.01 0.01
query21 15.39 0.25 0.14
query22 5.05 0.06 0.06
query23 15.78 0.28 0.11
query24 0.94 1.17 0.90
query25 0.12 0.07 0.13
query26 0.15 0.14 0.14
query27 0.06 0.06 0.06
query28 5.00 1.14 0.96
query29 12.55 3.96 3.16
query30 0.28 0.14 0.12
query31 2.82 0.63 0.40
query32 3.26 0.59 0.49
query33 3.19 3.30 3.30
query34 16.02 5.39 4.80
query35 4.83 4.83 4.78
query36 0.63 0.51 0.49
query37 0.11 0.07 0.07
query38 0.07 0.05 0.04
query39 0.04 0.03 0.03
query40 0.20 0.16 0.15
query41 0.08 0.03 0.03
query42 0.04 0.03 0.03
query43 0.05 0.04 0.03
Total cold run time: 98.01 s
Total hot run time: 29.09 s
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3867891054
<details>
<summary>TPC-H: <b>Total hot run time: 30704 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit dd8d690e37b18b6ef28cbb4710b58472f492bbc5, data reload: false
------ Round 1 ----------------------------------
q1 17635 4435 4277 4277
q2 2023 351 236 236
q3 10167 1329 752 752
q4 10203 790 312 312
q5 7882 2223 1931 1931
q6 243 176 146 146
q7 922 740 617 617
q8 9292 1406 1149 1149
q9 4934 4636 4659 4636
q10 6838 1917 1568 1568
q11 497 306 302 302
q12 412 385 219 219
q13 17802 4076 3240 3240
q14 236 252 216 216
q15 914 814 810 810
q16 683 683 620 620
q17 712 794 543 543
q18 6811 5791 6269 5791
q19 1410 1030 693 693
q20 522 525 444 444
q21 2828 2041 1897 1897
q22 373 334 305 305
Total cold run time: 103339 ms
Total hot run time: 30704 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4685 4615 4672 4615
q2 276 338 279 279
q3 2337 2881 2365 2365
q4 1528 1924 1459 1459
q5 4618 4717 4825 4717
q6 223 178 135 135
q7 1953 1905 1785 1785
q8 2581 2413 2398 2398
q9 7511 7507 7512 7507
q10 2869 3254 2552 2552
q11 552 483 462 462
q12 672 781 716 716
q13 3828 4042 3202 3202
q14 277 288 258 258
q15 815 789 780 780
q16 651 676 648 648
q17 1081 1327 1379 1327
q18 7646 7367 7180 7180
q19 862 823 829 823
q20 1964 2029 1880 1880
q21 4510 4151 4078 4078
q22 571 521 505 505
Total cold run time: 52010 ms
Total hot run time: 49671 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3873180839
### Code review
No issues found. Checked for bugs and CLAUDE.md compliance.
🤖 Generated with [Claude Code](https://claude.ai/code)
<sub>- If this code review was useful, please react with 👍. Otherwise, react with 👎.</sub>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3721553319
# BE UT Coverage Report
Increment line coverage `27.93% (205/734)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/e8cc3ca8381d5b90e5623321c0c64ddbb7c958b2_e8cc3ca8381d5b90e5623321c0c64ddbb7c958b2/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/e8cc3ca8381d5b90e5623321c0c64ddbb7c958b2_e8cc3ca8381d5b90e5623321c0c64ddbb7c958b2/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 53.03% (18997/35820) |
| Line Coverage | 39.07% (175906/450188) |
| Region Coverage | 33.62% (136271/405311) |
| Branch Coverage | 34.58% (58772/169962) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3777539701
# BE Regression && UT Coverage Report
Increment line coverage `27.39% (166/606)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/59482_b9a4ecf5c6a1a614499cd9029265007fbac622e8_merge/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/59482_b9a4ecf5c6a1a614499cd9029265007fbac622e8_merge/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 71.30% (25446/35691) |
| Line Coverage | 53.86% (266253/494306) |
| Region Coverage | 51.47% (220832/429074) |
| Branch Coverage | 52.88% (94821/179322) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3740363619
# FE UT Coverage Report
Increment line coverage `` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/59482_ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad/fe_increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/59482_ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad/fe_report/index.html)
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3740772319
<details>
<summary>TPC-DS: <b>Total hot run time: 172293 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad, data reload: false
query5 4351 615 426 426
query6 324 224 210 210
query7 4238 456 262 262
query8 336 249 235 235
query9 8743 2685 2639 2639
query10 518 360 330 330
query11 15337 15166 14795 14795
query12 165 114 122 114
query13 1252 476 373 373
query14 6356 2942 2690 2690
query14_1 2591 2555 2557 2555
query15 200 186 167 167
query16 1001 477 439 439
query17 1079 681 575 575
query18 2526 439 343 343
query19 238 225 196 196
query20 123 121 114 114
query21 221 150 129 129
query22 4058 4067 3827 3827
query23 15928 15631 15471 15471
query23_1 15321 15460 15398 15398
query24 7413 1538 1171 1171
query24_1 1177 1161 1178 1161
query25 551 478 424 424
query26 1241 263 158 158
query27 2786 452 295 295
query28 4567 2161 2151 2151
query29 795 520 421 421
query30 308 237 210 210
query31 803 632 568 568
query32 80 63 66 63
query33 526 347 280 280
query34 921 872 521 521
query35 718 750 663 663
query36 886 843 858 843
query37 129 91 78 78
query38 2737 2694 2550 2550
query39 763 740 746 740
query39_1 713 708 711 708
query40 215 127 111 111
query41 65 61 60 60
query42 102 101 99 99
query43 443 464 427 427
query44 1304 727 727 727
query45 186 179 173 173
query46 841 947 594 594
query47 1474 1484 1401 1401
query48 319 317 238 238
query49 604 408 323 323
query50 630 274 194 194
query51 3769 3744 3804 3744
query52 102 107 96 96
query53 289 321 287 287
query54 278 256 232 232
query55 76 73 70 70
query56 273 281 280 280
query57 993 1060 965 965
query58 261 253 238 238
query59 2180 2083 2055 2055
query60 312 303 281 281
query61 160 154 153 153
query62 411 363 311 311
query63 294 266 262 262
query64 4883 1273 991 991
query65 3693 3723 3736 3723
query66 1405 411 298 298
query67 14943 14760 15113 14760
query68 2873 1016 745 745
query69 438 356 301 301
query70 1019 939 929 929
query71 305 297 273 273
query72 5715 3529 3638 3529
query73 597 713 312 312
query74 8734 8752 8621 8621
query75 2799 2823 2482 2482
query76 2441 1046 640 640
query77 335 385 290 290
query78 9910 9893 9244 9244
query79 1028 897 608 608
query80 1454 585 477 477
query81 542 258 229 229
query82 881 139 108 108
query83 365 244 245 244
query84 256 114 105 105
query85 1155 513 446 446
query86 393 332 316 316
query87 2801 2901 2769 2769
query88 3217 2243 2267 2243
query89 378 352 332 332
query90 1880 153 151 151
query91 174 176 139 139
query92 69 65 63 63
query93 984 913 537 537
query94 644 324 290 290
query95 554 364 310 310
query96 586 452 204 204
query97 2371 2416 2287 2287
query98 220 201 197 197
query99 592 580 495 495
Total cold run time: 247061 ms
Total hot run time: 172293 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3740871938
# BE UT Coverage Report
Increment line coverage `27.93% (205/734)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad_ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad_ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 52.96% (18997/35869) |
| Line Coverage | 39.04% (176071/451050) |
| Region Coverage | 33.61% (136318/405614) |
| Branch Coverage | 34.62% (58893/170128) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3868201918
# BE UT Coverage Report
Increment line coverage `17.46% (106/607)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/dd8d690e37b18b6ef28cbb4710b58472f492bbc5_dd8d690e37b18b6ef28cbb4710b58472f492bbc5/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/dd8d690e37b18b6ef28cbb4710b58472f492bbc5_dd8d690e37b18b6ef28cbb4710b58472f492bbc5/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 52.49% (19383/36929) |
| Line Coverage | 36.05% (180397/500365) |
| Region Coverage | 32.41% (139986/431880) |
| Branch Coverage | 33.41% (60567/181273) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3740739104
<details>
<summary>TPC-H: <b>Total hot run time: 31722 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad, data reload: false
------ Round 1 ----------------------------------
q1 17675 4186 4054 4054
q2 2023 357 256 256
q3 10564 1305 720 720
q4 10331 817 310 310
q5 9683 2137 1834 1834
q6 225 173 138 138
q7 944 790 649 649
q8 9277 1400 1131 1131
q9 5140 4547 4654 4547
q10 6868 1830 1401 1401
q11 516 307 271 271
q12 753 745 581 581
q13 17838 3829 3079 3079
q14 287 298 272 272
q15 582 516 505 505
q16 704 704 633 633
q17 679 828 487 487
q18 6783 6388 7247 6388
q19 1153 1058 630 630
q20 407 381 261 261
q21 3259 2695 2536 2536
q22 1106 1129 1039 1039
Total cold run time: 106797 ms
Total hot run time: 31722 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4354 4327 4245 4245
q2 321 418 320 320
q3 2325 2830 2358 2358
q4 1465 1884 1564 1564
q5 4450 4345 4571 4345
q6 207 165 127 127
q7 2000 1926 1816 1816
q8 2567 2337 2412 2337
q9 7224 7246 7169 7169
q10 2511 2729 2249 2249
q11 529 452 428 428
q12 668 702 575 575
q13 3348 3817 3125 3125
q14 264 280 259 259
q15 530 492 487 487
q16 610 675 630 630
q17 1105 1289 1366 1289
q18 7534 7284 7245 7245
q19 856 802 819 802
q20 1908 1944 1795 1795
q21 4531 4334 4193 4193
q22 1065 993 958 958
Total cold run time: 50372 ms
Total hot run time: 48316 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3758510395
# BE UT Coverage Report
Increment line coverage `17.88% (108/604)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/f2efab26178bd89c271613b1c7e917122c13eadd_f2efab26178bd89c271613b1c7e917122c13eadd/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/f2efab26178bd89c271613b1c7e917122c13eadd_f2efab26178bd89c271613b1c7e917122c13eadd/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 52.96% (19020/35916) |
| Line Coverage | 39.01% (176213/451655) |
| Region Coverage | 33.60% (136539/406337) |
| Branch Coverage | 34.63% (59015/170397) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "bobhan1 (via GitHub)" <gi...@apache.org>.
bobhan1 commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3717076835
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3717150888
# Cloud UT Coverage Report
Increment line coverage ` ` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/93885add061699b623b3da13fe49fcc40e4d3b7a_93885add061699b623b3da13fe49fcc40e4d3b7a_cloud/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/93885add061699b623b3da13fe49fcc40e4d3b7a_93885add061699b623b3da13fe49fcc40e4d3b7a_cloud/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 79.53% (1779/2237) |
| Line Coverage | 64.72% (31481/48643) |
| Region Coverage | 65.38% (15655/23943) |
| Branch Coverage | 55.99% (8318/14856) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3776782252
<details>
<summary>TPC-H: <b>Total hot run time: 32270 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit b9a4ecf5c6a1a614499cd9029265007fbac622e8, data reload: false
------ Round 1 ----------------------------------
q1 17610 4173 4056 4056
q2 2042 368 245 245
q3 10136 1268 718 718
q4 10227 954 313 313
q5 7535 2114 1988 1988
q6 193 177 142 142
q7 946 803 707 707
q8 9264 1389 1135 1135
q9 5004 4584 4590 4584
q10 6783 1817 1389 1389
q11 504 292 281 281
q12 713 726 581 581
q13 17790 3832 3098 3098
q14 304 298 273 273
q15 598 502 504 502
q16 710 685 623 623
q17 651 776 547 547
q18 6862 6497 6976 6497
q19 1212 1025 710 710
q20 437 377 259 259
q21 3294 2619 2600 2600
q22 1140 1125 1022 1022
Total cold run time: 103955 ms
Total hot run time: 32270 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4379 4247 4271 4247
q2 338 398 315 315
q3 2295 2821 2514 2514
q4 1509 1931 1408 1408
q5 4515 4297 4293 4293
q6 215 166 137 137
q7 2012 1941 1830 1830
q8 2555 2379 2523 2379
q9 7110 7213 7169 7169
q10 2553 2803 2274 2274
q11 561 486 441 441
q12 700 718 590 590
q13 3775 4187 3198 3198
q14 270 278 259 259
q15 522 488 482 482
q16 624 659 625 625
q17 1101 1226 1353 1226
q18 7476 7415 7151 7151
q19 864 784 794 784
q20 1852 1929 1801 1801
q21 4530 4340 4507 4340
q22 1097 1051 997 997
Total cold run time: 50853 ms
Total hot run time: 48460 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3777308420
# BE UT Coverage Report
Increment line coverage `17.49% (106/606)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/b9a4ecf5c6a1a614499cd9029265007fbac622e8_b9a4ecf5c6a1a614499cd9029265007fbac622e8/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/b9a4ecf5c6a1a614499cd9029265007fbac622e8_b9a4ecf5c6a1a614499cd9029265007fbac622e8/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 52.33% (19056/36412) |
| Line Coverage | 35.67% (176534/494859) |
| Region Coverage | 32.19% (136664/424568) |
| Branch Coverage | 33.10% (59102/178559) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "gavinchou (via GitHub)" <gi...@apache.org>.
gavinchou commented on code in PR #59482:
URL: https://github.com/apache/doris/pull/59482#discussion_r2709454141
##########
be/src/util/concurrency_stats.h:
##########
@@ -0,0 +1,128 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#pragma once
+
+#include <atomic>
+#include <memory>
+#include <string>
+#include <thread>
+#include <vector>
+
+namespace doris {
+
+// A thread-safe counter for tracking concurrent operations
+// Uses atomic variable for high-performance concurrent access
+class ConcurrencyCounter {
+public:
+ explicit ConcurrencyCounter(std::string name) : _name(std::move(name)), _count(0) {}
+
+ // Increment the counter
+ void increment() { _count.fetch_add(1, std::memory_order_relaxed); }
+
+ // Decrement the counter
+ void decrement() { _count.fetch_sub(1, std::memory_order_relaxed); }
+
+ // Get current value
+ int64_t value() const { return _count.load(std::memory_order_relaxed); }
+
+ const std::string& name() const { return _name; }
+
+ // RAII helper for automatic increment/decrement
+ class Guard {
+ public:
+ explicit Guard(ConcurrencyCounter* counter) : _counter(counter) {
+ if (_counter) {
+ _counter->increment();
+ }
+ }
+
+ ~Guard() {
+ if (_counter) {
+ _counter->decrement();
+ }
+ }
+
+ Guard(const Guard&) = delete;
+ Guard& operator=(const Guard&) = delete;
+
+ private:
+ ConcurrencyCounter* _counter;
+ };
+
+private:
+ std::string _name;
+ std::atomic<int64_t> _count;
+};
+
+// Singleton manager for all concurrency counters
+// All counters are defined here in order
+class ConcurrencyStatsManager {
+public:
+ static ConcurrencyStatsManager& instance();
+
+ // Start the background thread for periodic logging
+ void start();
+
+ // Stop the background thread
+ void stop();
+
+ // Manually dump all counters to log
+ void dump_to_log();
+
+ // Access to individual counters (defined in order of read path from top to bottom)
+ ConcurrencyCounter* vscanner_get_block;
+ ConcurrencyCounter* segment_iterator_next_batch;
+ ConcurrencyCounter* column_reader_read_page;
+ ConcurrencyCounter* page_io_decompress;
+ ConcurrencyCounter* page_io_pre_decode;
+ ConcurrencyCounter* page_io_insert_page_cache;
+ ConcurrencyCounter* cached_remote_reader_read_at;
+ ConcurrencyCounter* cached_remote_reader_get_or_set;
+ ConcurrencyCounter* cached_remote_reader_get_or_set_wait_lock;
+ ConcurrencyCounter* cached_remote_reader_get_or_set_downloader;
+ ConcurrencyCounter* cached_remote_reader_write_back;
+ ConcurrencyCounter* cached_remote_reader_blocking;
+ ConcurrencyCounter* cached_remote_reader_local_read;
+ ConcurrencyCounter* s3_file_reader_read;
+
+private:
+ ConcurrencyStatsManager();
+ ~ConcurrencyStatsManager();
+
+ ConcurrencyStatsManager(const ConcurrencyStatsManager&) = delete;
+ ConcurrencyStatsManager& operator=(const ConcurrencyStatsManager&) = delete;
+
+ void _dump_thread_func();
+
+ // All counters in the order they should be printed
+ std::vector<ConcurrencyCounter*> _counters;
+
+ std::atomic<bool> _running;
+ std::unique_ptr<std::thread> _dump_thread;
Review Comment:
better name the thread with something like "set_thread_name_p()"
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3740208489
# Cloud UT Coverage Report
Increment line coverage ` ` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad_ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad_cloud/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad_ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad_cloud/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 79.57% (1784/2242) |
| Line Coverage | 64.75% (31727/48997) |
| Region Coverage | 65.44% (15783/24120) |
| Branch Coverage | 56.01% (8384/14968) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3758419468
<details>
<summary>ClickBench: <b>Total hot run time: 27.17 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit f2efab26178bd89c271613b1c7e917122c13eadd, data reload: false
query1 0.06 0.04 0.04
query2 0.10 0.05 0.04
query3 0.26 0.09 0.08
query4 1.60 0.12 0.12
query5 0.27 0.26 0.24
query6 1.15 0.67 0.66
query7 0.03 0.03 0.02
query8 0.05 0.04 0.04
query9 0.58 0.51 0.49
query10 0.56 0.55 0.53
query11 0.14 0.10 0.10
query12 0.14 0.11 0.11
query13 0.61 0.59 0.59
query14 0.96 0.95 0.94
query15 0.79 0.77 0.79
query16 0.39 0.40 0.42
query17 1.06 1.04 1.07
query18 0.24 0.21 0.22
query19 1.87 1.89 1.91
query20 0.02 0.02 0.01
query21 15.44 0.25 0.14
query22 5.06 0.05 0.05
query23 15.74 0.29 0.11
query24 1.40 0.76 0.53
query25 0.10 0.08 0.09
query26 0.14 0.14 0.13
query27 0.08 0.06 0.05
query28 5.06 1.06 0.89
query29 12.53 3.95 3.12
query30 0.27 0.14 0.12
query31 2.81 0.65 0.41
query32 3.27 0.56 0.46
query33 3.05 3.12 3.08
query34 16.08 5.12 4.42
query35 4.43 4.45 4.42
query36 0.65 0.51 0.49
query37 0.10 0.06 0.07
query38 0.07 0.05 0.04
query39 0.05 0.03 0.03
query40 0.17 0.13 0.13
query41 0.09 0.03 0.03
query42 0.04 0.03 0.03
query43 0.04 0.04 0.03
Total cold run time: 97.55 s
Total hot run time: 27.17 s
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3758999787
# BE Regression && UT Coverage Report
Increment line coverage `26.61% (161/605)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/59482_f2efab26178bd89c271613b1c7e917122c13eadd_merge/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/59482_f2efab26178bd89c271613b1c7e917122c13eadd_merge/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 72.11% (25376/35193) |
| Line Coverage | 58.85% (265471/451064) |
| Region Coverage | 53.48% (219697/410840) |
| Branch Coverage | 55.21% (94502/171158) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring merged PR #59482:
URL: https://github.com/apache/doris/pull/59482
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "bobhan1 (via GitHub)" <gi...@apache.org>.
bobhan1 commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3757957273
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "bobhan1 (via GitHub)" <gi...@apache.org>.
bobhan1 commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3776417814
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "bobhan1 (via GitHub)" <gi...@apache.org>.
bobhan1 commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3799133619
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3873132051
I reviewed this PR in detail and found two blocking issues before merge:
1) Potential null-pointer write in dryrun prefetch path
- In be/src/io/cache/cached_remote_file_reader.cpp, prefetch_range() submits a dryrun task with Slice dummy_buffer((char*)nullptr, size).
- In read_at_impl(), there are fallback branches that can still do remote read into result.data + ... when block state is not DOWNLOADED (for example after wait/fallback path).
- Because result.data is null in dryrun, this can crash under contention/timeout conditions.
- Suggestion: avoid null Slice for dryrun (use a scratch buffer), or guard all copy/fallback write sites when is_dryrun=true.
2) Prefetch thread pool is always created with high min threads even when feature is off
- SegmentPrefetchThreadPool is always initialized in ExecEnv::_init with min=32/max=2000.
- But prefetch itself is gated by enable_query_segment_file_cache_prefetch / enable_compaction_segment_file_cache_prefetch (both default false).
- This adds avoidable idle threads/memory on every BE, including deployments not using this feature.
- Suggestion: lazy-init the pool only when prefetch is enabled (and cloud mode), or set min threads to 0 and scale on demand.
Given these, I recommend addressing both before merge.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3847077199
PR approved by at least one committer and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3741581203
# BE Regression && UT Coverage Report
Increment line coverage `37.18% (274/737)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/59482_ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad_merge/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/59482_ebb565fbdf359710e9e26ce8ccbe6cecd41c00ad_merge/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 72.21% (25381/35151) |
| Line Coverage | 59.02% (265861/450464) |
| Region Coverage | 53.91% (221108/410122) |
| Branch Coverage | 55.54% (94917/170889) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3774158472
# Code Review: [Opt](cloud) Add segment prefetcher
## Summary
This PR introduces a **segment prefetcher** to optimize cold query performance when reading data from S3 in cloud deployments. The benchmarks are impressive: **~4.3x improvement** (2min 47sec → 39sec) for cold queries fetching 114GB per BE from S3.
The prefetcher uses a **read-ahead windowing strategy** - it maintains awareness of upcoming blocks based on the row bitmap and triggers async prefetch when the read position approaches block boundaries. This is particularly effective for columnar storage where predicate filtering creates non-contiguous row access patterns.
---
## Architecture Assessment
### Design Strengths
1. **Lazy Initialization**: Prefetching is only enabled for cloud mode and specific reader types (query/compaction), minimizing overhead for local deployments.
2. **Weak Reference Pattern** (`cached_remote_file_reader.cpp:627-642`): The prefetch task captures a `weak_ptr` to avoid preventing destruction of the file reader - good design.
3. **Complex Type Handling**: Properly handles Map/Array/Struct columns where nested column access patterns differ from outer offset columns.
---
## Critical Issues
### 1. Race Condition in Block Sequence Access (HIGH)
In `segment_prefetcher.cpp`, `need_prefetch()` modifies `_prefetched_idx` and `_current_block_idx` without synchronization, while these could potentially be accessed from prefetch callbacks during verbose logging:
```cpp
bool SegmentPrefetcher::need_prefetch(uint32_t rowid, std::vector<BlockRange>* ranges) {
// ... modifies _prefetched_idx, _current_block_idx without lock
}
```
**Recommendation**: Either add mutex protection around shared state, or document that `need_prefetch()` must only be called from the scan thread (and ensure prefetch callbacks never access this state).
### 2. Thread Pool Starvation Risk (MEDIUM)
Configuration allows up to **2000 threads** in the prefetch pool. With high concurrency and large `prefetch_block_size`, this could exhaust system resources.
```cpp
DEFINE_Int64(segment_prefetch_thread_pool_thread_num_max, "2000");
```
**Recommendation**: Consider adding a bounded queue with back-pressure, or adaptive prefetch rate based on cache hit ratio.
### 3. Missing Error Propagation (MEDIUM)
Prefetch failures are silently logged at VLOG_DEBUG level but never surfaced:
```cpp
if (!st.ok()) {
VLOG_DEBUG << "Failed to submit prefetch task...";
}
```
**Recommendation**: Add metrics/counters for prefetch failures to enable monitoring.
---
## Code Quality Issues
### 4. Inconsistent Prefetch Window Calculation (`segment_iterator.cpp:573`)
```cpp
int window_size = 1 + (is_query ? config::query_segment_file_cache_prefetch_block_size
: config::compaction_segment_file_cache_prefetch_block_size);
```
The `1 +` is confusing. If `prefetch_block_size=2`, this creates a window of 3. The naming suggests "how many blocks to prefetch ahead" but the +1 makes it "current + N ahead".
**Recommendation**: Either rename the config to `prefetch_window_size` or document the +1 semantics.
### 5. Potential Dangling IOContext (`cached_remote_file_reader.cpp:618-624`)
The copied `dryrun_ctx` nullifies `query_id`, `file_cache_stats`, `file_reader_stats` but copies other fields that might contain dangling references after the parent context is destroyed:
```cpp
IOContext dryrun_ctx;
if (io_ctx != nullptr) {
dryrun_ctx = *io_ctx; // shallow copy
}
dryrun_ctx.query_id = nullptr; // only nullifies some fields
```
**Recommendation**: Review `IOContext` for other pointer/reference members that need clearing.
---
## Testing Gaps
### 6. No Unit Tests
The PR adds ~1150 lines of new code but no regression or unit tests are included. Given the complexity of block sequence building, prefetch window management, and complex type handling, unit tests would be valuable for:
- `SegmentPrefetcher::add_rowids()` with various bitmap patterns
- `need_prefetch()` boundary conditions
- Backward iteration logic
### 7. No Compaction Testing Validation
Compaction prefetch is enabled but the benchmark only covers query workloads. Compaction has different I/O patterns (sequential, full segment reads).
---
## Minor Issues
1. **Magic Numbers**: `segment_file_cache_consume_rowids_batch_size = 8000` lacks rationale documentation.
2. **Verbose Logging Pattern**: `LOG_IF(INFO, config::enable_segment_prefetch_verbose_log)` is repeated ~20 times - consider a macro.
---
## Configuration Review
| Config | Default | Assessment |
|--------|---------|------------|
| `enable_query_segment_file_cache_prefetch` | `false` | Good - conservative default |
| `query_segment_file_cache_prefetch_block_size` | `2` | Reasonable |
| `segment_prefetch_thread_pool_thread_num_max` | `2000` | Potentially too high |
---
## Verdict
**Overall**: Well-structured optimization with significant performance benefits for cloud deployments. The core design is sound.
**Recommendations before merge**:
1. Address or document the thread safety model
2. Add basic unit tests for the prefetcher
3. Add metrics for prefetch success/failure rates
4. Consider lowering `segment_prefetch_thread_pool_thread_num_max` default or adding back-pressure
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3776823553
<details>
<summary>TPC-DS: <b>Total hot run time: 173900 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit b9a4ecf5c6a1a614499cd9029265007fbac622e8, data reload: false
query5 4399 649 472 472
query6 339 231 199 199
query7 4218 454 267 267
query8 334 240 239 239
query9 8722 2882 2888 2882
query10 489 402 318 318
query11 15308 15033 14809 14809
query12 176 111 109 109
query13 1235 458 393 393
query14 5861 2996 2780 2780
query14_1 2640 2640 2659 2640
query15 210 183 167 167
query16 1002 472 448 448
query17 1065 622 543 543
query18 2426 444 334 334
query19 231 223 192 192
query20 121 111 113 111
query21 216 141 123 123
query22 3973 4254 4229 4229
query23 16079 15584 15284 15284
query23_1 15294 15451 15382 15382
query24 7206 1548 1170 1170
query24_1 1156 1205 1161 1161
query25 527 453 409 409
query26 1246 268 156 156
query27 2765 453 277 277
query28 4572 2170 2149 2149
query29 760 522 427 427
query30 313 245 208 208
query31 836 627 562 562
query32 84 78 78 78
query33 531 366 312 312
query34 914 888 510 510
query35 721 775 679 679
query36 881 875 784 784
query37 134 100 82 82
query38 2747 2718 2587 2587
query39 778 763 722 722
query39_1 700 712 707 707
query40 223 135 122 122
query41 72 67 66 66
query42 108 105 107 105
query43 452 445 417 417
query44 1327 752 755 752
query45 189 186 178 178
query46 838 943 574 574
query47 1480 1502 1400 1400
query48 320 326 258 258
query49 622 436 350 350
query50 617 267 202 202
query51 3876 3838 3784 3784
query52 108 109 96 96
query53 295 325 268 268
query54 314 288 271 271
query55 87 81 83 81
query56 325 316 323 316
query57 1057 1021 989 989
query58 274 261 263 261
query59 2099 2184 2122 2122
query60 344 338 327 327
query61 174 161 209 161
query62 376 355 311 311
query63 299 261 268 261
query64 4891 1232 958 958
query65 3826 3813 3753 3753
query66 1459 418 310 310
query67 15603 15552 15361 15361
query68 2594 1083 772 772
query69 437 364 329 329
query70 967 979 957 957
query71 315 315 298 298
query72 5263 3227 3246 3227
query73 603 706 310 310
query74 8779 8814 8574 8574
query75 2715 2802 2456 2456
query76 2286 1056 647 647
query77 356 386 308 308
query78 9732 9974 9111 9111
query79 1070 905 612 612
query80 1296 558 477 477
query81 540 261 227 227
query82 1077 143 107 107
query83 325 248 237 237
query84 247 116 90 90
query85 891 476 423 423
query86 413 296 327 296
query87 2860 2864 2788 2788
query88 3480 2608 2559 2559
query89 389 343 337 337
query90 1979 166 166 166
query91 162 161 135 135
query92 71 71 71 71
query93 947 902 540 540
query94 645 309 300 300
query95 584 393 309 309
query96 643 498 234 234
query97 2303 2374 2326 2326
query98 214 202 195 195
query99 609 576 523 523
Total cold run time: 246606 ms
Total hot run time: 173900 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3794578470
PR approved by at least one committer and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3794578499
PR approved by anyone and no changes requested.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "bobhan1 (via GitHub)" <gi...@apache.org>.
bobhan1 commented on code in PR #59482:
URL: https://github.com/apache/doris/pull/59482#discussion_r2727269793
##########
be/src/util/concurrency_stats.cpp:
##########
@@ -0,0 +1,131 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#include "util/concurrency_stats.h"
+
+#include <chrono>
+#include <sstream>
+
+#include "common/config.h"
+#include "common/logging.h"
+
+namespace doris {
+ConcurrencyStatsManager::ConcurrencyStatsManager() : _running(false) {
+ // Initialize all counters in the order of read path (top to bottom)
+ vscanner_get_block = new ConcurrencyCounter("vscanner");
Review Comment:
in `~ConcurrencyStatsManager()`
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3758402644
<details>
<summary>TPC-DS: <b>Total hot run time: 175281 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit f2efab26178bd89c271613b1c7e917122c13eadd, data reload: false
query5 4429 630 489 489
query6 336 221 225 221
query7 4217 467 255 255
query8 344 250 243 243
query9 8702 2939 2945 2939
query10 466 367 327 327
query11 15286 15124 14937 14937
query12 177 119 113 113
query13 1252 481 385 385
query14 6048 3100 2832 2832
query14_1 2806 2711 2724 2711
query15 204 193 176 176
query16 997 494 470 470
query17 1124 683 579 579
query18 2442 441 336 336
query19 223 233 201 201
query20 124 120 114 114
query21 219 138 118 118
query22 3831 4024 3971 3971
query23 15962 15580 15346 15346
query23_1 15541 15567 15554 15554
query24 7171 1573 1161 1161
query24_1 1172 1191 1209 1191
query25 545 458 420 420
query26 1255 268 149 149
query27 2767 449 281 281
query28 4574 2176 2173 2173
query29 770 544 443 443
query30 312 238 208 208
query31 820 625 571 571
query32 87 77 85 77
query33 543 361 330 330
query34 910 893 536 536
query35 752 780 708 708
query36 877 869 882 869
query37 129 95 84 84
query38 2776 2724 2654 2654
query39 784 751 732 732
query39_1 734 733 707 707
query40 225 142 125 125
query41 112 63 63 63
query42 107 100 103 100
query43 438 472 472 472
query44 1315 739 735 735
query45 185 186 173 173
query46 819 955 598 598
query47 1411 1509 1391 1391
query48 310 312 235 235
query49 600 434 347 347
query50 617 273 204 204
query51 3817 3770 3825 3770
query52 108 115 102 102
query53 291 322 286 286
query54 290 263 267 263
query55 87 81 77 77
query56 303 311 293 293
query57 1032 1010 962 962
query58 267 268 258 258
query59 1978 2194 2140 2140
query60 334 332 317 317
query61 157 151 144 144
query62 396 351 310 310
query63 305 268 273 268
query64 4916 1239 944 944
query65 3803 3798 3827 3798
query66 1455 426 321 321
query67 15518 15605 15387 15387
query68 2436 1078 752 752
query69 457 362 320 320
query70 977 958 963 958
query71 313 308 298 298
query72 5287 3402 3460 3402
query73 585 737 309 309
query74 8697 8734 8555 8555
query75 2767 2826 2500 2500
query76 2267 1076 653 653
query77 364 386 314 314
query78 9783 9956 9250 9250
query79 1105 941 575 575
query80 1309 597 490 490
query81 529 261 231 231
query82 1328 147 110 110
query83 340 253 237 237
query84 247 108 92 92
query85 1027 514 431 431
query86 408 296 323 296
query87 2884 2902 2815 2815
query88 3484 2590 2568 2568
query89 388 344 315 315
query90 1877 180 164 164
query91 171 163 136 136
query92 81 76 72 72
query93 927 906 537 537
query94 610 317 311 311
query95 599 391 323 323
query96 643 510 231 231
query97 2377 2368 2354 2354
query98 207 204 204 204
query99 624 594 529 529
Total cold run time: 246850 ms
Total hot run time: 175281 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "bobhan1 (via GitHub)" <gi...@apache.org>.
bobhan1 commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3757968235
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3758378190
<details>
<summary>TPC-H: <b>Total hot run time: 31522 ms</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit f2efab26178bd89c271613b1c7e917122c13eadd, data reload: false
------ Round 1 ----------------------------------
q1 17634 4221 4060 4060
q2 2094 349 248 248
q3 10107 1317 709 709
q4 10217 873 315 315
q5 7635 2160 1850 1850
q6 229 169 137 137
q7 941 783 666 666
q8 9275 1384 1105 1105
q9 4973 4611 4652 4611
q10 6784 1794 1412 1412
q11 509 300 281 281
q12 724 722 584 584
q13 17787 3809 3087 3087
q14 296 306 281 281
q15 594 519 512 512
q16 702 693 642 642
q17 662 730 599 599
q18 6933 6490 6271 6271
q19 1307 975 627 627
q20 383 355 254 254
q21 3023 2467 2275 2275
q22 1038 1058 996 996
Total cold run time: 103847 ms
Total hot run time: 31522 ms
----- Round 2, with runtime_filter_mode=off -----
q1 4161 4095 4048 4048
q2 323 391 322 322
q3 2119 2645 2228 2228
q4 1309 1750 1322 1322
q5 4193 3992 3997 3992
q6 220 172 133 133
q7 1889 1808 1937 1808
q8 2651 2700 2592 2592
q9 7316 7229 7189 7189
q10 2482 2720 2301 2301
q11 555 478 457 457
q12 734 719 669 669
q13 3696 4103 3603 3603
q14 379 321 280 280
q15 551 508 490 490
q16 624 669 630 630
q17 1162 1356 1561 1356
q18 8175 7723 7866 7723
q19 871 892 834 834
q20 1974 2060 1925 1925
q21 5170 4425 4222 4222
q22 1075 1016 983 983
Total cold run time: 51629 ms
Total hot run time: 49107 ms
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3740117904
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3868414340
# BE Regression && UT Coverage Report
Increment line coverage `26.97% (164/608)` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/59482_dd8d690e37b18b6ef28cbb4710b58472f492bbc5_merge/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/59482_dd8d690e37b18b6ef28cbb4710b58472f492bbc5_merge/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 71.55% (25894/36192) |
| Line Coverage | 54.19% (270467/499138) |
| Region Coverage | 51.44% (224434/436266) |
| Branch Coverage | 53.00% (96458/181981) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3776841977
<details>
<summary>ClickBench: <b>Total hot run time: 26.85 s</b></summary>
```
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit b9a4ecf5c6a1a614499cd9029265007fbac622e8, data reload: false
query1 0.05 0.04 0.04
query2 0.11 0.04 0.04
query3 0.26 0.08 0.08
query4 1.61 0.12 0.11
query5 0.27 0.25 0.25
query6 1.15 0.67 0.66
query7 0.03 0.02 0.02
query8 0.05 0.04 0.04
query9 0.57 0.50 0.51
query10 0.55 0.56 0.54
query11 0.14 0.10 0.09
query12 0.14 0.11 0.10
query13 0.60 0.58 0.58
query14 0.95 0.94 0.93
query15 0.78 0.77 0.78
query16 0.38 0.40 0.40
query17 1.04 1.02 1.01
query18 0.22 0.21 0.22
query19 1.90 1.90 1.88
query20 0.02 0.01 0.01
query21 15.44 0.28 0.14
query22 5.30 0.05 0.05
query23 15.77 0.29 0.10
query24 2.46 0.62 0.30
query25 0.13 0.06 0.06
query26 0.13 0.13 0.13
query27 0.07 0.04 0.04
query28 4.60 1.07 0.87
query29 12.54 3.91 3.17
query30 0.28 0.14 0.11
query31 2.81 0.63 0.39
query32 3.24 0.55 0.45
query33 2.97 3.00 3.00
query34 16.02 5.07 4.47
query35 4.41 4.46 4.48
query36 0.66 0.50 0.49
query37 0.11 0.07 0.07
query38 0.07 0.04 0.04
query39 0.05 0.03 0.03
query40 0.16 0.14 0.13
query41 0.09 0.04 0.03
query42 0.04 0.03 0.03
query43 0.04 0.04 0.03
Total cold run time: 98.21 s
Total hot run time: 26.85 s
```
</details>
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "dataroaring (via GitHub)" <gi...@apache.org>.
dataroaring commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3829000985
run buildall
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [Opt](cloud) Add segment prefetcher [doris]
Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #59482:
URL: https://github.com/apache/doris/pull/59482#issuecomment-3721120358
# Cloud UT Coverage Report
Increment line coverage ` ` :tada:
[Increment coverage report](http://coverage.selectdb-in.cc/coverage/e8cc3ca8381d5b90e5623321c0c64ddbb7c958b2_e8cc3ca8381d5b90e5623321c0c64ddbb7c958b2_cloud/increment_report/index.html)
[Complete coverage report](http://coverage.selectdb-in.cc/coverage/e8cc3ca8381d5b90e5623321c0c64ddbb7c958b2_e8cc3ca8381d5b90e5623321c0c64ddbb7c958b2_cloud/report/index.html)
| Category | Coverage |
|-------------------|--------------------|
| Function Coverage | 79.53% (1779/2237) |
| Line Coverage | 64.74% (31490/48643) |
| Region Coverage | 65.41% (15660/23943) |
| Branch Coverage | 56.00% (8320/14856) |
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org