Back to home page

OSCL-LXR

 
 

    


0001 perf-iostat(1)
0002 ===============
0003 
0004 NAME
0005 ----
0006 perf-iostat - Show I/O performance metrics
0007 
0008 SYNOPSIS
0009 --------
0010 [verse]
0011 'perf iostat' list
0012 'perf iostat' <ports> \-- <command> [<options>]
0013 
0014 DESCRIPTION
0015 -----------
0016 Mode is intended to provide four I/O performance metrics per each PCIe root port:
0017 
0018 - Inbound Read   - I/O devices below root port read from the host memory, in MB
0019 
0020 - Inbound Write  - I/O devices below root port write to the host memory, in MB
0021 
0022 - Outbound Read  - CPU reads from I/O devices below root port, in MB
0023 
0024 - Outbound Write - CPU writes to I/O devices below root port, in MB
0025 
0026 OPTIONS
0027 -------
0028 <command>...::
0029         Any command you can specify in a shell.
0030 
0031 list::
0032         List all PCIe root ports.
0033 
0034 <ports>::
0035         Select the root ports for monitoring. Comma-separated list is supported.
0036 
0037 EXAMPLES
0038 --------
0039 
0040 1. List all PCIe root ports (example for 2-S platform):
0041 
0042    $ perf iostat list
0043    S0-uncore_iio_0<0000:00>
0044    S1-uncore_iio_0<0000:80>
0045    S0-uncore_iio_1<0000:17>
0046    S1-uncore_iio_1<0000:85>
0047    S0-uncore_iio_2<0000:3a>
0048    S1-uncore_iio_2<0000:ae>
0049    S0-uncore_iio_3<0000:5d>
0050    S1-uncore_iio_3<0000:d7>
0051 
0052 2. Collect metrics for all PCIe root ports:
0053 
0054    $ perf iostat -- dd if=/dev/zero of=/dev/nvme0n1 bs=1M oflag=direct
0055    357708+0 records in
0056    357707+0 records out
0057    375083606016 bytes (375 GB, 349 GiB) copied, 215.974 s, 1.7 GB/s
0058 
0059     Performance counter stats for 'system wide':
0060 
0061       port             Inbound Read(MB)    Inbound Write(MB)    Outbound Read(MB)   Outbound Write(MB)
0062    0000:00                    1                    0                    2                    3
0063    0000:80                    0                    0                    0                    0
0064    0000:17               352552                   43                    0                   21
0065    0000:85                    0                    0                    0                    0
0066    0000:3a                    3                    0                    0                    0
0067    0000:ae                    0                    0                    0                    0
0068    0000:5d                    0                    0                    0                    0
0069    0000:d7                    0                    0                    0                    0
0070 
0071 3. Collect metrics for comma-separated list of PCIe root ports:
0072 
0073    $ perf iostat 0000:17,0:3a -- dd if=/dev/zero of=/dev/nvme0n1 bs=1M oflag=direct
0074    357708+0 records in
0075    357707+0 records out
0076    375083606016 bytes (375 GB, 349 GiB) copied, 197.08 s, 1.9 GB/s
0077 
0078     Performance counter stats for 'system wide':
0079 
0080       port             Inbound Read(MB)    Inbound Write(MB)    Outbound Read(MB)   Outbound Write(MB)
0081    0000:17               358559                   44                    0                   22
0082    0000:3a                    3                    2                    0                    0
0083 
0084         197.081983474 seconds time elapsed
0085 
0086 SEE ALSO
0087 --------
0088 linkperf:perf-stat[1]