perf-iostat.txt 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. perf-iostat(1)
  2. ===============
  3. NAME
  4. ----
  5. perf-iostat - Show I/O performance metrics
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf iostat' list
  10. 'perf iostat' <ports> \-- <command> [<options>]
  11. DESCRIPTION
  12. -----------
  13. Mode is intended to provide four I/O performance metrics per each PCIe root port:
  14. - Inbound Read - I/O devices below root port read from the host memory, in MB
  15. - Inbound Write - I/O devices below root port write to the host memory, in MB
  16. - Outbound Read - CPU reads from I/O devices below root port, in MB
  17. - Outbound Write - CPU writes to I/O devices below root port, in MB
  18. OPTIONS
  19. -------
  20. <command>...::
  21. Any command you can specify in a shell.
  22. list::
  23. List all PCIe root ports.
  24. <ports>::
  25. Select the root ports for monitoring. Comma-separated list is supported.
  26. EXAMPLES
  27. --------
  28. 1. List all PCIe root ports (example for 2-S platform):
  29. $ perf iostat list
  30. S0-uncore_iio_0<0000:00>
  31. S1-uncore_iio_0<0000:80>
  32. S0-uncore_iio_1<0000:17>
  33. S1-uncore_iio_1<0000:85>
  34. S0-uncore_iio_2<0000:3a>
  35. S1-uncore_iio_2<0000:ae>
  36. S0-uncore_iio_3<0000:5d>
  37. S1-uncore_iio_3<0000:d7>
  38. 2. Collect metrics for all PCIe root ports:
  39. $ perf iostat -- dd if=/dev/zero of=/dev/nvme0n1 bs=1M oflag=direct
  40. 357708+0 records in
  41. 357707+0 records out
  42. 375083606016 bytes (375 GB, 349 GiB) copied, 215.974 s, 1.7 GB/s
  43. Performance counter stats for 'system wide':
  44. port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB)
  45. 0000:00 1 0 2 3
  46. 0000:80 0 0 0 0
  47. 0000:17 352552 43 0 21
  48. 0000:85 0 0 0 0
  49. 0000:3a 3 0 0 0
  50. 0000:ae 0 0 0 0
  51. 0000:5d 0 0 0 0
  52. 0000:d7 0 0 0 0
  53. 3. Collect metrics for comma-separated list of PCIe root ports:
  54. $ perf iostat 0000:17,0:3a -- dd if=/dev/zero of=/dev/nvme0n1 bs=1M oflag=direct
  55. 357708+0 records in
  56. 357707+0 records out
  57. 375083606016 bytes (375 GB, 349 GiB) copied, 197.08 s, 1.9 GB/s
  58. Performance counter stats for 'system wide':
  59. port Inbound Read(MB) Inbound Write(MB) Outbound Read(MB) Outbound Write(MB)
  60. 0000:17 358559 44 0 22
  61. 0000:3a 3 2 0 0
  62. 197.081983474 seconds time elapsed
  63. SEE ALSO
  64. --------
  65. linkperf:perf-stat[1]