Showing posts with label iostat. Show all posts
Showing posts with label iostat. Show all posts

31 March 2026

Solaris 11.4 / iostat latency reporting

The iostat command is used for IO performance reporting 
and has a lot of options.
Since Solaris 11.4 it includes the -L option to display
the latency distribution.

You can see how many request are sent to the disks and 
how the distribution is

Tuesday, March 31, 2026 at  1:23:55 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
   6.8   48.4    0.4    0.3  0.0  0.1    0.0    1.9   0   4 c2d13
latency          range         count      density distribution
                 <16us             0        0.00%        0.00%
               16-32us             1        0.36%        0.36%
               32-64us             2        0.72%        1.08%
              64-128us             0        0.00%        1.08%
             128-256us             7        2.51%        3.58%
             256-512us            59       21.15%       24.73%
            512-1024us            62       22.22%       46.95%
                 1-2ms            73       26.16%       73.12%
                 2-4ms            56       20.07%       93.19%
                 4-8ms            12        4.30%       97.49%
                8-16ms             5        1.79%       99.28%
               16-32ms             2        0.72%      100.00%
                 >32ms             0        0.00%      100.00%
                 total           279
   6.0  387.4    0.3   87.8  0.0  1.1    0.0    2.7   1  56 c2d14
latency          range         count      density distribution
                 <16us             0        0.00%        0.00%
               16-32us             1        0.05%        0.05%
               32-64us             1        0.05%        0.10%
              64-128us             0        0.00%        0.10%
             128-256us             5        0.25%        0.36%
             256-512us            66        3.35%        3.71%
            512-1024us           388       19.70%       23.40%
                 1-2ms           677       34.37%       57.77%
                 2-4ms           491       24.92%       82.69%
                 4-8ms           261       13.25%       95.94%
                8-16ms            64        3.25%       99.19%
               16-32ms            16        0.81%      100.00%
                 >32ms             0        0.00%      100.00%
                 total          1970

The following options are used

iostat -LxnM -Td c2d14 c2d13 5

Td to display date/time
L to display the latency
M to display MB/s
x to display extended output
n to display the disk names

29 April 2025

Solaris 11.4.78 / iostat -b and wildcards

If you are using Kernel Zones

-bash-5.2$ zoneadm list -v
  ID NAME             STATUS      PATH                         BRAND      IP
   0 global           running     /                            solaris    shared
   1 v0182            running     -                            solaris-kz excl

It is now easier on the global zone to analyze
the I/O of only the disks used by kernel zones

using the wildcard (v0182*) and the new -b (backend) flag

-bash-5.2$ iostat -xnzb -Td v0182* 5 3
Tuesday, April 29, 2025 at  7:58:29 AM EDT
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
   0.3    7.5   18.2   53.7  0.0  0.0    0.0    1.7   0   0 v0182/disk1
   0.0    0.0    0.0    9.3  0.0  0.0    0.0    5.1   0   0 v0182/disk2
   0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.2   0   0 v0182/disk3
Tuesday, April 29, 2025 at  7:58:34 AM EDT
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
   0.6   14.4   25.8   68.4  0.0  0.0    0.0    1.8   0   1 v0182/disk1
   0.4   68.2    0.3 58301.9  0.0  0.4    0.0    6.5   0  24 v0182/disk2
Tuesday, April 29, 2025 at  7:58:39 AM EDT
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
  11.0    0.0   37.1    0.0  0.0  0.0    0.0    0.3   0   0 v0182/disk1
   0.0   87.2    0.0 52939.6  0.0  0.4    0.0    5.1   0  22 v0182/disk2


And we have similar output on control domains for disks
used in logical domains (Ldoms) on SPARC servers.

-bash-5.2$ iostat -znxMb -T d vds* 5 5
Tuesday, April 29, 2025 at  2:20:19 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
 356.5  120.3   16.7   11.1  0.0  0.3    0.0    0.7   0   8 60002AC000000000000004320001507B@primary-vds0
 187.3    5.1   10.2    0.1  0.0  0.1    0.0    0.5   0   9 60002AC0000000000000048F0001507B@primary-vds0
Tuesday, April 29, 2025 at  2:20:24 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
 135.2  195.0   80.3  118.0  0.0  0.9    0.0    2.8   0  50 60002AC000000000000004320001507B@primary-vds0
Tuesday, April 29, 2025 at  2:20:29 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
 178.6  275.6  115.6  103.2  0.0  1.1    0.0    2.3   0  55 60002AC000000000000004320001507B@primary-vds0
Tuesday, April 29, 2025 at  2:20:34 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
 236.6  306.4  100.2  109.9  0.0  1.1    0.0    2.1   0  61 60002AC000000000000004320001507B@primary-vds0
Tuesday, April 29, 2025 at  2:20:39 PM CEST
                    extended device statistics
    r/s    w/s   Mr/s   Mw/s wait actv wsvc_t asvc_t  %w  %b device
 196.2  282.0   95.4  117.2  0.0  1.1    0.0    2.4   0  60 60002AC000000000000004320001507B@primary-vds0