June 2017
Intermediate to advanced
478 pages
13h 14m
English
The versions of top and ps from BusyBox provide very limited information. The examples that follow use the full version from the procps package.
The ps command shows Vss (VSZ) and Rss (RSS) with the options -Aly, or you can use a custom format that includes vsz and rss, as shown here:
# ps -eo pid,tid,class,rtprio,stat,vsz,rss,comm PID TID CLS RTPRIO STAT VSZ RSS COMMAND 1 1 TS - Ss 4496 2652 systemd [...] 205 205 TS - Ss 4076 1296 systemd-journal 228 228 TS - Ss 2524 1396 udevd 581 581 TS - Ss 2880 1508 avahi-daemon 584 584 TS - Ss 2848 1512 dbus-daemon 590 590 TS - Ss 1332 680 acpid 594 594 TS - Ss 4600 1564 wpa_supplicant
Likewise, top shows a summary of the free memory and memory usage per process:
top - 21:17:52 ...
Read now
Unlock full access