Chapter 24Monitoring System Performance (Tasks)
This chapter describes procedures for monitoring system
performance by using the vmstat, iostat, df, and sar commands. This is a list of the step-by-step
instructions in this chapter.
What's New in Monitoring System Performance?
The vmstat command now includes all system interrupts
in the faults-in column.
In previous Solaris releases, this column did not report clock device
interrupts.
For more information, see vmstat(1M).
Displaying Virtual Memory Statistics (vmstat)
You can use the vmstat command to report virtual
memory statistics and information about system events as CPU load, paging,
number of context switches, device interrupts, and system calls. The vmstat command can also display statistics on swapping, cache flushing,
and interrupts.
The following table describes the fields in the vmstat
output.
Table 24-1 Output From the vmstat Command
Category | Field Name | Description |
procs | | Reports on the following: |
| r | The number of kernel threads in the dispatch queue |
| b | The number of blocked kernel threads that are waiting for
resources |
| w | The number of swapped out LWPs that are waiting for processing
resources to finish |
memory | | Reports on usage of real memory and virtual memory: |
| swap | Available swap space |
| free | Size of the free list |
page | | Reports on page faults and paging activity, in units per
second: |
| re | Pages reclaimed |
| mf | Minor and major faults |
| pi | Kbytes paged in |
| po | Kbytes paged out |
| fr | Kbytes freed |
| de | Anticipated memory that is needed by recently swapped-in
processes |
| sr | Pages scanned by the page daemon not currently in use.
If sr does not equal zero, the page daemon has been running. |
disk | | Reports the number of disk operations per second, showing
data on up to four disks |
faults | | Reports the trap/interrupt rates per second: |
| in | Interrupts per second |
| sy | System calls per second |
| cs | CPU context switch rate |
cpu | | Reports on the use of CPU time: |
| us | User time |
| sy | System time |
| id | Idle time |
For a more detailed description of this command, see vmstat(1M).
|