Repository navigation
Add arena.i.retain_grow_limit - #1064
Merged
Merged
Conversation
Contributor
Author
|
As discussed offline with @davidtgoldblatt and @djwatson, this solves an immediate issue with 1G hugepages. Long term we'd need to solve this at the extent hook API level (#1009). |
This option controls the max size when grow_retained. This is useful when we have customized extent hooks reserving physical memory (e.g. 1G huge pages). Without this feature, the default increasing sequence could result in fragmented and wasted physical memory.
interwq
commented
Nov 3, 2017
| size_t *new_limit) { | ||
| assert(opt_retain); | ||
|
|
||
| pszind_t new_ind JEMALLOC_CC_SILENCE_INIT(0); |
Contributor
Author
There was a problem hiding this comment.
Previous CI test failures were complaining about this being unused uninitialized.
| assert(opt_retain); | ||
|
|
||
| pszind_t new_ind JEMALLOC_CC_SILENCE_INIT(0); | ||
| if (new_limit != NULL) { |
Contributor
There was a problem hiding this comment.
It seems like this should either be an error, or, if we want a null new-limit to mean "unlimited", we should document that.
Contributor
There was a problem hiding this comment.
Oh wait I'm dumb, there should be a way to get the current limit. nvm.
Contributor
Author
There was a problem hiding this comment.
Yep. NULL new_limit means reading the value.
davidtgoldblatt
approved these changes
Nov 3, 2017
Contributor
Author
|
OSX tests passed previously. Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This option controls the max size when grow_retained. This is useful when we
have customized extent hooks reserving physical memory (e.g. 1G huge pages).
Without this feature, the default increasing sequence could result in fragmented
and wasted physical memory.