1. Antenore says:


    This script will check the free memory without taking into account the cached and buffered memories

    For example

    free -m
    total used free shared buffers cached
    Mem: 3894 3719 174 0 121 1965
    -/+ buffers/cache: 1632 2262
    Swap: 8191 0 8191

    This machine has around 2GB of free memory, even if the free column show just 174.


    • Siru says:

      You are right, I would possibly write another script to take cache and buffered RAM into account for calculation.

Leave a Reply

Protected by WP Anti Spam