Dealing with RAM

Ram Info

Get info Max RAM and RAM Slots

# dmidecode 2.9 | grep "Maximum Capacity"; dmidecode -t 17 | grep Size

Free up Cache'd RAM

The Linux kernel makes use of unused memory in caches. This leads to fast running of the Linux O/S. But the command below will force it to drop the cached memory, if you really need to. The HTOP utility (if installed) will better show the really used & cached RAM.

Release memory cached by the Linux kernel;

# free && sync && echo 3 > /proc/sys/vm/drop_caches && free

Show Percentage of Used RAM

# free -b|grep ^-|awk '{ print (($3/($3+$4))*100) "% RAM Used" }'
18.5999% RAM Used