xintongsong commented on a change in pull request #9693: [FLINK-13984] Separate 
on-heap and off-heap managed memory pools
URL: https://github.com/apache/flink/pull/9693#discussion_r327909983
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/memory/MemoryManager.java
 ##########
 @@ -564,25 +529,6 @@ public int computeNumberOfPages(double fraction) {
                return (int) (totalNumPages * fraction / numberOfSlots);
        }
 
-       /**
-        * Computes the memory size of the fraction per slot.
-        *
-        * @param fraction The fraction of the memory of the task slot.
-        * @return The number of pages corresponding to the memory fraction.
-        */
-       public long computeMemorySize(double fraction) {
 
 Review comment:
   Can this be used for reserving memory?
   I think for operators that reserve memory from MemoryManager, we need such 
an interface to compute their quota from fraction (just like 
'computeNumberOfPages' for operators that allocate segments). And we need to 
compute the quota separately for different memory types.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to