1N/AThe following is an example of the cswstat.d script,
1N/A
1N/A # cswstat.d
1N/A TIME NUM CSWTIME AVGTIME
1N/A 2005 May 17 01:57:21 276 2407 8
1N/A 2005 May 17 01:57:22 283 2251 7
1N/A 2005 May 17 01:57:23 259 2098 8
1N/A 2005 May 17 01:57:24 268 2169 8
1N/A 2005 May 17 01:57:25 1248 10864 8
1N/A 2005 May 17 01:57:26 2421 21263 8
1N/A 2005 May 17 01:57:27 2183 19804 9
1N/A 2005 May 17 01:57:28 1980 18640 9
1N/A 2005 May 17 01:57:29 794 7422 9
1N/A 2005 May 17 01:57:30 275 2233 8
1N/A 2005 May 17 01:57:31 288 2338 8
1N/A 2005 May 17 01:57:32 545 4154 7
1N/A 2005 May 17 01:57:33 264 2149 8
1N/A ^C
1N/A
1N/AIn the above output, the average context switch time is 8 microseconds.
1N/ADuring the sample there was a burst of activity, increasing the number
1N/Aof context switches per second from around 270 to over 2000. The time
1N/Aconsumed by all of these context switches in total is printed, peaking
1N/Aat 21 ms.
1N/A