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
cb976dfb
Commit
cb976dfb
authored
11 years ago
by
Reynold Xin
Browse files
Options
Downloads
Plain Diff
Merge pull request #209 from pwendell/better-docs
Improve docs for shuffle instrumentation
parents
18d6df0e
297c09d4
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/executor/TaskMetrics.scala
+13
-10
13 additions, 10 deletions
...rc/main/scala/org/apache/spark/executor/TaskMetrics.scala
with
13 additions
and
10 deletions
core/src/main/scala/org/apache/spark/executor/TaskMetrics.scala
+
13
−
10
View file @
cb976dfb
...
...
@@ -61,50 +61,53 @@ object TaskMetrics {
class
ShuffleReadMetrics
extends
Serializable
{
/**
*
Time when shuffle finishs
*
Absolute time when this task finished reading shuffle data
*/
var
shuffleFinishTime
:
Long
=
_
/**
*
Total n
umber of blocks fetched in
a
shuffle (remote or local)
*
N
umber of blocks fetched in
this
shuffle
by this task
(remote or local)
*/
var
totalBlocksFetched
:
Int
=
_
/**
* Number of remote blocks fetched in
a
shuffle
* Number of remote blocks fetched in
this
shuffle
by this task
*/
var
remoteBlocksFetched
:
Int
=
_
/**
*
L
ocal blocks fetched in
a
shuffle
*
Number of l
ocal blocks fetched in
this
shuffle
by this task
*/
var
localBlocksFetched
:
Int
=
_
/**
* Total time that is spent blocked waiting for shuffle to fetch data
* Time the task spent waiting for remote shuffle blocks. This only includes the time
* blocking on shuffle input data. For instance if block B is being fetched while the task is
* still not finished processing block A, it is not considered to be blocking on block B.
*/
var
fetchWaitTime
:
Long
=
_
/**
* The total amount of time for all the shuffle fetches. This adds up time from overlapping
* shuffles, so can be longer than task time
* Total time spent fetching remote shuffle blocks. This aggregates the time spent fetching all
* input blocks. Since block fetches are both pipelined and parallelized, this can
* exceed fetchWaitTime and executorRunTime.
*/
var
remoteFetchTime
:
Long
=
_
/**
* Total number of remote bytes read from
a
shuffle
* Total number of remote bytes read from
the
shuffle
by this task
*/
var
remoteBytesRead
:
Long
=
_
}
class
ShuffleWriteMetrics
extends
Serializable
{
/**
* Number of bytes written for
a
shuffle
* Number of bytes written for
the
shuffle
by this task
*/
var
shuffleBytesWritten
:
Long
=
_
/**
* Time spent blocking on writes to disk or buffer cache, in nanoseconds
.
* Time
the task
spent blocking on writes to disk or buffer cache, in nanoseconds
*/
var
shuffleWriteTime
:
Long
=
_
}
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