Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
49fd053d
Commit
49fd053d
authored
7 years ago
by
Justin Loew
Browse files
Options
Downloads
Patches
Plain Diff
Test adding our intermediate block identifier data type
parent
cdcccd7b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala
+7
-0
7 additions, 0 deletions
...n/scala/org/apache/spark/storage/memory/MemoryStore.scala
with
7 additions
and
0 deletions
core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala
+
7
−
0
View file @
49fd053d
...
@@ -23,6 +23,7 @@ import java.util.LinkedHashMap
...
@@ -23,6 +23,7 @@ import java.util.LinkedHashMap
import
scala.collection.mutable
import
scala.collection.mutable
import
scala.collection.mutable.ArrayBuffer
import
scala.collection.mutable.ArrayBuffer
import
scala.collection.mutable.SortedMap
import
scala.reflect.ClassTag
import
scala.reflect.ClassTag
import
com.google.common.io.ByteStreams
import
com.google.common.io.ByteStreams
...
@@ -88,6 +89,12 @@ private[spark] class MemoryStore(
...
@@ -88,6 +89,12 @@ private[spark] class MemoryStore(
// Note: all changes to memory allocations, notably putting blocks, evicting blocks, and
// Note: all changes to memory allocations, notably putting blocks, evicting blocks, and
// acquiring or releasing unroll memory, must be synchronized on `memoryManager`!
// acquiring or releasing unroll memory, must be synchronized on `memoryManager`!
private
class
OurBlockIdAndSizeType
(
blockId
:
BlockId
,
size
:
Long
)
extends
Ordering
[
OurBlockIdAndSizeType
]
{
def
compare
(
other
:
OurBlockIdAndSizeType
)
:
Int
=
this
.
size
compare
other
.
size
}
private
val
entries
=
new
LinkedHashMap
[
BlockId
,
MemoryEntry
[
_
]](
32
,
0.75f
,
true
)
private
val
entries
=
new
LinkedHashMap
[
BlockId
,
MemoryEntry
[
_
]](
32
,
0.75f
,
true
)
// A mapping from taskAttemptId to amount of memory used for unrolling a block (in bytes)
// A mapping from taskAttemptId to amount of memory used for unrolling a block (in bytes)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment