Skip to content
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

Fix I/O limiter auto-tuner. #6098

Merged
merged 4 commits into from
Oct 11, 2022
Merged

Conversation

JinheLin
Copy link
Contributor

@JinheLin JinheLin commented Oct 11, 2022

What problem does this PR solve?

Issue Number: close #6099

What is changed and how it works?

Try to tune bandwidth quota between read-bandwidth-quota and write-bandwidth-quota if bandwidth quota of bg_read/fg_read (or bg_write/fg_write) is small.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Oct 11, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Lloyd-Pottiger
  • flowbehappy

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added do-not-merge/needs-linked-issue do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 11, 2022
@JinheLin
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Oct 11, 2022

Coverage for changed files

Filename                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
RateLimiter.cpp                      635               286    54.96%          46                13    71.74%         716               290    59.50%         298               131    56.04%
RateLimiter.h                         70                 3    95.71%          27                 3    88.89%         102                23    77.45%          34                 6    82.35%
tests/gtest_rate_limiter.cpp         322                60    81.37%          42                 0   100.00%         739                20    97.29%          56                10    82.14%
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                               1027               349    66.02%         115                16    86.09%        1557               333    78.61%         388               147    62.11%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18392      7446             59.52%    215549  76511        64.50%

full coverage report (for internal network access only)

@JinheLin JinheLin force-pushed the fix-limiter-auto-tune branch from 0c3578d to 67b71cd Compare October 11, 2022 02:38
@JinheLin
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Oct 11, 2022

Coverage for changed files

Filename                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
RateLimiter.cpp                      635               286    54.96%          46                13    71.74%         716               290    59.50%         298               132    55.70%
RateLimiter.h                         70                 3    95.71%          27                 3    88.89%         102                23    77.45%          34                 6    82.35%
tests/gtest_rate_limiter.cpp         322                61    81.06%          42                 0   100.00%         739                20    97.29%          56                10    82.14%
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                               1027               350    65.92%         115                16    86.09%        1557               333    78.61%         388               148    61.86%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18392      7443             59.53%    215549  76458        64.53%

full coverage report (for internal network access only)

@JinheLin JinheLin force-pushed the fix-limiter-auto-tune branch 2 times, most recently from 290d7e7 to ba5a344 Compare October 11, 2022 03:29
@JinheLin JinheLin force-pushed the fix-limiter-auto-tune branch from ba5a344 to b409091 Compare October 11, 2022 03:31
@JinheLin JinheLin marked this pull request as ready for review October 11, 2022 03:34
@ti-chi-bot ti-chi-bot added needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. do-not-merge/needs-triage-completed labels Oct 11, 2022
@JinheLin JinheLin self-assigned this Oct 11, 2022
@JinheLin
Copy link
Contributor Author

/run-all-tests

@JinheLin
Copy link
Contributor Author

/run-unit-test

@JinheLin
Copy link
Contributor Author

/run-unit-test

@sre-bot
Copy link
Collaborator

sre-bot commented Oct 11, 2022

Coverage for changed files

Filename                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
RateLimiter.cpp                      635               286    54.96%          46                13    71.74%         716               290    59.50%         298               132    55.70%
RateLimiter.h                         70                 3    95.71%          27                 3    88.89%         102                23    77.45%          34                 6    82.35%
tests/gtest_rate_limiter.cpp         322                61    81.06%          42                 0   100.00%         739                20    97.29%          56                10    82.14%
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                               1027               350    65.92%         115                16    86.09%        1557               333    78.61%         388               148    61.86%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18392      7441             59.54%    215549  76415        64.55%

full coverage report (for internal network access only)

Copy link
Contributor

@Lloyd-Pottiger Lloyd-Pottiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Oct 11, 2022
@JinheLin
Copy link
Contributor Author

/run-all-tests

@JinheLin
Copy link
Contributor Author

/run-unit-test

@sre-bot
Copy link
Collaborator

sre-bot commented Oct 11, 2022

Coverage for changed files

Filename                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
RateLimiter.cpp                      635               286    54.96%          46                13    71.74%         716               290    59.50%         298               131    56.04%
RateLimiter.h                         70                 3    95.71%          27                 3    88.89%         102                23    77.45%          34                 6    82.35%
tests/gtest_rate_limiter.cpp         322                61    81.06%          42                 0   100.00%         739                20    97.29%          56                10    82.14%
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                               1027               350    65.92%         115                16    86.09%        1557               333    78.61%         388               147    62.11%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18392      7443             59.53%    215549  76469        64.52%

full coverage report (for internal network access only)

Copy link
Contributor

@flowbehappy flowbehappy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Oct 11, 2022
@JinheLin
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@JinheLin: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 0c375ca

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Oct 11, 2022
@ti-chi-bot
Copy link
Member

@JinheLin: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@sre-bot
Copy link
Collaborator

sre-bot commented Oct 11, 2022

Coverage for changed files

Filename                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
RateLimiter.cpp                      616               277    55.03%          46                13    71.74%         716               290    59.50%         298               132    55.70%
RateLimiter.h                         70                 3    95.71%          27                 3    88.89%         102                23    77.45%          34                 6    82.35%
tests/gtest_rate_limiter.cpp         322                61    81.06%          42                 0   100.00%         739                20    97.29%          56                10    82.14%
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                               1008               341    66.17%         115                16    86.09%        1557               333    78.61%         388               148    61.86%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18356      7408             59.64%    215283  76257        64.58%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 37ed64f into pingcap:master Oct 11, 2022
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #6107.

ti-chi-bot pushed a commit to ti-chi-bot/tiflash that referenced this pull request Oct 11, 2022
ti-chi-bot added a commit that referenced this pull request Oct 11, 2022
@JinheLin JinheLin deleted the fix-limiter-auto-tune branch October 20, 2022 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IOLimitTuner may not work well in a special case
5 participants