| 1 |
spawn_seeker.stp - List which processes spawning others |
| 2 |
|
| 3 |
This script once a minute prints out sorted lists showing which |
| 4 |
processes and executables are spawning the most additional tasks on |
| 5 |
the system. |
| 6 |
|
| 7 |
$ stap ./spawn_seeker.stp |
| 8 |
^C |
| 9 |
Sun Apr 19 22:57:02 2015 EDT |
| 10 |
|
| 11 |
execname( PID) spawned (percent) |
| 12 |
make( 18559) 576 ( 39%) |
| 13 |
make( 21070) 325 ( 22%) |
| 14 |
make( 18959) 176 ( 12%) |
| 15 |
make( 16030) 166 ( 11%) |
| 16 |
make( 20118) 119 ( 8%) |
| 17 |
make( 20476) 59 ( 4%) |
| 18 |
make( 20723) 16 ( 1%) |
| 19 |
gcc( 20749) 3 ( 0%) |
| 20 |
gcc( 20775) 3 ( 0%) |
| 21 |
gcc( 20790) 3 ( 0%) |
| 22 |
gcc( 20758) 2 ( 0%) |
| 23 |
gcc( 20781) 2 ( 0%) |
| 24 |
gcc( 20793) 2 ( 0%) |
| 25 |
make( 12759) 1 ( 0%) |
| 26 |
sh( 20748) 1 ( 0%) |
| 27 |
sh( 20774) 1 ( 0%) |
| 28 |
sh( 20789) 1 ( 0%) |
| 29 |
sh( 20801) 1 ( 0%) |
| 30 |
gcc( 20802) 1 ( 0%) |
| 31 |
gcc( 20803) 1 ( 0%) |
| 32 |
|
| 33 |
execname spawned (percent) |
| 34 |
sh 637 ( 43%) |
| 35 |
gcc 605 ( 41%) |
| 36 |
make 217 ( 14%) |