linux release memory usage code example
Example 1: linux memory usage
// linux command for reporting used memory percentage
$ free | grep Mem | awk '{print $3/$2 * 100.0}'
23.8171
Example 2: how to clear memory in ubuntu 18.04
# Clear PageCache, dentries and inodes.
sync; echo 3 > /proc/sys/vm/drop_caches
Example 3: linux how to free memory
echo 2 > /proc/sys/vm/drop_caches