Htop or Linux Memory#

Help, Linux ate my RAM: http://webcache.googleusercontent.com/search?q=cache:http://www.linuxatemyram.com/

RAM available = free + buffers + cache

Htop http://htop.sourceforge.net/index.php?page=faq

Colors (F1 in htop):

  • green: processes (=RES in column)

  • blue: buffers

  • orange: cache

Difference between buffers and cache: http://www.linuxhowtos.org/System/Linux%20Memory%20Management.htm

  • Buffers hold file system meta data

  • Cache holds file contents

Get available RAM one-liner:

free -m | awk '/cache:/ {print $4}'

Detailed CPU Time#

Enable:

  • F2

  • Meters > Available meters > CPU average: hit Enter

  • move to the column you want it to be in, hit Enter

  • hit Space to switch to “Text”

https://unix.stackexchange.com/questions/18918/linux-top-command-what-are-us-sy-ni-id-wa-hi-si-and-st-for-cpu-usage

sy: system cpu time (or) % CPU time spent in kernel space
ni: user nice cpu time (or) % CPU time spent on low priority processes
hi: hardware irq (or) % CPU time spent servicing/handling hardware interrupts
si: software irq (or) % CPU time spent servicing/handling software interrupts
wa: io wait cpu time (or) % CPU time spent in wait (on disk)