bpo-37257: obmalloc: stop simple arena thrashing#14039
Merged
tim-one merged 4 commits intopython:masterfrom Jun 13, 2019
Merged
bpo-37257: obmalloc: stop simple arena thrashing#14039tim-one merged 4 commits intopython:masterfrom
tim-one merged 4 commits intopython:masterfrom
Conversation
methane
reviewed
Jun 13, 2019
methane
reviewed
Jun 13, 2019
Member
|
LGTM except two nitpicks. |
Co-Authored-By: Inada Naoki <[email protected]>
Co-Authored-By: Inada Naoki <[email protected]>
|
@tim-one: Please replace |
nascheme
pushed a commit
to nascheme/cpython
that referenced
this pull request
Jun 21, 2019
pythonGH-14039: allow (no more than) one wholly empty arena on the usable_arenas list. This prevents thrashing in some easily-provoked simple cases that could end up creating and destroying an arena on each loop iteration in client code. Intuitively, if the only arena on the list becomes empty, it makes scant sense to give it back to the system unless we know we'll never need another free pool again before another arena frees a pool. If the latter obtains, then - yes - this will "waste" an arena.
nascheme
pushed a commit
to nascheme/cpython
that referenced
this pull request
Jun 21, 2019
pythonGH-14039: allow (no more than) one wholly empty arena on the usable_arenas list. This prevents thrashing in some easily-provoked simple cases that could end up creating and destroying an arena on each loop iteration in client code. Intuitively, if the only arena on the list becomes empty, it makes scant sense to give it back to the system unless we know we'll never need another free pool again before another arena frees a pool. If the latter obtains, then - yes - this will "waste" an arena.
lisroach
pushed a commit
to lisroach/cpython
that referenced
this pull request
Sep 10, 2019
pythonGH-14039: allow (no more than) one wholly empty arena on the usable_arenas list. This prevents thrashing in some easily-provoked simple cases that could end up creating and destroying an arena on each loop iteration in client code. Intuitively, if the only arena on the list becomes empty, it makes scant sense to give it back to the system unless we know we'll never need another free pool again before another arena frees a pool. If the latter obtains, then - yes - this will "waste" an arena.
DinoV
pushed a commit
to DinoV/cpython
that referenced
this pull request
Jan 14, 2020
pythonGH-14039: allow (no more than) one wholly empty arena on the usable_arenas list. This prevents thrashing in some easily-provoked simple cases that could end up creating and destroying an arena on each loop iteration in client code. Intuitively, if the only arena on the list becomes empty, it makes scant sense to give it back to the system unless we know we'll never need another free pool again before another arena frees a pool. If the latter obtains, then - yes - this will "waste" an arena.
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.
bpo-37257: obmalloc: stop simple arena thrashing
https://bugs.python.org/issue37257