Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-20950

add a new config to diskWriteBufferSize which is hard coded before

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: Spark Core
    • Labels:
      None

      Description

      This PR Improvement in two:
      1.With spark.shuffle.spill.diskWriteBufferSize configure diskWriteBufferSize of ShuffleExternalSorter.
      when change the size of the diskWriteBufferSize to test forceSorterToSpill
      The average performance of running 10 times is as follows:(their unit is MS).

      diskWriteBufferSize: 1M 512K 256K 128K 64K 32K 16K 8K 4K
      ---------------------------------------------------------------------------------------
      RecordSize = 2.5M 742 722 694 686 667 668 671 669 683
      RecordSize = 1M 294 293 292 287 283 285 281 279 285

      2.Remove outputBufferSizeInBytes and inputBufferSizeInBytes to initialize in mergeSpillsWithFileStream function

        Attachments

          Activity

            People

            • Assignee:
              heary-cao caoxuewen
              Reporter:
              heary-cao caoxuewen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: