Skip to content

branch-4.1: [fix](memtable) use CPU metrics delta for CPU pressure detection in adaptive flush controller #62744#62943

Merged
yiguolei merged 1 commit into
branch-4.1from
auto-pick-62744-branch-4.1
May 13, 2026
Merged

branch-4.1: [fix](memtable) use CPU metrics delta for CPU pressure detection in adaptive flush controller #62744#62943
yiguolei merged 1 commit into
branch-4.1from
auto-pick-62744-branch-4.1

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Cherry-picked from #62744

@github-actions github-actions Bot requested a review from yiguolei as a code owner April 29, 2026 08:59
@hello-stephen
Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See 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?

@hello-stephen
Copy link
Copy Markdown
Contributor

run buildall

@yiguolei yiguolei closed this May 1, 2026
@yiguolei yiguolei reopened this May 1, 2026
…daptive flush controller (#62744)

### What problem does this PR solve?

Related PR: #60617

Problem Summary:
`AdaptiveThreadPoolController::is_cpu_busy()` previously used normalized
1-minute load average as a proxy for CPU usage. This could misclassify
IO wait pressure as CPU pressure and make adaptive flush thread
shrinking too aggressive.

This PR changes CPU pressure detection to use deltas of the existing
`doris_be_cpu` metrics from `SystemMetrics`. It aggregates the existing
CPU counters, computes CPU busy ratio from consecutive samples, and
treats `iowait` as idle time for this decision path.
@yiguolei yiguolei force-pushed the auto-pick-62744-branch-4.1 branch from 9fe152c to 0c5b20c Compare May 2, 2026 03:20
@yiguolei
Copy link
Copy Markdown
Contributor

yiguolei commented May 2, 2026

run buildall

@yiguolei yiguolei merged commit e01d7c8 into branch-4.1 May 13, 2026
28 of 31 checks passed
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.

3 participants