Skip to content

Instantly share code, notes, and snippets.

@weshouman
Created April 2, 2020 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weshouman/65ec83c50b16c11883c676b5b058c351 to your computer and use it in GitHub Desktop.
Save weshouman/65ec83c50b16c11883c676b5b058c351 to your computer and use it in GitHub Desktop.
memory hints

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 to 0, the guide is here, notice that sudo should wrap the whole redirection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment