O'Reilly logo

Special Edition Using® Solaris™ 9 by Tanuj Jain, Radhika Girisan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required