Column Runaways
Source /usr/bin/prstat
Description
The list of processes that are suspected of being a runaway. The test first calculates how much CPU load prstat shows when a single CPU is 100% busy. This calculation is done as follows:

If you have a 12 CPU box, then 1/12 is a 100% load for a single CPU.  So, prstat will show 12.5% if a process is consuming the entire CPU. Here are some other numbers indicating 100% consumption of a CPU.

2 cpus 50.0%
8 cpus 12.5%
12 cpus 8.33%
24 cpus 4.17%

The current logic looks for processes that are consuming >90% of a CPU and have accumulated at least 30 minutes of CPU time. For example, on an 8 cpu box we suspect programs that are 90% of 12.5% or show > 11.25%. Common processes that enter the runaway state are netscape 4.79, netscape 7.0, mozilla 1.2.1, acroread, _progress (bugtraq database), java_vm, jre, and Xsun.

Caveats

ituda02% prstat -c-n 9999,99 1 1 | nawk -f runaway.awk
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
43993 leebon 1177M 30M cpu0 0 0 56:19:16 12% netscape/1
56304 jojo1 31M 24M run 0 0 27:11:17 12% netscape/1