GitHub user sitalkedia opened a pull request:

    https://github.com/apache/spark/pull/13332

    [SPARK-15569] Reduce frequency of updateBytesWritten function in Disk…

    ## What changes were proposed in this pull request?
    
    Profiling a Spark job spilling large amount of intermediate data we found 
that significant portion of time is being spent in 
DiskObjectWriter.updateBytesWritten function. Looking at the code, we see that 
the function is being called too frequently to update the number of bytes 
written to disk. We should reduce the frequency to avoid this.
    
    ## How was this patch tested?
    
    Tested by running the job on cluster and saw 20% CPU gain  by this change.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sitalkedia/spark DiskObjectWriter

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13332.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13332
    
----
commit 454e6b633ad8a1e1e36940e2a98e8fc836084591
Author: Sital Kedia <[email protected]>
Date:   2016-05-26T18:53:22Z

    [SPARK-15569] Reduce frequency of updateBytesWritten function in 
DiskBlockObjectWriter

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to