-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[docdb] Make global LogCache usage be a percentage of total memory #3745
Comments
This could be a nice followup to the recent refactor of TSTabletManager components, including LogCache GC |
In
For a more uniform way of accounting for memory, we should add a % of RAM based flag as well. We can start with something small, like 5%, for now. We have a similar mechanism for rocksdb memstores, with more details in Feel free to reach out to @jmeehan16 or @robertsami for more info & review. |
Summary: Added the global_log_cache_size_limit_percentage flag for log cache. Split the existing TestGlobalMemoryLimit test to TestGlobalMemoryLimitAbsolute (which uses the absolute memory limit) and TestGlboalMemoryLimitPercentage (which uses the new percentage-based memory limit). Removed a flag from tablet_memory_manager (should_count_memory) which was always true according the CHECK statement after it (verified with @jmeehan). Test Plan: ybd --cxx_test consensus_log_cache-test --gtest-filter LogCacheTest.TestGlobalMemoryLimit* Reviewers: rsami, jmeehan Reviewed By: jmeehan Subscribers: jason, jmeehan, ybase, bogdan Differential Revision: https://phabricator.dev.yugabyte.com/D13518
Fixed by #3745 |
Currently, the default max LogCache memory usage is 1GB, as opposed to a % based model, like the rocksdb block caches or memstores. We should add a percentage based mechanic to the LogCache as well, so it is more uniform where our memory goes.
The text was updated successfully, but these errors were encountered: