hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haibo Chen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-8921) SnapshotBasedOverAllocationPolicy incorrectly rounds memory availabe int bytes
Date Fri, 19 Oct 2018 19:06:00 GMT
Haibo Chen created YARN-8921:

             Summary: SnapshotBasedOverAllocationPolicy incorrectly rounds memory availabe
int bytes
                 Key: YARN-8921
                 URL: https://issues.apache.org/jira/browse/YARN-8921
             Project: Hadoop YARN
          Issue Type: Sub-task
    Affects Versions: YARN-1011
            Reporter: Haibo Chen
            Assignee: Haibo Chen

The memory overallocate threshold is a float, so is (overAllocationThresholds.getMemoryThreshold()
containersMonitor.getPmemAllocatedForContainers()). Because Math.round(float) return an int,
this would cap effectively the amount of memory available for overallocation to Integer.MAX_VALUE, [see
the code at here|https://github.com/apache/hadoop/blob/fa864b8744cfdfe613a917ba1bbd859a5b6f70b8/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/scheduler/SnapshotBasedOverAllocationPolicy.java#L45]

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org

View raw message