-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-21923][CORE]Avoid calling reserveUnrollMemoryForThisTask for every record #19135
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
Closed
Closed
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
d20fa43
avoid call reserveUnrollMemoryForThisTask every record
ConeyLiu 77b1580
Merge branch 'master' into memorystore
ConeyLiu 9b0eed9
small fix
ConeyLiu 8c25b2b
small fix
ConeyLiu 4b1f9dd
change reserve more memory to check every batch records
ConeyLiu 8059aff
small fix
ConeyLiu e7ebbd2
make parameter configurable and request memory with factor
ConeyLiu 7f97cc2
address comments
ConeyLiu e1dc7a4
address comments
ConeyLiu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -385,4 +385,17 @@ package object config { | |
| .checkValue(v => v > 0 && v <= Int.MaxValue, | ||
| s"The buffer size must be greater than 0 and less than ${Int.MaxValue}.") | ||
| .createWithDefault(1024 * 1024) | ||
|
|
||
| private[spark] val UNROLL_MEMORY_CHECK_PERIOD = | ||
| ConfigBuilder("spark.storage.unrollMemoryCheckPeriod") | ||
| .doc("The memory check period is used to determine how often we should check whether " | ||
| + "there is a need to request more memory when we try to put the given block in memory.") | ||
|
||
| .longConf | ||
| .createWithDefault(16) | ||
|
|
||
| private[spark] val UNROLL_MEMORY_GROWTH_FACTOR = | ||
| ConfigBuilder("spark.storage.unrollMemoryGrowthFactor") | ||
| .doc("Memory to request as a multiple of the size that used to unroll the block.") | ||
| .doubleConf | ||
| .createWithDefault(1.5) | ||
| } | ||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's call
.internal()here, to make them internal configs, as we don't expect users to tune it.