sysfs-block-zram 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. What: /sys/block/zram<id>/disksize
  2. Date: August 2010
  3. Contact: Nitin Gupta <ngupta@vflare.org>
  4. Description:
  5. The disksize file is read-write and specifies the disk size
  6. which represents the limit on the *uncompressed* worth of data
  7. that can be stored in this disk.
  8. Unit: bytes
  9. What: /sys/block/zram<id>/initstate
  10. Date: August 2010
  11. Contact: Nitin Gupta <ngupta@vflare.org>
  12. Description:
  13. The initstate file is read-only and shows the initialization
  14. state of the device.
  15. What: /sys/block/zram<id>/reset
  16. Date: August 2010
  17. Contact: Nitin Gupta <ngupta@vflare.org>
  18. Description:
  19. The reset file is write-only and allows resetting the
  20. device. The reset operation frees all the memory associated
  21. with this device.
  22. What: /sys/block/zram<id>/num_reads
  23. Date: August 2010
  24. Contact: Nitin Gupta <ngupta@vflare.org>
  25. Description:
  26. The num_reads file is read-only and specifies the number of
  27. reads (failed or successful) done on this device.
  28. What: /sys/block/zram<id>/num_writes
  29. Date: August 2010
  30. Contact: Nitin Gupta <ngupta@vflare.org>
  31. Description:
  32. The num_writes file is read-only and specifies the number of
  33. writes (failed or successful) done on this device.
  34. What: /sys/block/zram<id>/invalid_io
  35. Date: August 2010
  36. Contact: Nitin Gupta <ngupta@vflare.org>
  37. Description:
  38. The invalid_io file is read-only and specifies the number of
  39. non-page-size-aligned I/O requests issued to this device.
  40. What: /sys/block/zram<id>/failed_reads
  41. Date: February 2014
  42. Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
  43. Description:
  44. The failed_reads file is read-only and specifies the number of
  45. failed reads happened on this device.
  46. What: /sys/block/zram<id>/failed_writes
  47. Date: February 2014
  48. Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
  49. Description:
  50. The failed_writes file is read-only and specifies the number of
  51. failed writes happened on this device.
  52. What: /sys/block/zram<id>/max_comp_streams
  53. Date: February 2014
  54. Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
  55. Description:
  56. The max_comp_streams file is read-write and specifies the
  57. number of backend's zcomp_strm compression streams (number of
  58. concurrent compress operations).
  59. What: /sys/block/zram<id>/comp_algorithm
  60. Date: February 2014
  61. Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
  62. Description:
  63. The comp_algorithm file is read-write and lets to show
  64. available and selected compression algorithms, change
  65. compression algorithm selection.
  66. What: /sys/block/zram<id>/notify_free
  67. Date: August 2010
  68. Contact: Nitin Gupta <ngupta@vflare.org>
  69. Description:
  70. The notify_free file is read-only and specifies the number of
  71. swap slot free notifications received by this device. These
  72. notifications are sent to a swap block device when a swap slot
  73. is freed. This statistic is applicable only when this disk is
  74. being used as a swap disk.
  75. What: /sys/block/zram<id>/zero_pages
  76. Date: August 2010
  77. Contact: Nitin Gupta <ngupta@vflare.org>
  78. Description:
  79. The zero_pages file is read-only and specifies number of zero
  80. filled pages written to this disk. No memory is allocated for
  81. such pages.
  82. What: /sys/block/zram<id>/orig_data_size
  83. Date: August 2010
  84. Contact: Nitin Gupta <ngupta@vflare.org>
  85. Description:
  86. The orig_data_size file is read-only and specifies uncompressed
  87. size of data stored in this disk. This excludes zero-filled
  88. pages (zero_pages) since no memory is allocated for them.
  89. Unit: bytes
  90. What: /sys/block/zram<id>/compr_data_size
  91. Date: August 2010
  92. Contact: Nitin Gupta <ngupta@vflare.org>
  93. Description:
  94. The compr_data_size file is read-only and specifies compressed
  95. size of data stored in this disk. So, compression ratio can be
  96. calculated using orig_data_size and this statistic.
  97. Unit: bytes
  98. What: /sys/block/zram<id>/mem_used_total
  99. Date: August 2010
  100. Contact: Nitin Gupta <ngupta@vflare.org>
  101. Description:
  102. The mem_used_total file is read-only and specifies the amount
  103. of memory, including allocator fragmentation and metadata
  104. overhead, allocated for this disk. So, allocator space
  105. efficiency can be calculated using compr_data_size and this
  106. statistic.
  107. Unit: bytes