Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14936

Introduce MemoryManager#computeMemorySize to calculate managed memory from a fraction

    XMLWordPrintableJSON

Details

    Description

      A MemoryManager#computeMemorySize(double fraction) is needed to calculate managed memory bytes from a fraction.
      It can be helpful for operators to get the memory size it can reserve and for further #reserveMemory. (Similar to #computeNumberOfPages).

      Here are two cases that may need this method in near future:
      1. Python operator memory management
      2. Statebackend memory management

      Attachments

        Issue Links

          Activity

            People

              zhuzh Zhu Zhu
              zhuzh Zhu Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m