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

storage: track actual memory usage in TimestampCache #14516

Merged

Conversation

petermattis
Copy link
Collaborator

@petermattis petermattis commented Mar 31, 2017

Replace defaultEvictionSizeThreshold with defaultTimestampCacheSize
which defaults to 64 MB.

Fixes #14508


This change is Reviewable

Replace defaultEvictionSizeThreshold with defaultTimestampCacheSize
which defaults to 64 MB.

Fixes cockroachdb#14508
This avoids a memory allocation in the common case that a request does
not need to be expanded.
@petermattis petermattis requested a review from bdarnell March 31, 2017 16:05
@bdarnell
Copy link
Contributor

:lgtm:


Review status: 0 of 3 files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@petermattis petermattis merged commit 605b000 into cockroachdb:master Mar 31, 2017
@petermattis petermattis deleted the pmattis/timestamp-cache-size branch March 31, 2017 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants