Solaris Performance Monitoring with iostat


Create iostat monitor script.
# vi /tmp/iostat_script.sh
#!/bin/ksh

echo "$(date '+%nDATE : %m-%d-%y%nTIME : %H-%M-%S')" >> /tmp/iostat_result
.log
iostat -xtc 5 60 >> /tmp/iostat_result.log

Change mode permission of script file so it can be executed.
# chmod 755 /tmp/iostat_script.sh

Running script for monitoring terminal and disk I/O activity and CPU utilization.
# /tmp/iostat_scrip.sh

View terminal and disk I/O activity and CPU utilization report.
# more /tmp/iostat_result.log
DATE : 06-19-08
TIME : 18-01-48
extended device statistics tty cpu
device r/s w/s kr/s kw/s wait actv svc_t %w %b tin tout us sy wt id
ssd0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 1073 0 0 0 100
ssd1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
nfs1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0

Analyze the report :
• The significant Disk bottleneck threshold if :
1. time disk busy (%b) > 20%
2. ServiceTime (svc_t) > 30 ms
3. Disk Saturation (%w) > 5%

• Large numbers in the r/s and w/s is an indication of a too small block size.
• The kr/s and kr/s indicate disk throughput that provided.

I hope Oki, Julio, and Dimas helped with this article.

Popular posts from this blog

Howto configure boot device order on ILOM

Installing Depot files on HP-UX 11.23 ia64

SAN Switch Config Command