How to check interprocess communication (SAR-M)
Use the SAR-M command to report inter-process communication activities.
$ sar-m
00:00:00 msg/s sema/s
01:00:00 0.00 0.00
These numbers are usually 0 (0.00) Unless you are running an application that uses messages or signals.
The following list describes the output of the-M option.
msg/s
Number of message operations per second (send and receive)
sema/s
Number of signal operands per second
Sample 13–10 checking interprocess communication (SAR-M)
The following abbreviated example shows the output of the SAR-M command.
$ sar-m
SunOS balmyday 5.10 s10_51 sun4u 03/18/2004
00:00:00 msg/s sema/s
01:00:00 0.00 0.00
02:00:02 0.00 0.00
03:00:00 0.00 0.00
04:00:00 0.00 0.00
05:00:01 0.00 0.00
06:00:00 0.00 0.00
Average 0.00 0.00
Procedure how to check the page into activity (SAR-P)
Use the SAR-P command to report page-into activities, including protection errors and conversion errors.
$ sar-p
00:00:00 atch/s pgin/s ppgin/s pflt/s vflt/s
01:00:00 0.07 0.00 0.00 0.21 0.39 0.00
Example 13–11 check page in activity (SAR-P)
The following example displays the output of the Sar-p command.
$ sar-p
SunOS balmyday 5.10 s10_51 sun4u 03/18/2004
00:00:04 atch/s pgin/s ppgin/s pflt/s vflt/s
01:00:00 0.09 0.00 0.00 0.78 2.02 0.00
02:00:01 0.08 0.00 0.00 0.78 2.02 0.00
03:00:00 0.09 0.00 0.00 0.81 2.07 0.00
04:00:00 0.11 0.01 0.01 0.86 2.18 0.00
05:00:00 0.08 0.00 0.00 0.78 2.02 0.00
06:00:00 0.09 0.00 0.00 0.78 2.02 0.00
07:00:00 0.08 0.00 0.00 0.78 2.02 0.00
08:00:00 0.09 0.00 0.00 0.78 2.02 0.00
08:20:00 0.11 0.00 0.00 0.87 2.24 0.00
08:40:01 0.13 0.00 0.00 0.90 2.29 0.00
09:00:00 0.11 0.00 0.00 0.88 2.24 0.00
09:20:00 0.10 0.00 0.00 0.88 2.24 0.00
09:40:00 2.91 1.80 2.38 4.61 17.62 0.00
10:00:00 2.74 2.03 3.08 8.17 21.76 0.00
10:20:00 0.16 0.04 0.04 1.92 2.96 0.00
10:40:00 2.10 2.50 3.42 6.62 16.51 0.00
11:00:00 3.36 0.87 1.35 3.92 15.12 0.00
Average 0.42 0.22 0.31 1.45 4.00 0.00
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/unix/
The following table describes the statistics reported through the-P option.
Field name |
Description |
atch/s |
The number of page errors per second that are satisfied by reclaiming pages currently in memory (additional number per second). For example, you can recycle invalid pages from the available list, and share text pages that are currently in use by other processes. For example, two or more processes access the same program text at the same time. |
pgin/s |
The number of page inbound requests received by the file system per second. |
ppgin/s |
Number of pages per second redeployment. A single page in request (for example, a software lock request, see SLOCK/S) or a redeployment that may involve multiple pages if the block size is large. |
pflt/s |
Number of page faults caused by protection errors. Protecting the wrong instance indicates illegal access to the page and write copy. Typically, this number mainly includes write replication. |
vflt/s |
The number of Address translation page errors per second. These errors are referred to as validation errors. A validation error occurs when a valid process table entry for a given virtual address does not exist. |
slock/s |
The number of errors per second caused by software lock requests that require physical I/O. For example, a software lock request occurs when data is transferred from disk to memory. The system locks the page to receive data, so other processes cannot request and use the page. |
How to check queue activity (SAR-Q)
Use the SAR-Q command to report the following information:
The average queue length when the queue is occupied.
The percentage of time that the queue is in the occupied state.
$ sar-q
00:00:00 Runq-sz%RUNOCC Swpq-sz%SWPOCC
The following list describes the output of the-Q option.
Runq-sz
The number of kernel threads in memory waiting for the CPU to run. Typically, this value should be less than 2. If this value continues to be high, it indicates that the system may be computationally dense (cpu-bound).
%runocc
Percentage of time that the distribution queue was occupied.
Swpq-sz
The process queue in which the SAR command is exchanged.
%swpocc
The process queue in which the SAR command is exchanged.
Sample 13–12 Check queue activity
The following example displays the output of the SAR-Q command. If the%RUNOCC value is larger (greater than 90%) and the Runq-sz value is greater than 2, the CPU load is larger and the response slows. In this case, additional CPU capacity may need to be provided to achieve an acceptable system response speed.
# Sar-q
SunOS system2 5.10 generic_142909-13 sun4u 06/28/2010
00:00:00 Runq-sz%RUNOCC Swpq-sz%SWPOCC
01:00:00 1.0 7 0.0 0
02:00:00 1.0 7 0.0 0
03:00:00 1.0 7 0.0 0
04:00:00 1.0 7 0.0 0
05:00:00 1.0 6 0.0 0
06:00:00 1.0 7 0.0 0
Average 1.0 7 0.0 0