Terminating Misbehaving Processes

Let's say you notice the system running more slowly than you think it should; you su to root, fire up top, and look at the processes. Sure enough, you see something like this:

Listing 14.4. Output of top Showing a Possible Runaway Process
 last pid: 67469; load averages: 8.32, 5.49, 2.47 up 53+01:04:22 20:34:42 90 processes: 1 running, 88 sleeping, 1 zombie CPU states: 93.2% user, 0.0% nice, 0.2% system, 0.8% interrupt, 5.8% idle Mem: 153M Active, 23M Inact, 60M Wired, 7252K Cache, 35M Buf, 5112K Free Swap: 500M Total, 44M Used, 456M Free, 8% Inuse PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 19460 frank 2 0 25908K 2816K poll 0 131:15 0.00% 92.43% testprog 67468 root 28 0 2036K 1024K CPU0 0 0:00 ...

Get FreeBSD® Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.