Name
top
Synopsis
top [options] [number]
Full screen, dynamic display of global and per process resource usage by descending PID order.
Options
-
number toplimits the total processes displayed tonumber.-
-a Cumulative event counting mode. Counts are cumulative from top start time.
-wand-kare superceded and ignored while- ais in effect-
-d Delta event counting mode. Counts are deltas relative to a previous sample.
-wand-kare superceded and ignored while-dis in effect.-
-e Absolute event counting mode. Counts are absolute values from process start times.
-wand-kare superceded and ignored while-eis in effect.-
-k Report
kernal_taskmemory map parameters: #MREGS, RPRVT, and RSHRD (and VPRVT with-w). Normally unreported and displayed as - .-
-lsamples Logging mode. Change display mode from periodic full screen updating to a sequential line mode output suitable for output redirection. The number of sequential snapshots is specified as
samples.-
-sinterval Sampling interval. Default one second sample interval is replaced by
interval.-
-u Sort processes by decreasing CPU usage instead of by descending PID order.
-
-w Change the memory map and memory size parameters for all processes from counts to deltas, and adds a VPRVT column.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access