top Live process monitor
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
Concepts
| Field | Time spent on |
|---|---|
us / ni |
user code / niced user code |
sy |
kernel code |
id |
idle |
wa |
waiting for disk I/O |
hi / si |
hardware / software interrupts |
st |
stolen by the hypervisor |
| Code | Meaning |
|---|---|
R |
running or runnable |
S |
sleeping, interruptible |
D |
uninterruptible sleep (usually I/O) |
I |
idle kernel thread |
T / t |
stopped by job control / by a debugger |
Z |
zombie, waiting for its parent |
Sorting
Filtering and view
Summary area
Signals and priority
Navigation and control
Command line
top -b -n 1top -d <secs>
top -p <pid,pid>
top -u <user>
top -Htop -ctop -o <FIELD>
top -Otop -w <cols>
top -E <k|m|g|t|p|e>
top -e <k|m|g|t|p>
top -itop -stop -1top -SRecipes
top -b -d 5 -n 120 -p <pid> > top.log# 10 minutes at 5s steps, one block per sample
top -b -n 1 -o %MEM -w 200 | head -n 17# 5 summary lines, a blank line and the header, then 10 rows
top -H -p <pid># then P for CPU; c shows the command line
top# 1 shows per-CPU load, wa shows I/O wait# M then P compare memory and CPU; V shows who forked what



