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

[Enhancement] Adjust calculation method for page cache mem usage metrics #37740

Merged
merged 4 commits into from
Jan 3, 2024

Conversation

zaorangyang
Copy link
Contributor

@zaorangyang zaorangyang commented Dec 25, 2023

Why I'm doing:
The memory usage of the page cache tracked by MemTracker may exceed the maximum available memory of the page cache. This could be problematic for users.
image

What I'm doing:
Make the size tracked by the memory allocator as the size occupied in the page cache. The new strategy results in starrocks_be_storage_page_cache_mem_bytes being slightly larger than starrocks_be_page_cache_capacity, as starrocks_be_page_cache_capacity does not include the metadata of the page cache itself.
image

Fixes #issue

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.2
    • 3.1
    • 3.0
    • 2.5

Signed-off-by: Zaorang Yang <[email protected]>
Signed-off-by: Zaorang Yang <[email protected]>
Signed-off-by: Zaorang Yang <[email protected]>
Copy link

github-actions bot commented Jan 2, 2024

[FE Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

github-actions bot commented Jan 2, 2024

[BE Incremental Coverage Report]

pass : 9 / 9 (100.00%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 src/util/lru_cache.cpp 9 9 100.00% []

@trueeyu trueeyu merged commit 65b0fa9 into StarRocks:main Jan 3, 2024
44 checks passed
Copy link

github-actions bot commented Jan 3, 2024

@Mergifyio backport branch-3.2

@github-actions github-actions bot removed the 3.2 label Jan 3, 2024
Copy link

github-actions bot commented Jan 3, 2024

@Mergifyio backport branch-3.1

@github-actions github-actions bot removed the 3.1 label Jan 3, 2024
Copy link

github-actions bot commented Jan 3, 2024

@Mergifyio backport branch-3.0

Copy link
Contributor

mergify bot commented Jan 3, 2024

backport branch-3.2

✅ Backports have been created

Copy link
Contributor

mergify bot commented Jan 3, 2024

backport branch-3.1

✅ Backports have been created

Copy link

github-actions bot commented Jan 3, 2024

@Mergifyio backport branch-2.5

Copy link
Contributor

mergify bot commented Jan 3, 2024

backport branch-3.0

✅ Backports have been created

Copy link
Contributor

mergify bot commented Jan 3, 2024

backport branch-2.5

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jan 3, 2024
…ics (#37740)

Signed-off-by: Zaorang Yang <[email protected]>
(cherry picked from commit 65b0fa9)
mergify bot pushed a commit that referenced this pull request Jan 3, 2024
…ics (#37740)

Signed-off-by: Zaorang Yang <[email protected]>
(cherry picked from commit 65b0fa9)

# Conflicts:
#	be/src/util/lru_cache.cpp
mergify bot pushed a commit that referenced this pull request Jan 3, 2024
…ics (#37740)

Signed-off-by: Zaorang Yang <[email protected]>
(cherry picked from commit 65b0fa9)
mergify bot pushed a commit that referenced this pull request Jan 3, 2024
…ics (#37740)

Signed-off-by: Zaorang Yang <[email protected]>
(cherry picked from commit 65b0fa9)

# Conflicts:
#	be/src/util/lru_cache.cpp
wanpengfei-git pushed a commit that referenced this pull request Jan 3, 2024
wanpengfei-git pushed a commit that referenced this pull request Jan 3, 2024
zaorangyang added a commit to zaorangyang/starrocks that referenced this pull request Jan 8, 2024
trueeyu pushed a commit that referenced this pull request Jan 8, 2024
wanpengfei-git pushed a commit that referenced this pull request Jan 31, 2024
wanpengfei-git pushed a commit that referenced this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants