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

Charge blob cache usage against the global memory limit #10206

Closed
wants to merge 2 commits into from

Conversation

gangliao
Copy link
Contributor

Summary:

To help service owners to manage their memory budget effectively, we have been working towards counting all major memory users inside RocksDB towards a single global memory limit (see e.g. https://github.com/facebook/rocksdb/wiki/Write-Buffer-Manager#cost-memory-used-in-memtable-to-block-cache). The global limit is specified by the capacity of the block-based table's block cache, and is technically implemented by inserting dummy entries ("reservations") into the block cache. The goal of this task is to support charging the memory usage of the new blob cache against this global memory limit when the backing cache of the blob cache and the block cache are different.

Test Plan:

Reviewers:

Subscribers:

Tasks:

This PR is a part of #10156

Tags:

Summary:

To help service owners to manage their memory budget effectively, we have been working towards counting all major memory users inside RocksDB towards a single global memory limit (see e.g. https://github.com/facebook/rocksdb/wiki/Write-Buffer-Manager#cost-memory-used-in-memtable-to-block-cache). The global limit is specified by the capacity of the block-based table's block cache, and is technically implemented by inserting dummy entries ("reservations") into the block cache. The goal of this task is to support charging the memory usage of the new blob cache against this global memory limit when the backing cache of the blob cache and the block cache are different.

Test Plan:

Reviewers:

Subscribers:

Tasks:

This PR is a part of facebook#10156

Tags:
@gangliao gangliao mentioned this pull request Jun 20, 2022
14 tasks
@ajkr ajkr requested a review from hx235 June 21, 2022 06:19
@hx235
Copy link
Contributor

hx235 commented Jun 21, 2022

This is a relatively big API change on CacheReservationManager and I am not 100% clear about the context <-> approach . Will reach out offline for more context on this task. Thanks!

@hx235
Copy link
Contributor

hx235 commented Jul 13, 2022

Should we close this one just to avoid collision with #10321?

@gangliao
Copy link
Contributor Author

@hx235 Make sense. Thanks.

@gangliao gangliao closed this Jul 13, 2022
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