sysfs-block-zram 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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>/notify_free
  41. Date: August 2010
  42. Contact: Nitin Gupta <ngupta@vflare.org>
  43. Description:
  44. The notify_free file is read-only and specifies the number of
  45. swap slot free notifications received by this device. These
  46. notifications are sent to a swap block device when a swap slot
  47. is freed. This statistic is applicable only when this disk is
  48. being used as a swap disk.
  49. What: /sys/block/zram<id>/discard
  50. Date: August 2010
  51. Contact: Nitin Gupta <ngupta@vflare.org>
  52. Description:
  53. The discard file is read-only and specifies the number of
  54. discard requests received by this device. These requests
  55. provide information to block device regarding blocks which are
  56. no longer used by filesystem.
  57. What: /sys/block/zram<id>/zero_pages
  58. Date: August 2010
  59. Contact: Nitin Gupta <ngupta@vflare.org>
  60. Description:
  61. The zero_pages file is read-only and specifies number of zero
  62. filled pages written to this disk. No memory is allocated for
  63. such pages.
  64. What: /sys/block/zram<id>/orig_data_size
  65. Date: August 2010
  66. Contact: Nitin Gupta <ngupta@vflare.org>
  67. Description:
  68. The orig_data_size file is read-only and specifies uncompressed
  69. size of data stored in this disk. This excludes zero-filled
  70. pages (zero_pages) since no memory is allocated for them.
  71. Unit: bytes
  72. What: /sys/block/zram<id>/compr_data_size
  73. Date: August 2010
  74. Contact: Nitin Gupta <ngupta@vflare.org>
  75. Description:
  76. The compr_data_size file is read-only and specifies compressed
  77. size of data stored in this disk. So, compression ratio can be
  78. calculated using orig_data_size and this statistic.
  79. Unit: bytes
  80. What: /sys/block/zram<id>/mem_used_total
  81. Date: August 2010
  82. Contact: Nitin Gupta <ngupta@vflare.org>
  83. Description:
  84. The mem_used_total file is read-only and specifies the amount
  85. of memory, including allocator fragmentation and metadata
  86. overhead, allocated for this disk. So, allocator space
  87. efficiency can be calculated using compr_data_size and this
  88. statistic.
  89. Unit: bytes