1 What: /sys/block/zram<id>/disksize
3 Contact: Nitin Gupta <ngupta@vflare.org>
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.
9 What: /sys/block/zram<id>/initstate
11 Contact: Nitin Gupta <ngupta@vflare.org>
13 The disksize file is read-only and shows the initialization
16 What: /sys/block/zram<id>/reset
18 Contact: Nitin Gupta <ngupta@vflare.org>
20 The disksize file is write-only and allows resetting the
21 device. The reset operation frees all the memory assocaited
24 What: /sys/block/zram<id>/num_reads
26 Contact: Nitin Gupta <ngupta@vflare.org>
28 The num_reads file is read-only and specifies the number of
29 reads (failed or successful) done on this device.
31 What: /sys/block/zram<id>/num_writes
33 Contact: Nitin Gupta <ngupta@vflare.org>
35 The num_writes file is read-only and specifies the number of
36 writes (failed or successful) done on this device.
38 What: /sys/block/zram<id>/invalid_io
40 Contact: Nitin Gupta <ngupta@vflare.org>
42 The invalid_io file is read-only and specifies the number of
43 non-page-size-aligned I/O requests issued to this device.
45 What: /sys/block/zram<id>/notify_free
47 Contact: Nitin Gupta <ngupta@vflare.org>
49 The notify_free file is read-only and specifies the number of
50 swap slot free notifications received by this device. These
51 notifications are send to a swap block device when a swap slot
52 is freed. This statistic is applicable only when this disk is
53 being used as a swap disk.
55 What: /sys/block/zram<id>/discard
57 Contact: Nitin Gupta <ngupta@vflare.org>
59 The discard file is read-only and specifies the number of
60 discard requests received by this device. These requests
61 provide information to block device regarding blocks which are
62 no longer used by filesystem.
64 What: /sys/block/zram<id>/zero_pages
66 Contact: Nitin Gupta <ngupta@vflare.org>
68 The zero_pages file is read-only and specifies number of zero
69 filled pages written to this disk. No memory is allocated for
72 What: /sys/block/zram<id>/orig_data_size
74 Contact: Nitin Gupta <ngupta@vflare.org>
76 The orig_data_size file is read-only and specifies uncompressed
77 size of data stored in this disk. This excludes zero-filled
78 pages (zero_pages) since no memory is allocated for them.
81 What: /sys/block/zram<id>/compr_data_size
83 Contact: Nitin Gupta <ngupta@vflare.org>
85 The compr_data_size file is read-only and specifies compressed
86 size of data stored in this disk. So, compression ratio can be
87 calculated using orig_data_size and this statistic.
90 What: /sys/block/zram<id>/mem_used_total
92 Contact: Nitin Gupta <ngupta@vflare.org>
94 The mem_used_total file is read-only and specifies the amount
95 of memory, including allocator fragmentation and metadata
96 overhead, allocated for this disk. So, allocator space
97 efficiency can be calculated using compr_data_size and this