Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-17092

Preflight shows incorrect RAM values on CentOS 7

    XMLWordPrintable

    Details

      Description

      Preflight reports RAM as having 4194 MB Total, and a lesser amount Available. This appears to be related to a change between CentOS 6's free and CentOS 7's free, as it no longer displays the "-/+ buffers/cache" on its own line, and instead gives buff/cache and available on the same Mem: line, as the var's head/tail combo is definately expecting the "/+ buffers/cache" line.
      mem=`free | head -n 3 | tail -n 1 | awk '

      {print $3,$4}

      '`

      From https://www.centos.org/forums/viewtopic.php?t=54403#p230032
      The "available" field is the replacement for the old "free:+/- buffers" entry. The newer form claims a more sophisticated view of the buffers, cache and page tables (what can geuinely be released and what can't) rather than the old simplistic arithmetic form.

      Example of free on CentOS 6:
      free
      total used free shared buffers cached
      Mem: 132186424 85905932 46280492 1269732 1246032 48452744
      -/+ buffers/cache: 36207156 95979268
      Swap: 8388600 1371044 7017556

      Example of free on CentOS 7:
      free
      total used free shared buff/cache available
      Mem: 24679696 745408 15354024 484056 8580264 23115424
      Swap: 4194296 2342044 1852252

        Attachments

          Activity

            People

            • Assignee:
              wangkx Kevin Wang
              Reporter:
              rwagner42 Russell Wagner
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: