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

Significance of absolute accurate used_memory? #467

Open
lipzhu opened this issue May 8, 2024 · 0 comments
Open

Significance of absolute accurate used_memory? #467

lipzhu opened this issue May 8, 2024 · 0 comments
Labels
major-decision-pending Major decision pending by TSC team

Comments

@lipzhu
Copy link
Contributor

lipzhu commented May 8, 2024

The problem/use-case that the feature addresses

Currently, when call the zmalloc/zfree related functions, it will call the zmalloc_size and atomic operations to update used_memory, these are all costly operations, is it worth to put such expensive operation in a frequently low API?

Some pull requests are submitted to optimize for such kind of this issue.

#308
#453

Alternatives you've considered

Maybe we can consider to remove the absolute accurate property of used_memory to trade off between the performance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major-decision-pending Major decision pending by TSC team
Projects
None yet
Development

No branches or pull requests

2 participants