Uploaded image for project: 'RHEL Testing'
  1. RHEL Testing
  2. RHELTEST-2219

vm/hugepage/ltp-hugetlbfs: low free mem provokes test failure

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • rhel-se-kernel

        System Memory:
        - MemTotal: 5327936 kB = ~5.2 GB
        - MemFree: 1208384 kB = ~1.18 GB = 1,180 MB
        - Hugepagesize: 524288 kB = 512 MB

        The calculation in runtest.sh:

        MemFree=$(echo `grep 'MemFree:' /proc/meminfo | awk '{print $2}'` / 1024 - $MEM_LEFT | bc)
        # MemFree = 1208384 / 1024 - 64 = 1180 - 64 = 1,116 MB
        MemAllocOvercommit=`echo $MemFree / 5 | bc`
        # MemAllocOvercommit = 1116 / 5 = 223 MB
      

       

      when MemAllocOvercommit=128MB and Hugepagesize=512MB, the division 128/512=0, causing the test to be invoked with -a 0 and failing

              rhn-support-gsierohu Gonzalo Siero Humet
              rhn-support-gsierohu Gonzalo Siero Humet
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: