Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-6442

Inaccurate javadoc in NodeManagerHardwareUtils.getContainerMemoryMB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      NodeManagerHardwareUtils.getContainerMemoryMB has the following javadoc:

      "If the OS has a
         * ResourceCalculatorPlugin implemented, the calculation is 0.8 * (RAM - 2 *
         * JVM-memory) i.e. use 80% of the memory after accounting for memory used by
         * the DataNode and the NodeManager. If the number is less than 1GB, log a
         * warning message."
      

      I think the accurate expression is 0.8*(RAM-2*JVM)-systemreserved. I also do not see the 1GB cap in the code.

      Attachments

        Activity

          People

            sahuja Siddharth Ahuja
            miklos.szegedi@cloudera.com Miklos Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: