Skip to content

Instantly share code, notes, and snippets.

@oliverhu
Last active January 6, 2019 01:39
Show Gist options
  • Save oliverhu/8c58f360bd2440791095a05a9df970b5 to your computer and use it in GitHub Desktop.
Save oliverhu/8c58f360bd2440791095a05a9df970b5 to your computer and use it in GitHub Desktop.
memory analysis tool
Name Description
free report free memory with buffere cache and page cache
dmesg check for oom messages from the oom killer
valgrind a performance analysis suite. This costs significant overhead - 20 - 30x slower
swapon add/observe physical swap devices or files.
iostat if swap device is physical disk or slice.
perf investigate cpi
/proc/zoneinfo statistics for memory zones
/proc/buddyinfo statistics for the kernel buddy allocator for pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment