Skip to content

*: Fix incorrect mapped allocation per thread metric#18126

Merged
ti-chi-bot[bot] merged 2 commits intotikv:masterfrom
Connor1996:fix-arena
Jan 18, 2025
Merged

*: Fix incorrect mapped allocation per thread metric#18126
ti-chi-bot[bot] merged 2 commits intotikv:masterfrom
Connor1996:fix-arena

Conversation

@Connor1996
Copy link
Member

What is changed and how it works?

Issue Number: Close #18125

What's Changed:

Fix incorrect mapped allocation per thread metric

Not all thread builders are hooked by `thread_allocate_exclusive_arena`, so some threads are using shared arena, causing incorrect per thread allocation. 

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

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

Release note

Fix incorrect mapped allocation per thread metric

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
@ti-chi-bot ti-chi-bot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/needs-triage-completed dco-signoff: yes Indicates the PR's author has signed the dco. labels Jan 15, 2025
@Connor1996 Connor1996 requested review from glorv and hbisheng January 15, 2025 06:56
@ti-chi-bot ti-chi-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 15, 2025
Copy link
Member

@hbisheng hbisheng left a comment

Choose a reason for hiding this comment

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

Would be great if we can test this by running BR in a test environment and checking the metrics.

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jan 15, 2025
@ti-chi-bot ti-chi-bot bot added lgtm approved and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jan 15, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 15, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-01-15 07:24:02.102222569 +0000 UTC m=+103313.557268718: ☑️ agreed by hbisheng.
  • 2025-01-15 07:25:31.284521259 +0000 UTC m=+103402.739567408: ☑️ agreed by glorv.

Copy link
Member

@v01dstar v01dstar 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
Copy link
Contributor

ti-chi-bot bot commented Jan 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: glorv, hbisheng, v01dstar

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@v01dstar
Copy link
Member

/test

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jan 17, 2025

@v01dstar: The /test command needs one or more targets.
The following commands are available to trigger required jobs:

/test pull-unit-test

The following commands are available to trigger optional jobs:

/debug pull-integration-test

Use /test all to run the following jobs that were automatically triggered:

tikv/tikv/pull_unit_test
Details

In response to this:

/test

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 kubernetes-sigs/prow repository.

@v01dstar
Copy link
Member

/test pull-unit-test

@ti-chi-bot ti-chi-bot bot merged commit 18f4419 into tikv:master Jan 18, 2025
1 check passed
@ti-chi-bot ti-chi-bot bot added this to the Pool milestone Jan 18, 2025
@Connor1996 Connor1996 deleted the fix-arena branch January 20, 2025 09:25
xzhangxian1008 pushed a commit to xzhangxian1008/tikv that referenced this pull request Feb 8, 2025
close tikv#18125

Fix incorrect mapped allocation per thread metric

Not all thread builders are hooked by `thread_allocate_exclusive_arena`, so some threads are using shared arena, causing incorrect per thread allocation.

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
Signed-off-by: xzhangxian1008 <xzhangxian@foxmail.com>
@LykxSassinator LykxSassinator added the needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. label Feb 11, 2025
ti-chi-bot pushed a commit to ti-chi-bot/tikv that referenced this pull request Feb 11, 2025
close tikv#18125

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.5: #18202.
But this PR has conflicts, please resolve them!

@ti-chi-bot ti-chi-bot bot added the needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. label Apr 14, 2025
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.5: #18391.

ti-chi-bot bot pushed a commit that referenced this pull request Apr 16, 2025
close #18125

Fix incorrect mapped allocation per thread metric

Not all thread builders are hooked by `thread_allocate_exclusive_arena`, so some threads are using shared arena, causing incorrect per thread allocation.

Signed-off-by: Connor1996 <zbk602423539@gmail.com>

Co-authored-by: Connor1996 <zbk602423539@gmail.com>
@hhwyt
Copy link
Contributor

hhwyt commented Jun 18, 2025

/cherry-pick release-7.5

@ti-chi-bot
Copy link
Member

@hhwyt: new pull request created to branch release-7.5: #18564.
But this PR has conflicts, please resolve them!

Details

In response to this:

/cherry-pick release-7.5

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 pushed a commit to ti-chi-bot/tikv that referenced this pull request Jun 18, 2025
close tikv#18125

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
hhwyt pushed a commit to hhwyt/tikv that referenced this pull request Jun 19, 2025
close tikv#18125

Fix incorrect mapped allocation per thread metric

Not all thread builders are hooked by `thread_allocate_exclusive_arena`, so some threads are using shared arena, causing incorrect per thread allocation.

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
(cherry picked from commit 18f4419)
hhwyt pushed a commit to ti-chi-bot/tikv that referenced this pull request Jun 19, 2025
close tikv#18125

Fix incorrect mapped allocation per thread metric

Not all thread builders are hooked by `thread_allocate_exclusive_arena`, so some threads are using shared arena, causing incorrect per thread allocation.

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
(cherry picked from commit 18f4419)
hhwyt pushed a commit to ti-chi-bot/tikv that referenced this pull request Jun 19, 2025
close tikv#18125

Fix incorrect mapped allocation per thread metric

Not all thread builders are hooked by `thread_allocate_exclusive_arena`, so some threads are using shared arena, causing incorrect per thread allocation.

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
(cherry picked from commit 18f4419)
Signed-off-by: hhwyt <hhwyt1@gmail.com>
@hhwyt hhwyt added affects-7.5 This bug affects the 7.5.x(LTS) versions. severity/minor labels Jul 2, 2025
ekexium pushed a commit to ekexium/tikv that referenced this pull request Jul 11, 2025
close tikv#18125

Fix incorrect mapped allocation per thread metric

Not all thread builders are hooked by `thread_allocate_exclusive_arena`, so some threads are using shared arena, causing incorrect per thread allocation.

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
(cherry picked from commit 18f4419)
Signed-off-by: hhwyt <hhwyt1@gmail.com>
@hhwyt hhwyt added the affects-8.1 This bug affects the 8.1.x(LTS) versions. label Jul 11, 2025
hhwyt pushed a commit to ti-chi-bot/tikv that referenced this pull request Jul 11, 2025
close tikv#18125

Fix incorrect mapped allocation per thread metric

Not all thread builders are hooked by `thread_allocate_exclusive_arena`, so some threads are using shared arena, causing incorrect per thread allocation.

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
(cherry picked from commit 18f4419)
Signed-off-by: hhwyt <hhwyt1@gmail.com>
ti-chi-bot bot pushed a commit that referenced this pull request Jul 11, 2025
close #18125

Fix incorrect mapped allocation per thread metric

Not all thread builders are hooked by `thread_allocate_exclusive_arena`, so some threads are using shared arena, causing incorrect per thread allocation.

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
Signed-off-by: hhwyt <hhwyt1@gmail.com>

Co-authored-by: Connor <zbk602423539@gmail.com>
@ti-chi-bot ti-chi-bot bot added the needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. label Jul 11, 2025
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.1: #18705.

ti-chi-bot bot pushed a commit that referenced this pull request Jul 16, 2025
close #18125

Fix incorrect mapped allocation per thread metric

Not all thread builders are hooked by `thread_allocate_exclusive_arena`, so some threads are using shared arena, causing incorrect per thread allocation.

Signed-off-by: Connor1996 <zbk602423539@gmail.com>

Co-authored-by: Connor1996 <zbk602423539@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. needs-cherry-pick-release-8.1 Should cherry pick this PR to release-8.1 branch. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. release-note Denotes a PR that will be considered when it comes time to generate release notes. severity/minor size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect mapped allocation per thread metric

7 participants