I’ve been filming short videos on performance topics, and previously posted a series of videos on vmstat. Here I discuss mpstat(1M), which is useful for investigating CPU performance per CPU.
The videos that follow are for mpstat(1M) on Solaris-based operating systems. All are available here: mpstat videos, and embedded below:
mpstat: Key Fields
mpstat: All the Fields
mpstat: Digging Deeper
In the digging deeper video I show how investigate the mpstat statistics with other tools to identify their origin, including:
- CPU cross calls (“xcal”): using DTrace.
- Kernel mutex spins (“smtx”): using lockstat(1M).
- Interrupts (“intr”/”ithr”): using intrstat(1M) and mdb(1).
- Individual hot CPU in system time (“sys”): using prstat(1M) and DTrace.
Most of this deeper investigation requires system administrator privileges (typically root) to run the tools, and access to various DTrace providers. Many of these capabilities are not currently available inside virtualized contexts including Solaris Zones and Joyent’s SmartOS. These users still benefit from these capabilities since the global system administrators can investigate and solve issues on their behalf. Be aware that mpstat(1M) is currently system-wide, so any issues shown may be hurting other tenants and not the zone you are looking at.
In: Performance · Tagged with: mpstat, video