JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Advanced Administration     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

1.  Managing Terminals, Modems and Serial Port Services (Tasks)

2.  Displaying and Changing System Information (Tasks)

3.  Scheduling System Tasks (Tasks)

4.  Managing System Processes (Tasks)

5.  Monitoring System Performance (Tasks)

What's New in Managing System Performance?

LatencyTOP Performance Tuning Utility

Where to Find System Performance Tasks

System Performance and System Resources

Processes and System Performance

About Monitoring System Performance

Monitoring Tools

Displaying System Performance Information (Task Map)

Displaying Virtual Memory Statistics (vmstat)

How to Display Virtual Memory Statistics (vmstat)

How to Display System Event Information (vmstat -s)

How to Display Swapping Statistics (vmstat -S)

How to Display Interrupts Per Device (vmstat -i)

Displaying Disk Utilization Information (iostat)

How to Display Disk Utilization Information (iostat)

How to Display Extended Disk Statistics (iostat -xtc)

Displaying Disk Space Statistics (df)

How to Display Disk Space Information (df -k)

Monitoring System Activities (Task Map)

Monitoring System Activities (sar)

How to Check File Access (sar -a)

How to Check Buffer Activity (sar -b)

How to Check System Call Statistics (sar -c)

How to Check Disk Activity (sar -d)

How to Check Page-Out and Memory (sar -g)

Checking Kernel Memory Allocation

How to Check Kernel Memory Allocation (sar -k)

How to Check Interprocess Communication (sar -m)

How to Check Page-In Activity (sar -p)

How to Check Queue Activity (sar -q)

How to Check Unused Memory (sar -r)

How to Check CPU Utilization (sar -u)

How to Check System Table Status (sar -v)

How to Check Swapping Activity (sar -w)

How to Check Terminal Activity (sar -y)

How to Check Overall System Performance (sar -A)

Collecting System Activity Data Automatically (sar)

Running the sadc Command When Booting

Running the sadc Command Periodically With the sa1 Script

Producing Reports With the sa2 Shell Script

Setting Up Automatic Data Collection (sar)

How to Set Up Automatic Data Collection

6.  Troubleshooting Software Problems (Tasks)

7.  Managing Core Files (Tasks)

8.  Managing System Crash Information (Tasks)

9.  Troubleshooting Miscellaneous System Problems (Tasks)

Index

Displaying Virtual Memory Statistics (vmstat)

You can use the vmstat command to report virtual memory statistics and information about system events such 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 command output.

Table 5-4 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 faults 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 the vmstat(1M) man page.

How to Display Virtual Memory Statistics (vmstat)

Example 5-1 Displaying Virtual Memory Statistics

The following example shows the vmstat display of statistics that were gathered at five-second intervals:

$ vmstat 5
kthr      memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr dd f0 s1 --   in   sy   cs us sy id
 0 0 0 863160 365680  0   3  1  0  0  0  0  0  0  0  0  406  378  209  1  0 99
 0 0 0 765640 208568  0  36  0  0  0  0  0  0  0  0  0  479 4445 1378  3  3 94
 0 0 0 765640 208568  0   0  0  0  0  0  0  0  0  0  0  423  214  235  0  0 100
 0 0 0 765712 208640  0   0  0  0  0  0  0  3  0  0  0  412  158  181  0  0 100
 0 0 0 765832 208760  0   0  0  0  0  0  0  0  0  0  0  402  157  179  0  0 100
 0 0 0 765832 208760  0   0  0  0  0  0  0  0  0  0  0  403  153  182  0  0 100
 0 0 0 765832 208760  0   0  0  0  0  0  0  0  0  0  0  402  168  177  0  0 100
 0 0 0 765832 208760  0   0  0  0  0  0  0  0  0  0  0  402  153  178  0  0 100
 0 0 0 765832 208760  0  18  0  0  0  0  0  0  0  0  0  407  165  186  0  0 100

How to Display System Event Information (vmstat -s)

How to Display Swapping Statistics (vmstat -S)

How to Display Interrupts Per Device (vmstat -i)

Example 5-2 Displaying Interrupts Per Device

The following example shows output from the vmstat -i command.

$ vmstat -i
interrupt         total     rate
--------------------------------
clock          52163269      100
esp0            2600077        4
zsc0              25341        0
zsc1              48917        0
cgsixc0             459        0
lec0             400882        0
fdc0                 14        0
bppc0                 0        0
audiocs0              0        0
--------------------------------
Total          55238959      105