scripts Hi, Topics related to linux shell scripting are discussed here Backup cPanel Account SSH Plesk Website Mail and Database Backup Script shell script to backup mysql databases linux user login monitor script shell script to delete /tmp files linux leaving eacclarator folder script to notify high server load | linux script for monitoring server shell script to find linux memory process usage « Previous Page
Antenore says: July 8, 2011 at 1:23 pm Hello, 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. http://linux-mm.org/ Reply Siru says: May 22, 2014 at 12:29 pm You are right, I would possibly write another script to take cache and buffered RAM into account for calculation. Reply Siru says: July 8, 2011 at 2:28 pm Yes, you are right.. You want me to sum up buffer along with RAM as well? Reply Leave a Reply Cancel replyComment * Name Email Website Save my name, email, and website in this browser for the next time I comment. Protected by WP Anti Spam
Siru says: May 22, 2014 at 12:29 pm You are right, I would possibly write another script to take cache and buffered RAM into account for calculation. Reply Siru says: July 8, 2011 at 2:28 pm Yes, you are right.. You want me to sum up buffer along with RAM as well? Reply Leave a Reply Cancel replyComment * Name Email Website Save my name, email, and website in this browser for the next time I comment. Protected by WP Anti Spam
Siru says: July 8, 2011 at 2:28 pm Yes, you are right.. You want me to sum up buffer along with RAM as well? Reply Leave a Reply Cancel replyComment * Name Email Website Save my name, email, and website in this browser for the next time I comment. Protected by WP Anti Spam
Hello,
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.
http://linux-mm.org/
You are right, I would possibly write another script to take cache and buffered RAM into account for calculation.
Yes, you are right.. You want me to sum up buffer along with RAM as well?