Uh oh!
There was an error while loading. Please reload this page.
[SPARK-3577] Report Spill size on disk for UnsafeExternalSorter - #17471
[SPARK-3577] Report Spill size on disk for UnsafeExternalSorter#17471sitalkedia wants to merge 3 commits into
Conversation
SparkQA
commented
Mar 29, 2017
Test build #75363 has finished for PR 17471 at commit
|
sitalkedia
commented
Apr 5, 2017
cc - @rxin, @kayousterhout, @squito |
rxin
commented
Apr 5, 2017
cc @cloud-fan / @ueshin / @sameeragarwal can you review this? |
cloud-fan
commented
Apr 5, 2017
SPARK-3577 is about reporting spill time, seems not related to this PR? |
sitalkedia
commented
Apr 5, 2017
@cloud-fan - There is discussion in the JIRA to report the disk spill size as well. I can create a new JIRA if you prefer. |
squito
commented
Apr 5, 2017
this is basically the same as this old pr, right? #15616 the last comment on there is a request for a test, which I think still applies here. I also think a separate jira would be clearer. |
sitalkedia
commented
Apr 5, 2017
I did not see we already have an open PR for this. Sure, I will add test to this PR and also file a separate JIRA. |
sameeragarwal
commented
May 25, 2017
@sitalkedia any updates here? |
sitalkedia
commented
May 25, 2017
@sameeragarwal - Thanks for taking a look. I will update the PR adding test case soon. |
HyukjinKwon
commented
Jun 19, 2017
I was just looking though PRs for my curiosity. Please let me leave a gentle ping @sitalkedia. |
4546d43 to
da1f384CompareSparkQA
commented
Jun 21, 2017
Test build #78348 has started for PR 17471 at commit |
sitalkedia
commented
Jun 21, 2017
Thanks for the ping @HyukjinKwon. Updated the PR with test case. |
shaneknapp
commented
Jun 21, 2017
test this please |
SparkQA
commented
Jun 21, 2017
Test build #78363 has started for PR 17471 at commit |
sitalkedia
commented
Jun 21, 2017
Jenkins retest this please. |
sitalkedia
commented
Jun 21, 2017
@shaneknapp, @sameeragarwal - Not able to access the jenkins build link- https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/78405/testReport, something wrong with the jenkins sever? |
kayousterhout
commented
Jun 21, 2017
I think the power is still out in the CS building at Berkeley because of the earthquake, so I'm guessing Jenkins is down as a result (note that even the vanilla AMP website doesn't work: http://amplab.cs.berkeley.edu/) |
shaneknapp
commented
Jun 21, 2017
via email
it was actually a cut power line due to street construction. apparently
power is back online, and we're waiting for machines and switches to finish
booting back up.
i'm WFH today, so i'm monitoring things remotely. …On Wed, Jun 21, 2017 at 2:52 PM, Kay Ousterhout ***@***.***> wrote:
I think the power is still out in the CS building at Berkeley because of
the earthquake, so I'm guessing Jenkins is down as a result (note that even
the vanilla AMP website doesn't work: http://amplab.cs.berkeley.edu/)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17471 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABiDrCpWyketc1oi9h0i7qKbvgEEVIbnks5sGZCtgaJpZM4MtZcI>
.
|
shaneknapp
commented
Jun 21, 2017
via email
also, see my message to the dev@ list. jenkins is up, but not reachable
via the amplab link. …On Wed, Jun 21, 2017 at 3:23 PM, shane knapp ☠ ***@***.***> wrote:
it was actually a cut power line due to street construction. apparently
power is back online, and we're waiting for machines and switches to finish
booting back up.
i'm WFH today, so i'm monitoring things remotely.
On Wed, Jun 21, 2017 at 2:52 PM, Kay Ousterhout ***@***.***>
wrote:
> I think the power is still out in the CS building at Berkeley because of
> the earthquake, so I'm guessing Jenkins is down as a result (note that even
> the vanilla AMP website doesn't work: http://amplab.cs.berkeley.edu/)
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#17471 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/ABiDrCpWyketc1oi9h0i7qKbvgEEVIbnks5sGZCtgaJpZM4MtZcI>
> .
>
|
SparkQA
commented
Jun 21, 2017
Test build #78405 has finished for PR 17471 at commit
|
| for (int i = 0; i < n; i++) { | ||
| record[0] = (long) i; | ||
| sorter.insertRecord(record, Platform.LONG_ARRAY_OFFSET, recordSize, 0, false); | ||
| } |
There was a problem hiding this comment.
can you add some comments to explain the math here? I don't quite understand why it should be >= 2...
There was a problem hiding this comment.
Added a comment to make it clear.
cloud-fan
commented
Jun 26, 2017
LGTM, shall we fix it for other sorters? e.g. |
| inMemSorter.free(); | ||
| inMemSorter = null; | ||
| taskContext.taskMetrics().incMemoryBytesSpilled(released); | ||
| taskContext.taskMetrics().incDiskBytesSpilled(writeMetrics.bytesWritten()); |
There was a problem hiding this comment.
Why do we create a new writeMetrics here, instead of report this.writeMetrics.bytesWritten?
There was a problem hiding this comment.
We're spilling, so bytes written should be counted towards spill rather than write.
Approach similar to - https://github.com/sitalkedia/spark/blob/master/core/src/main/java/org/apache/spark/shuffle/sort/ShuffleExternalSorter.java#L138
sitalkedia
commented
Jun 28, 2017
Actually other sorters are using UnsafeExternalSorter internally(https://github.com/sitalkedia/spark/blob/master/sql/catalyst/src/main/java/org/apache/spark/sql/execution/UnsafeExternalRowSorter.java#L67), so this change should fix others as well. |
SparkQA
commented
Jun 28, 2017
Test build #78821 has finished for PR 17471 at commit
|
sitalkedia
commented
Jun 28, 2017
Jenkins retest this please. |
SparkQA
commented
Jun 29, 2017
Test build #78830 has finished for PR 17471 at commit
|
cloud-fan
commented
Jun 29, 2017
retest this please |
SparkQA
commented
Jun 29, 2017
Test build #78851 has finished for PR 17471 at commit
|
cloud-fan
commented
Jun 29, 2017
thanks, merging to master! |
## What changes were proposed in this pull request? Report Spill size on disk for UnsafeExternalSorter ## How was this patch tested? Tested by running a job on cluster and verify the spill size on disk. Author: Sital Kedia <skedia@fb.com> Closesapache#17471 from sitalkedia/fix_disk_spill_size.
What changes were proposed in this pull request?
Report Spill size on disk for UnsafeExternalSorter
How was this patch tested?
Tested by running a job on cluster and verify the spill size on disk.