linux see free memory code example
Example 1: linux how to free memory
echo 2 > /proc/sys/vm/drop_caches
Example 2: free memory linux command
# sync; echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches
# sync; echo 1 > /proc/sys/vm/drop_caches