Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Administration: Common Tasks Oracle Solaris 11 Information Library |
1. Locating Information About Oracle Solaris Commands
2. Managing User Accounts and Groups (Overview)
3. Managing User Accounts and Groups (Tasks)
4. Booting and Shutting Down an Oracle Solaris System
5. Working With Oracle Configuration Manager
6. Managing Services (Overview)
9. Managing System Information (Tasks)
10. Managing System Processes (Tasks)
11. Monitoring System Performance (Tasks)
Where to Find System Performance Tasks
System Performance and System Resources
Processes and System Performance
About Monitoring System Performance
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)
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
12. Managing Software Packages (Tasks)
14. Scheduling System Tasks (Tasks)
15. Setting Up and Administering Printers by Using CUPS (Tasks)
16. Managing the System Console, Terminal Devices, and Power Services (Tasks)
17. Managing System Crash Information (Tasks)
18. Managing Core Files (Tasks)
19. Troubleshooting System and Software Problems (Tasks)
20. Troubleshooting Miscellaneous System and Software Problems (Tasks)
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.
Table 11-4 Output From the vmstat Command
|
For a more detailed description of this command, see the vmstat(1M) man page.
$ vmstat n
where n is the interval in seconds between reports.
Example 11-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
$ vmstat -s 0 swap ins 0 swap outs 0 pages swapped in 0 pages swapped out 522586 total address trans. faults taken 17006 page ins 25 page outs 23361 pages paged in 28 pages paged out 45594 total reclaims 45592 reclaims from free list 0 micro (hat) faults 522586 minor (as) faults 16189 major faults 98241 copy-on-write faults 137280 zero fill page faults 45052 pages examined by the clock daemon 0 revolutions of the clock hand 26 pages freed by the clock daemon 2857 forks 78 vforks 1647 execs 34673885 cpu context switches 65943468 device interrupts 711250 traps 63957605 system calls 3523925 total name lookups (cache hits 99%) 92590 user cpu 65952 system cpu 16085832 idle cpu 7450 wait cpu
$ vmstat -S kthr memory page disk faults cpu r b w swap free si so pi po fr de sr dd f0 s1 -- in sy cs us sy id 0 0 0 862608 364792 0 0 1 0 0 0 0 0 0 0 0 406 394 213 1 0 99
The swapping statistics fields are described in the following list. For a description of the other fields, see Table 11-4.
Average number of LWPs that are swapped in per second
Number of whole processes that are swapped out
Note - The vmstat command truncates the output of si and so fields. Use the sar command to display a more accurate accounting of swap statistics.
Example 11-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