sysfs-block-zram 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. What: /sys/block/zram<id>/initstate
  9. Date: August 2010
  10. Contact: Nitin Gupta <ngupta@vflare.org>
  11. Description:
  12. The disksize file is read-only and shows the initialization
  13. state of the device.
  14. What: /sys/block/zram<id>/reset
  15. Date: August 2010
  16. Contact: Nitin Gupta <ngupta@vflare.org>
  17. Description:
  18. The disksize file is write-only and allows resetting the
  19. device. The reset operation frees all the memory assocaited
  20. with this device.
  21. What: /sys/block/zram<id>/num_reads
  22. Date: August 2010
  23. Contact: Nitin Gupta <ngupta@vflare.org>
  24. Description:
  25. The num_reads file is read-only and specifies the number of
  26. reads (failed or successful) done on this device.
  27. What: /sys/block/zram<id>/num_writes
  28. Date: August 2010
  29. Contact: Nitin Gupta <ngupta@vflare.org>
  30. Description:
  31. The num_writes file is read-only and specifies the number of
  32. writes (failed or successful) done on this device.
  33. What: /sys/block/zram<id>/invalid_io
  34. Date: August 2010
  35. Contact: Nitin Gupta <ngupta@vflare.org>
  36. Description:
  37. The invalid_io file is read-only and specifies the number of
  38. non-page-size-aligned I/O requests issued to this device.
  39. What: /sys/block/zram<id>/notify_free
  40. Date: August 2010
  41. Contact: Nitin Gupta <ngupta@vflare.org>
  42. Description:
  43. The notify_free file is read-only and specifies the number of
  44. swap slot free notifications received by this device. These
  45. notifications are send to a swap block device when a swap slot
  46. is freed. This statistic is applicable only when this disk is
  47. being used as a swap disk.
  48. What: /sys/block/zram<id>/discard
  49. Date: August 2010
  50. Contact: Nitin Gupta <ngupta@vflare.org>
  51. Description:
  52. The discard file is read-only and specifies the number of
  53. discard requests received by this device. These requests
  54. provide information to block device regarding blocks which are
  55. no longer used by filesystem.
  56. What: /sys/block/zram<id>/zero_pages
  57. Date: August 2010
  58. Contact: Nitin Gupta <ngupta@vflare.org>
  59. Description:
  60. The zero_pages file is read-only and specifies number of zero
  61. filled pages written to this disk. No memory is allocated for
  62. such pages.
  63. What: /sys/block/zram<id>/orig_data_size
  64. Date: August 2010
  65. Contact: Nitin Gupta <ngupta@vflare.org>
  66. Description:
  67. The orig_data_size file is read-only and specifies uncompressed
  68. size of data stored in this disk. This excludes zero-filled
  69. pages (zero_pages) since no memory is allocated for them.
  70. Unit: bytes
  71. What: /sys/block/zram<id>/compr_data_size
  72. Date: August 2010
  73. Contact: Nitin Gupta <ngupta@vflare.org>
  74. Description:
  75. The compr_data_size file is read-only and specifies compressed
  76. size of data stored in this disk. So, compression ratio can be
  77. calculated using orig_data_size and this statistic.
  78. Unit: bytes
  79. What: /sys/block/zram<id>/mem_used_total
  80. Date: August 2010
  81. Contact: Nitin Gupta <ngupta@vflare.org>
  82. Description:
  83. The mem_used_total file is read-only and specifies the amount
  84. of memory, including allocator fragmentation and metadata
  85. overhead, allocated for this disk. So, allocator space
  86. efficiency can be calculated using compr_data_size and this
  87. statistic.
  88. Unit: bytes