Hints for working with memory on linux
- Set swappiness to zero guide
- Utilize ps_mem to check for the real memory usage
- Check for the caches by checking
/proc/meminfo
, for GB/MB view use this answer - Drop the caches if desired by using
sudo sh -c "/bin/echo 3 > /proc/sys/vm/drop_caches"
then resetting to0
, the guide is here, notice that sudo should wrap the whole redirection.