Explanation of everything you can see in htop/top on Linux (2019)(peteris.rocks)
507 points by theanonymousone 48 days ago | 61 comments
tl;dr: A deep dive into what every field in htop/top actually means on Linux, covering uptime, load average (an exponentially damped moving average that includes uninterruptible processes, not just CPU usage), PIDs, process states (R/S/D/Z/T/t), niceness/priority, and the various memory metrics (VIRT/RES/SHR/MEM%). The author also walks through each default process running on a fresh Ubuntu Server 16.04 install, explaining what it does and whether it can be safely removed, using tools like strace, /proc, and ps to demonstrate where the data comes from.
HN Discussion:
  • Recommends alternative monitoring tools like btop, nmon, or procs over htop/top
  • Shares personal htop configuration tips like disabling user threads and enabling tree view
  • Agrees that resident memory is more reliable than virtual memory metrics
  • Expresses appreciation for the article's depth and long-term reference value
  • Shares additional practical usage tips like sorting by memory in top