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

Improve the accounting of memory used by cached blobs #10583

Closed
wants to merge 25 commits into from

Conversation

ltamasi
Copy link
Contributor

@ltamasi ltamasi commented Aug 26, 2022

Summary:
The patch improves the bookkeeping around the memory usage of
cached blobs in two ways: 1) it uses malloc_usable_size, which accounts
for allocator bin sizes etc., and 2) it also considers the memory usage
of the BlobContents object in addition to the blob itself. Note: some unit
tests had been relying on the cache charge being equal to the size of the
cached blob; these were updated.

Test Plan:
make check

@facebook-github-bot
Copy link
Contributor

@ltamasi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@ltamasi ltamasi linked an issue Aug 26, 2022 that may be closed by this pull request
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.

Support kFullChargeCacheMetadata for BlobDB
3 participants