Path: blob/master/tools/perf/Documentation/perf-iostat.txt
26282 views
perf-iostat(1)1===============23NAME4----5perf-iostat - Show I/O performance metrics67SYNOPSIS8--------9[verse]10'perf iostat' list11'perf iostat' <ports> \-- <command> [<options>]1213DESCRIPTION14-----------15Mode is intended to provide four I/O performance metrics per each PCIe root port:1617- Inbound Read - I/O devices below root port read from the host memory, in MB1819- Inbound Write - I/O devices below root port write to the host memory, in MB2021- Outbound Read - CPU reads from I/O devices below root port, in MB2223- Outbound Write - CPU writes to I/O devices below root port, in MB2425OPTIONS26-------27<command>...::28Any command you can specify in a shell.2930list::31List all PCIe root ports.3233<ports>::34Select the root ports for monitoring. Comma-separated list is supported.3536EXAMPLES37--------38391. List all PCIe root ports (example for 2-S platform):4041$ perf iostat list42S0-uncore_iio_0<0000:00>43S1-uncore_iio_0<0000:80>44S0-uncore_iio_1<0000:17>45S1-uncore_iio_1<0000:85>46S0-uncore_iio_2<0000:3a>47S1-uncore_iio_2<0000:ae>48S0-uncore_iio_3<0000:5d>49S1-uncore_iio_3<0000:d7>50512. Collect metrics for all PCIe root ports:5253$ perf iostat -- dd if=/dev/zero of=/dev/nvme0n1 bs=1M oflag=direct54357708+0 records in55357707+0 records out56375083606016 bytes (375 GB, 349 GiB) copied, 215.974 s, 1.7 GB/s5758Performance counter stats for 'system wide':5960port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB)610000:00 1 0 2 3620000:80 0 0 0 0630000:17 352552 43 0 21640000:85 0 0 0 0650000:3a 3 0 0 0660000:ae 0 0 0 0670000:5d 0 0 0 0680000:d7 0 0 0 069703. Collect metrics for comma-separated list of PCIe root ports:7172$ perf iostat 0000:17,0:3a -- dd if=/dev/zero of=/dev/nvme0n1 bs=1M oflag=direct73357708+0 records in74357707+0 records out75375083606016 bytes (375 GB, 349 GiB) copied, 197.08 s, 1.9 GB/s7677Performance counter stats for 'system wide':7879port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB)800000:17 358559 44 0 22810000:3a 3 2 0 08283197.081983474 seconds time elapsed8485SEE ALSO86--------87linkperf:perf-stat[1]888990