Version 1

    This template computes computation memory using the vmstat command.  It extracts the following values from vmstat

    - memory pages

    - free pages

    - numperm percentage



    and calculates computation memory as the follows



    100*(memory pages - free pages - (numperm percentage*memory pages/100)/(memory pages)



    It returns the following statistics

    - Memory Pages

    - Free Pages

    - Non-computation Memory %

    - Computational Memory %




    For v6.1 and above, it **should** be readily available in the vmstat output. You can modify the script as follows

    vmstat -v | grep "percentage of memory used for computational pages" | awk '{ print "Statistic:"$1 }'