Sun Java System Portal Server 7 Deployment Planning Guide

Output

#mpstat 10

CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
 0    1   0 5529   442  302  419  166   12  196    0   775   95   5   0   0
 1    1   0  220   237  100  383  161   41   95    0   450   96   4   0   0
 4    0   0   27   192  100  178   94   38   44    0   100   99   1   0   0

What to Look For

Note the much higher intr and ithr values for certain CPUs. Solaris will select some CPUs to handle the system interrupts. The CPUs and the number that are chosen depend on the I/O devices attached to the system, the physical location of the devices, and whether interrupts have been disabled on a CPU (psradmin command).

Considerations

Make your application available to as many CPUs as it can efficiently use. As an example, you get the best performance from one instance from 2 CPUs. You can expect that creating 14 2CPU processor sets would yield the best performance.

An increasing csw value shows an increase with network use. A common cause for a high csw value is the result of having created too many socket connections--either by not pooling connections or by handling new connections inefficiently. If this is the case you would also see a high TCP connection count when executing netstat -a | wc–l. For more information, refer to netstat.

Do you observe increasing icsw? A common cause of this is preemption, most likely because of an end of time slice on the CPU.