1This is a demonstration of the dispqlen.d script, 2 3 4Here we run it on a single CPU desktop, 5 6 # dispqlen.d 7 Sampling... Hit Ctrl-C to end. 8 ^C 9 CPU 0 10 value ------------- Distribution ------------- count 11 < 0 | 0 12 0 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1790 13 1 |@@@ 160 14 2 | 10 15 3 | 0 16 17The output shows the length of the dispatcher queue is mostly 0. This is 18evidence that the CPU is not very saturated. It does not indicate that the 19CPU is idle - as we are measuring the length of the queue, not what is 20on the CPU. 21 22 23 24Here it is run on a multi CPU server, 25 26 # dispqlen.d 27 Sampling... Hit Ctrl-C to end. 28 ^C 29 CPU 1 30 value ------------- Distribution ------------- count 31 < 0 | 0 32 0 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1573 33 1 |@@@@@@@@@ 436 34 2 | 4 35 3 | 0 36 37 CPU 4 38 value ------------- Distribution ------------- count 39 < 0 | 0 40 0 |@@@@@@@@@@@@@@@@@@@@@@ 1100 41 1 |@@@@@@@@@@@@@@@@@@ 912 42 2 | 1 43 3 | 0 44 45 CPU 0 46 value ------------- Distribution ------------- count 47 < 0 | 0 48 0 |@@@@@@@@@@@@@@@@@ 846 49 1 |@@@@@@@@@@@@@@@@@@@@@@@ 1167 50 2 | 0 51 52 CPU 5 53 value ------------- Distribution ------------- count 54 < 0 | 0 55 0 |@@@@@@@@ 397 56 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1537 57 2 |@@ 79 58 3 | 0 59 60The above output shows that threads are queueing up on CPU 5 much more than 61CPU 0. 62 63