Solaris SAR Command (ii) Check system call statistics (SAR-C)

Source: Internet
Author: User

Use the SAR-C command to display system call statistics.

$ sar-c

00:00:00 scall/s sread/s swrit/s fork/s exec/s rchar/s wchar/s

01:00:00 38 2 2 0.00 0.00 149 120

Example Check system call statistics (SAR-C)

The following example displays the output of the SAR-C command.

$ sar-c
SunOS balmyday 5.10 s10_51 sun4u 03/18/2004
00:00:04 scall/s sread/s swrit/s fork/s exec/s rchar/s wchar/s
01:00:00 89 14 9 0.01 0.00 2906 2394
02:00:01 89 14 9 0.01 0.00 2905 2393
03:00:00 89 14 9 0.01 0.00 2908 2393
04:00:00 90 14 9 0.01 0.00 2912 2393
05:00:00 89 14 9 0.01 0.00 2905 2393
06:00:00 89 14 9 0.01 0.00 2905 2393
07:00:00 89 14 9 0.01 0.00 2905 2393
08:00:00 89 14 9 0.01 0.00 2906 2393
08:20:00 90 14 9 0.01 0.01 2914 2395
08:40:01 90 14 9 0.01 0.00 2914 2396
09:00:00 90 14 9 0.01 0.01 2915 2396
09:20:00 90 14 9 0.01 0.01 2915 2396
09:40:00 880 207 156 0.08 0.08 26671 9290
10:00:00 2020 530 322 0.14 0.13 57675 36393
10:20:00 853 129 75 0.02 0.01 10500 8594
10:40:00 2061 524 450 0.08 0.08 579217 567072
11:00:00 1658 404 350 0.07 0.06 1152916 1144203
Average 302 66 49 0.02 0.01 57842 55544

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/unix/

The following table describes the system invocation categories reported by the-C option. Typically, reading and writing account for half of the total system calls. However, this percentage can vary greatly as a result of the activities performed by the system.

Field name Description
scall/s The number of system calls of all types per second, and in systems with 4 to 6 users, there are usually approximately 30 system calls per second.
sread/s Number of read system calls per second.
swrit/s Number of write system calls per second.
fork/s The number of fork system calls per second, in systems with 4 to 6 users, and about 0.5 per second system calls. If you are running a Shell script, this number will increase.
exec/s Number of exec system calls per second. If the result of exec/s divided by fork/s is greater than 3, determine if there is an invalid PATH variable.
rchar/s The number of characters (in bytes) transmitted by the read system call per second.
wchar/s The number of characters (in bytes) sent by the write system call per second.

How to check disk activity (sar-d)

Use the sar-d command to display disk activity statistics.

$ sar-d

00:00:00 device%busy avque r+w/s blks/s avwait avserv

Example Check disk activity

This abbreviated example shows the output of the sar-d command.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.