sysfs-block 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. What: /sys/block/<disk>/stat
  2. Date: February 2008
  3. Contact: Jerome Marchand <jmarchan@redhat.com>
  4. Description:
  5. The /sys/block/<disk>/stat files displays the I/O
  6. statistics of disk <disk>. They contain 11 fields:
  7. 1 - reads completed succesfully
  8. 2 - reads merged
  9. 3 - sectors read
  10. 4 - time spent reading (ms)
  11. 5 - writes completed
  12. 6 - writes merged
  13. 7 - sectors written
  14. 8 - time spent writing (ms)
  15. 9 - I/Os currently in progress
  16. 10 - time spent doing I/Os (ms)
  17. 11 - weighted time spent doing I/Os (ms)
  18. For more details refer Documentation/iostats.txt
  19. What: /sys/block/<disk>/<part>/stat
  20. Date: February 2008
  21. Contact: Jerome Marchand <jmarchan@redhat.com>
  22. Description:
  23. The /sys/block/<disk>/<part>/stat files display the
  24. I/O statistics of partition <part>. The format is the
  25. same as the above-written /sys/block/<disk>/stat
  26. format.
  27. What: /sys/block/<disk>/integrity/format
  28. Date: June 2008
  29. Contact: Martin K. Petersen <martin.petersen@oracle.com>
  30. Description:
  31. Metadata format for integrity capable block device.
  32. E.g. T10-DIF-TYPE1-CRC.
  33. What: /sys/block/<disk>/integrity/read_verify
  34. Date: June 2008
  35. Contact: Martin K. Petersen <martin.petersen@oracle.com>
  36. Description:
  37. Indicates whether the block layer should verify the
  38. integrity of read requests serviced by devices that
  39. support sending integrity metadata.
  40. What: /sys/block/<disk>/integrity/tag_size
  41. Date: June 2008
  42. Contact: Martin K. Petersen <martin.petersen@oracle.com>
  43. Description:
  44. Number of bytes of integrity tag space available per
  45. 512 bytes of data.
  46. What: /sys/block/<disk>/integrity/write_generate
  47. Date: June 2008
  48. Contact: Martin K. Petersen <martin.petersen@oracle.com>
  49. Description:
  50. Indicates whether the block layer should automatically
  51. generate checksums for write requests bound for
  52. devices that support receiving integrity metadata.
  53. What: /sys/block/<disk>/alignment_offset
  54. Date: April 2009
  55. Contact: Martin K. Petersen <martin.petersen@oracle.com>
  56. Description:
  57. Storage devices may report a physical block size that is
  58. bigger than the logical block size (for instance a drive
  59. with 4KB physical sectors exposing 512-byte logical
  60. blocks to the operating system). This parameter
  61. indicates how many bytes the beginning of the device is
  62. offset from the disk's natural alignment.
  63. What: /sys/block/<disk>/<partition>/alignment_offset
  64. Date: April 2009
  65. Contact: Martin K. Petersen <martin.petersen@oracle.com>
  66. Description:
  67. Storage devices may report a physical block size that is
  68. bigger than the logical block size (for instance a drive
  69. with 4KB physical sectors exposing 512-byte logical
  70. blocks to the operating system). This parameter
  71. indicates how many bytes the beginning of the partition
  72. is offset from the disk's natural alignment.
  73. What: /sys/block/<disk>/queue/logical_block_size
  74. Date: May 2009
  75. Contact: Martin K. Petersen <martin.petersen@oracle.com>
  76. Description:
  77. This is the smallest unit the storage device can
  78. address. It is typically 512 bytes.
  79. What: /sys/block/<disk>/queue/physical_block_size
  80. Date: May 2009
  81. Contact: Martin K. Petersen <martin.petersen@oracle.com>
  82. Description:
  83. This is the smallest unit the storage device can write
  84. without resorting to read-modify-write operation. It is
  85. usually the same as the logical block size but may be
  86. bigger. One example is SATA drives with 4KB sectors
  87. that expose a 512-byte logical block size to the
  88. operating system.
  89. What: /sys/block/<disk>/queue/minimum_io_size
  90. Date: April 2009
  91. Contact: Martin K. Petersen <martin.petersen@oracle.com>
  92. Description:
  93. Storage devices may report a preferred minimum I/O size,
  94. which is the smallest request the device can perform
  95. without incurring a read-modify-write penalty. For disk
  96. drives this is often the physical block size. For RAID
  97. arrays it is often the stripe chunk size.
  98. What: /sys/block/<disk>/queue/optimal_io_size
  99. Date: April 2009
  100. Contact: Martin K. Petersen <martin.petersen@oracle.com>
  101. Description:
  102. Storage devices may report an optimal I/O size, which is
  103. the device's preferred unit of receiving I/O. This is
  104. rarely reported for disk drives. For RAID devices it is
  105. usually the stripe width or the internal block size.