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

Let task acquire memory accurately when using spilled memory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 3.0.0
    • None
    • Spark Core
    • None

    Description

      When task can't get required execution memory, it will call spill() of consumers to release more memory. After spilling, it tries again to acquire memory needed which is (required - got). That's not accurate as actually released memory by spilling may not equal to size it try to spill.
      So it may be better to acquire memory in more accurate size :
      1. when released >= needed, acquire needed size. (required - got)
      2. when released < needed, acquire released size.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              SongYadong SongYadong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified