1 The following is an example of the sampleproc program.
4 Here we run sampleproc for a few seconds on a workstation,
7 Sampling at 100 hertz... Hit Ctrl-C to end.
21 The first table shows a count of how many times each process was sampled
22 on the CPU. The second table gives this as a percentage.
24 setiathome was on the CPU 421 times, which is 93% of the samples.
29 The following is sampleproc running on a server with 4 CPUs. A bash shell
30 is running in an infinate loop,
33 Sampling at 100 hertz... Hit Ctrl-C to end.
55 The bash shell was on the CPUs for 24% of the time, which is consistant
56 with a CPU bound single threaded application on a 4 CPU server.
58 The above sample was around 10 seconds long. During this time, there were
59 around 4000 samples (checking the COUNT column), this is due to
60 4000 = CPUs (4) * Hertz (100) * Seconds (10).