Repository navigation
Remove best fit - #1448
Closed
djwatson wants to merge 2 commits into
Closed
Remove best fit#1448djwatson wants to merge 2 commits into
djwatson wants to merge 2 commits into
Conversation
Contributor
|
Love it. That being said, maybe let's wait until after we cut the release to merge, in case we want to get any last-minute fixes in cleanly? |
Contributor
|
Yeah let’s wait until we cut 5.2. I’m still curious about the effects of this on long running binaries. |
This was referenced Mar 11, 2019
Closed
The max_active_fit check is currently only on the best_fit path, add it to the first_fit path also.
djwatson
force-pushed
the
remove_best_fit
branch
from
April 8, 2019 16:42
1980af8 to
8e4e6d5
Compare
Author
|
kept the max_active_fit check in first_fit path instead of removing. |
interwq
reviewed
Apr 8, 2019
| * In order to reduce fragmentation, avoid reusing and splitting | ||
| * large extents for much smaller sizes. | ||
| */ | ||
| if ((sz_pind2sz(i) >> opt_lg_extent_max_active_fit) > size) { |
Contributor
There was a problem hiding this comment.
The intention was to only apply this to dirty_extents, maybe add a new arg to extents_fit_locked and specify if max_active_fit should be checked?
Author
There was a problem hiding this comment.
Sure, update with restriction to delay_coalesce (which is only set for dirty).
This option saves a few CPU cycles, but potentially adds a lot of fragmentation - so much so that there are workarounds like max_active. Instead, let's just drop it entirely. It only made a difference in one service I tested (.3% cpu regression), while many services saw a memory win (also small, less than 1% mem P99)
djwatson
force-pushed
the
remove_best_fit
branch
from
April 12, 2019 16:18
8e4e6d5 to
febef94
Compare
interwq
approved these changes
Apr 12, 2019
Contributor
|
Should we land this and then #1455 next? |
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 saves a few CPU cycles, but potentially adds a lot of fragmentation - so much so that there are workarounds like max_active. Instead, let's just drop it entirely. It only made a difference in one service I tested (.3% cpu regression), while many services saw a memory win (also small, less than 1% mem P99)