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

refactor: use encoded_size as memory usage #1213

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

jiacai2050
Copy link
Contributor

@jiacai2050 jiacai2050 commented Sep 14, 2023

Rationale

In one of our cluster, we find the cost of calculate memory usage cost too much CPU, and it's rwlock contention to be blamed.

image

Detailed Changes

  • Use atomic usize to record written row size.

Test Plan

@jiacai2050 jiacai2050 force-pushed the refactor-skiplist-memory branch from 0c9fbfd to 2adaf77 Compare September 14, 2023 08:54
@jiacai2050 jiacai2050 force-pushed the refactor-skiplist-memory branch from 2adaf77 to 179c4bd Compare September 14, 2023 08:54
jiacai2050 and others added 2 commits September 14, 2023 17:34
Co-authored-by: WEI Xikai <ShiKaiWi@users.noreply.github.com>
@jiacai2050 jiacai2050 force-pushed the refactor-skiplist-memory branch from 67afd93 to a42e22e Compare September 14, 2023 09:37
Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi ShiKaiWi merged commit fab3006 into apache:main Sep 14, 2023
@jiacai2050 jiacai2050 deleted the refactor-skiplist-memory branch September 14, 2023 11:48
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.

2 participants