Explanation of everything you can see in htop/top on Linux (2019)(peteris.rocks)
473 points by theanonymousone 23 hours ago | 59 comments
tl;dr: A deep-dive into every field shown by htop/top on Linux, covering uptime, load averages (exponentially damped moving averages, not simple percentages), PIDs and /proc, process states (R/S/D/Z/T/t), signals, niceness vs. priority, and the distinctions between VIRT/RES/SHR memory metrics. The author also walks through each default process on a fresh Ubuntu 16.04 server (systemd-journald, udevd, lvmetad, snapd, dbus, cron, rsyslog, etc.), explaining what each does and whether it can be safely removed.
HN Discussion:
  • Recommending alternative monitoring tools like btop, nmon, or procs over htop/top
  • Sharing personal htop configuration tips like disabling user threads and enabling tree view
  • Agreeing that resident memory is more reliable than virtual memory as a metric
  • Appreciating the depth of the article and acknowledging gaps in their Linux knowledge
  • ~Questioning whether load averages are meaningful or just silly numbers