VMSTAT
Virtual Memory Statistics
VMSTAT naming conventions
r = the number of kernel threads in the run queue
b = the number of blocked kernel threads
that are waiting for I/O
w =
swap = available swap space in Kbytes
free = size of the free list in Kbytes
re = page reclaims
mf = minor faults
pi = kilobytes paged in
po =
kilobytes paged out
fr =
de = average response time of transactions, in milliseconds
By itself, VMSTAT reports
# vmstat
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr m1 m1 m1 m5 in sy cs us sy id
0 0 0 1696088 708616 0 1 0 0 0 0 0 0 0 0 0 535 64 173 1 2 98
#
#
iostat
-c
reports the percentage of time the system has spent
in user mode, system mode, waiting
for I/O, and idling
# iostat -c
cpu
us sy wt id
2 3 0 95
#
#
They
should add up to 100%.
To display device error summary statistics,
use iostat -e
soft errors, hard errors, transport
errors, and total errors are displayed
# iostat -e
---- errors
---
device s/w h/w trn tot
md10 0 0
0 0
md11 0 0 0
0
md12 0 0
0 0
md50 0
0 0 0
md51 0 0
0 0
md52 0 0
0 0
md60 0 0
0 0
md61 0 0
0 0
md62 0 0
0 0
md70 0 0
0 0
md71 0
0 0 0
md72 0 0
0 0
md80 0 0
0 0
md81 0
0 0 0
md82 0
0 0 0
md90 0 0
0 0
md91 0
0 0 0
md92 0
0 0 0
sd2 0
0 0 0
sd6 8 0
0 8
sd7 0 0
0 0
sd8 0 0
0 0
sd9 0 0
0 0
sd10 0
0 0 0
sd11 0 0
0 0
#
#
Use
iostat -E to display ALL device error statistics
# iostat -E
sd2 Soft Errors: 0 Hard Errors: 0 Transport
Errors: 0
Vendor: IBM Product: DNES30917SUN9.0G Revision:
SAD0 Serial No: 993316K018
Size: 9.06GB <9055065600 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd6 Soft Errors: 8 Hard Errors: 0 Transport
Errors: 0
Vendor: TOSHIBA Product: XM6201TASUN32XCD Revision: 1103 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 8 Predictive Failure Analysis: 0
sd7 Soft Errors: 0 Hard Errors: 0 Transport
Errors: 0
Vendor: IBM Product: DNES30917SUN9.0G Revision:
SAD0 Serial No: 993318W103
Size: 9.06GB <9055065600 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd8 Soft Errors: 0 Hard Errors: 0 Transport
Errors: 0
Vendor: IBM Product: DNES30917SUN9.0G Revision:
SAD0 Serial No: 99421PZ442
Size: 9.06GB <9055065600 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd9 Soft Errors: 0 Hard Errors: 0 Transport
Errors: 0
Vendor: IBM Product: DNES30917SUN9.0G Revision:
SAD0 Serial No: 993317Q150
Size: 9.06GB <9055065600 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd10 Soft Errors: 0 Hard Errors: 0 Transport Errors:
0
Vendor: IBM Product: DNES30917SUN9.0G Revision:
SA50 Serial No: 993016V601
Size: 9.06GB <9055065600 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd11 Soft Errors: 0 Hard Errors: 0 Transport Errors:
0
Vendor: IBM Product: DNES30917SUN9.0G Revision:
SA50 Serial No: 9928155680
Size: 9.06GB <9055065600 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
#
#
To report
extended disk statistics, use iostat -x
By default, disks are identified by instance names
#
# iostat -x
extended
device statistics
device r/s w/s kr/s
kw/s wait actv svc_t %w %b
md10 0.0 0.2
0.3 0.8 0.0 0.0 21.8 0
0
md11 0.0 0.2
0.3 0.5 0.0 0.0 15.8 0
0
md12 0.0 0.2
0.0 0.8 0.0 0.0
16.0 0 0
md50 0.0 0.0
0.1 0.0 0.0 0.0 4.0
0 0
md51 0.0 0.0
0.0 0.0 0.0 0.0 4.3
0 0
md52 0.0 0.0
0.0 0.0 0.0 0.0 4.3
0 0
md60 0.0 0.0
0.0 0.0 0.0 0.0 15.5
0 0
md61 0.0 0.0
0.0 0.0 0.0 0.0 16.8 0
0
md62 0.0 0.0
0.0 0.0 0.0 0.0 16.7
0 0
md70 0.0 0.0
0.0 1.3 0.0 0.0 97.0 0
0
md71 0.0 0.0
0.0 1.3 0.0 0.0 89.9 0
0
md72 0.0 0.0
0.0 1.3 0.0 0.0
84.0 0 0
md80 0.0 0.1
0.0 0.7 0.0 0.0 15.0 0
0
md81 0.0 0.1
0.0 0.7 0.0 0.0
8.7 0 0
md82 0.0 0.1
0.0 0.7 0.0 0.0 6.7
0 0
md90 0.0 0.1
0.0 0.4 0.0 0.0 24.9
0 0
md91 0.0 0.1
0.0 0.4 0.0 0.0
14.9 0 0
md92 0.0 0.1
0.0 0.4 0.0 0.0 13.4
0 0
sd2 0.0 0.3
0.3 0.6 0.0 0.0 12.5
0 0
sd6 0.0 0.0
0.0 0.0 0.0 0.0 2.6
0 0
sd7 0.0 0.3
0.0 0.8 0.0 0.0 9.0
0 0
sd8 0.0 0.4
0.0 1.9 0.0 0.0
21.9 0 0
sd9 0.0 0.4
0.0 0.8 0.0 0.0 12.5
0 0
sd10 0.0 0.1
0.0 0.8 0.0 0.0 7.1
0 0
sd11 0.0 0.2
0.0 1.8 0.0 0.0 27.5
0 0
#
#
To
report extended disk statistics with disks identified in descriptive
format, use iostat -xn
# iostat -xn
extended
device statistics
r/s w/s kr/s kw/s
wait actv wsvc_t asvc_t %w %b device
0.0 0.2
0.3
0.8
0.0
0.0 4.2 17.6 0 0
md10
0.0
0.2
0.3
0.5
0.0 0.0
0.0 15.8
0
0 md11
0.0
0.2
0.0
0.8
0.0 0.0
0.0 16.0
0 0 md12
0.0
0.0 0.1
0.0
0.0 0.0
0.2 3.8
0 0 md50
0.0
0.0
0.0
0.0
0.0 0.0 0.0
4.3
0 0 md51
0.0
0.0
0.0 0.0
0.0 0.0 0.0
4.3
0 0 md52
0.0
0.0 0.0
0.0
0.0 0.0 1.9
13.6
0 0 md60
0.0
0.0
0.0
0.0
0.0 0.0
0.0 16.8
0 0 md61
0.0
0.0
0.0
0.0
0.0 0.0 0.0
16.7
0 0 md62
0.0
0.0
0.0
1.3
0.0 0.0 1.2
95.8
0 0 md70
0.0
0.0 0.0
1.3
0.0 0.0 0.0
89.9
0 0 md71
0.0
0.0
0.0
1.3
0.0 0.0 0.0
83.9
0 0 md72
0.0
0.1 0.0
0.7
0.0 0.0 4.7
10.3 0 0 md80
0.0
0.1
0.0
0.7
0.0 0.0 0.0
8.7
0 0 md81
0.0
0.1
0.0
0.7
0.0 0.0 0.0
6.7
0 0 md82
0.0
0.1
0.0
0.4
0.0 0.0 8.9
16.0
0 0 md90
0.0
0.1
0.0
0.4
0.0 0.0 0.0
14.9 0 0 md91
0.0
0.1
0.0
0.4
0.0 0.0 0.0
13.4
0 0 md92
0.0
0.3
0.3
0.6
0.0 0.0 0.0
12.5
0 0 sd2
0.0
0.0
0.0
0.0 0.0 0.0 0.2
2.4
0 0 sd6
0.0
0.3
0.0
0.8
0.0 0.0 0.0
9.0
0 0 sd7
0.0
0.4
0.0
1.9
0.0 0.0 0.1
21.9 0 0 sd8
0.0
0.4
0.0
0.8
0.0 0.0 0.0
12.5 0 0 sd9
0.0
0.1
0.0
0.8
0.0 0.0 0.0
7.1
0 0 sd10
0.0
0.2
0.0
1.8
0.0 0.0 0.0
27.5
0 0 sd11
#
return
to top
home
Copyright © billhance.com. All rights reserved.