sar ɾ Ʒ ΰ · ֽϴ.
sar [ -abcdgkmpqruvwxyADSC] [-o file] t [n]
ó´ ü ȰȲ tʸ n Ͽ ϴ ̰
⼭ t ݵ ־ ϴ μ ι°
νϿ մϴ.
sar [ -abcdgkmpqruvwxyADSC] [ -s time] [-e time] [ -i sec] [-f file]
ι° ɾ ø ϴ ֱ Ƚ , -f ־ ȭ̳
/var/adm/sa/saDDȭϿ մϴ. -s -e ۽ð ð
Ÿ hh[:mm[:ss]] · մϴ.
sar ϴ μ ϴ.
-a : file access operations
-c : check system calls
-d : check disk activity
-g : check page-out and memory freeing
-p : check page-in and fault activity
-u : check cpu utilization
-w : check swapping and switching volume
-y : check terminal activity
-A : Report overall system performance
-Du: Report CPU utilization by RFS and local activity( same -D )
ݺ ϳϳ ϰڽϴ.
[solaris:/home]sar 3 5
SunOS armyesm 5.8 Generic_117350-26 sun4us 05/17/06
13:43:27 %usr %sys %wio %idle
13:43:30 4 1 2 92
13:43:33 3 2 2 93
13:43:36 4 2 2 92
13:43:39 4 3 12 81
13:43:42 3 1 0 95
Average 4 2 3 91
3ʰ 5ȸ ݺ ؼ CPU ϴ Դϴ.
(ɼ -u ɼ ˴ϴ.)
[solaris:/home]sar -o /home/sar_sample.file 3 5
SunOS armyesm 5.8 Generic_117350-26 sun4us 05/17/06
14:16:46 %usr %sys %wio %idle
14:16:49 3 4 13 79
14:16:52 4 1 2 94
14:16:55 4 2 1 93
14:16:58 4 2 2 93
14:17:01 4 2 1 93
Average 4 2 4 91
[solaris:/home]pwd
/home
[solaris:/home]ls -l
-rw-r--r-- 1 root other 57984 5 17 14:17 sar_sample.file
[solaris:/home]sar -f /home/sar_sample.file
SunOS armyesm 5.8 Generic_117350-26 sun4us 05/17/06
14:16:46 %usr %sys %wio %idle
14:16:49 3 4 13 79
14:16:52 4 1 2 94
14:16:55 4 2 1 93
14:16:58 4 2 2 93
14:17:01 4 2 1 93
Average 4 2 4 91
CPU Utilization -oɼ ־ /home丮
sar_sample.file ְ ɼ -f ־ ϴ
Ȯ ֽϴ.
[solaris:/home]sar -b 3 5
SunOS armyesm 5.8 Generic_117350-26 sun4us 05/17/06
14:28:56 bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s pwrit/s
14:28:59 0 1383 100 1 61 98 0 0
14:29:02 0 1642 100 56 276 80 0 0
14:29:05 0 1583 100 2 107 98 0 0
14:29:08 0 1504 100 0 72 100 0 0
14:29:11 0 1713 100 0 69 100 0 0
Average 0 1565 100 12 117 90 0 0
-bɼ ־ ƼƼ ϴ Դϴ. ⼭
߿ %rcache %wcache %rcache
90 Ϸ ų, %wcache 65 Ϸ Ǿ 쿡
ų ֽϴ.
[solaris:/home]sar -g 10 3
SunOS armyesm 5.8 Generic_117350-26 sun4us 05/17/06
14:34:19 pgout/s ppgout/s pgfree/s pgscan/s %ufs_ipf
14:34:29 7.89 11.69 8.19 0.00 0.00
14:34:39 7.60 14.60 12.00 0.00 0.00
14:34:49 8.70 14.10 10.70 0.00 0.00
Average 8.06 13.46 10.30 0.00 0.00
-gɼ ־ Memory page-out ϴ Դϴ. ⼭
߿ pgscan/s ϴٴ Դϴ.
[solaris:/home]sar -q 10 3
SunOS armyesm 5.8 Generic_117350-26 sun4us 05/17/06
14:40:27 runq-sz %runocc swpq-sz %swpocc
14:40:37 1.2 100
14:40:47 1.3 100
14:40:57 0.8 100
Average
-qɼ ־ ť ִ μ ϴ Դϴ.
⼭ runq-sz ؼ 2 ̻ Ÿ CPU Ѱġ ٴٸ
Ǵ ֽϴ.
[solaris:/home]sar -r 10 3
SunOS armyesm 5.8 Generic_117350-26 sun4us 05/17/06
14:38:49 freemem freeswap
14:38:59 48570 24583912
14:39:09 48542 24559272
14:39:19 48597 24608388
Average 48570 24583841
-rɼ ־ ϴ Դϴ. ⼭ ؾ
ν 6% ؼ
ϴٴ Դϴ.
̻ sar ؼ ˾ ҽϴ.