-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use encoded_size as memory usage (#1213)
## 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. <img width="1089" alt="image" src="https://github.com/CeresDB/ceresdb/assets/3848910/a9b77fdf-92b7-4fa9-9a35-7cfa15a4dfee"> ## Detailed Changes - Use atomic usize to record written row size. ## Test Plan --------- Co-authored-by: WEI Xikai <ShiKaiWi@users.noreply.github.com>
- Loading branch information
1 parent
bd8c970
commit fab3006
Showing
4 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters