HappenLee opened a new pull request, #66106: URL: https://github.com/apache/doris/pull/66106
### What problem does this PR solve? Problem Summary: Cherry-pick "Schedule scanners up to max concurrency" from opt_perf_4.1 (commit 29034570a69) to branch-4.1. Previously `ScannerContext::_get_margin` computed two margins (per-scan-operator `_min_scan_concurrency` guarantee and scheduler-level `_min_scan_concurrency_of_scan_scheduler` guarantee) and took the max, which under-utilizes scan concurrency. This change schedules scanners directly up to `_max_scan_concurrency` (`_max_scan_concurrency - _num_scheduled_scanners`), keeping the low-memory-mode cap, so scanners are scheduled at full concurrency and scan performance improves. ### Release note None ### Check List (For Author) - Test: No need to test (clean cherry-pick, verified on opt_perf_4.1) - Behavior changed: No - Does this need documentation: No -- 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]
