Monitoring CPU Usage
By monitoring CPU usage, you can identify the reasons for a system's slow performance. You can monitor CPU usage by using CPU counters, such as Idle, System, User, Nice, and so on. Solaris provides commands, such as mpstat and prstat, that you can use to obtain performance reports related to CPU usage. Performance reports generated by these commands provide information on processor faults, interrupts, context switches, locks, and the current state of a process. This section discusses the commands, methods of using these commands, and the output provided by these commands.
The mpstat command
The mpstat command provides performance reports on processor activity. Reports are presented in the form of rows and columns, with the ...
Get Special Edition Using® Solaris™ 9 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.