18c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/disksize
28c2ecf20Sopenharmony_ciDate:		August 2010
38c2ecf20Sopenharmony_ciContact:	Nitin Gupta <ngupta@vflare.org>
48c2ecf20Sopenharmony_ciDescription:
58c2ecf20Sopenharmony_ci		The disksize file is read-write and specifies the disk size
68c2ecf20Sopenharmony_ci		which represents the limit on the *uncompressed* worth of data
78c2ecf20Sopenharmony_ci		that can be stored in this disk.
88c2ecf20Sopenharmony_ci		Unit: bytes
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/initstate
118c2ecf20Sopenharmony_ciDate:		August 2010
128c2ecf20Sopenharmony_ciContact:	Nitin Gupta <ngupta@vflare.org>
138c2ecf20Sopenharmony_ciDescription:
148c2ecf20Sopenharmony_ci		The initstate file is read-only and shows the initialization
158c2ecf20Sopenharmony_ci		state of the device.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/reset
188c2ecf20Sopenharmony_ciDate:		August 2010
198c2ecf20Sopenharmony_ciContact:	Nitin Gupta <ngupta@vflare.org>
208c2ecf20Sopenharmony_ciDescription:
218c2ecf20Sopenharmony_ci		The reset file is write-only and allows resetting the
228c2ecf20Sopenharmony_ci		device. The reset operation frees all the memory associated
238c2ecf20Sopenharmony_ci		with this device.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/max_comp_streams
268c2ecf20Sopenharmony_ciDate:		February 2014
278c2ecf20Sopenharmony_ciContact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
288c2ecf20Sopenharmony_ciDescription:
298c2ecf20Sopenharmony_ci		The max_comp_streams file is read-write and specifies the
308c2ecf20Sopenharmony_ci		number of backend's zcomp_strm compression streams (number of
318c2ecf20Sopenharmony_ci		concurrent compress operations).
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/comp_algorithm
348c2ecf20Sopenharmony_ciDate:		February 2014
358c2ecf20Sopenharmony_ciContact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
368c2ecf20Sopenharmony_ciDescription:
378c2ecf20Sopenharmony_ci		The comp_algorithm file is read-write and lets to show
388c2ecf20Sopenharmony_ci		available and selected compression algorithms, change
398c2ecf20Sopenharmony_ci		compression algorithm selection.
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/mem_used_max
428c2ecf20Sopenharmony_ciDate:		August 2014
438c2ecf20Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
448c2ecf20Sopenharmony_ciDescription:
458c2ecf20Sopenharmony_ci		The mem_used_max file is write-only and is used to reset
468c2ecf20Sopenharmony_ci		the counter of maximum memory zram have consumed to store
478c2ecf20Sopenharmony_ci		compressed data. For resetting the value, you should write
488c2ecf20Sopenharmony_ci		"0". Otherwise, you could see -EINVAL.
498c2ecf20Sopenharmony_ci		Unit: bytes
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/mem_limit
528c2ecf20Sopenharmony_ciDate:		August 2014
538c2ecf20Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
548c2ecf20Sopenharmony_ciDescription:
558c2ecf20Sopenharmony_ci		The mem_limit file is write-only and specifies the maximum
568c2ecf20Sopenharmony_ci		amount of memory ZRAM can use to store the compressed data.
578c2ecf20Sopenharmony_ci		The limit could be changed in run time and "0" means disable
588c2ecf20Sopenharmony_ci		the limit. No limit is the initial state.  Unit: bytes
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/compact
618c2ecf20Sopenharmony_ciDate:		August 2015
628c2ecf20Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
638c2ecf20Sopenharmony_ciDescription:
648c2ecf20Sopenharmony_ci		The compact file is write-only and trigger compaction for
658c2ecf20Sopenharmony_ci		allocator zrm uses. The allocator moves some objects so that
668c2ecf20Sopenharmony_ci		it could free fragment space.
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/io_stat
698c2ecf20Sopenharmony_ciDate:		August 2015
708c2ecf20Sopenharmony_ciContact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
718c2ecf20Sopenharmony_ciDescription:
728c2ecf20Sopenharmony_ci		The io_stat file is read-only and accumulates device's I/O
738c2ecf20Sopenharmony_ci		statistics not accounted by block layer. For example,
748c2ecf20Sopenharmony_ci		failed_reads, failed_writes, etc. File format is similar to
758c2ecf20Sopenharmony_ci		block layer statistics file format.
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/mm_stat
788c2ecf20Sopenharmony_ciDate:		August 2015
798c2ecf20Sopenharmony_ciContact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
808c2ecf20Sopenharmony_ciDescription:
818c2ecf20Sopenharmony_ci		The mm_stat file is read-only and represents device's mm
828c2ecf20Sopenharmony_ci		statistics (orig_data_size, compr_data_size, etc.) in a format
838c2ecf20Sopenharmony_ci		similar to block layer statistics file format.
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/debug_stat
868c2ecf20Sopenharmony_ciDate:		July 2016
878c2ecf20Sopenharmony_ciContact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
888c2ecf20Sopenharmony_ciDescription:
898c2ecf20Sopenharmony_ci		The debug_stat file is read-only and represents various
908c2ecf20Sopenharmony_ci		device's debugging info useful for kernel developers. Its
918c2ecf20Sopenharmony_ci		format is not documented intentionally and may change
928c2ecf20Sopenharmony_ci		anytime without any notice.
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/backing_dev
958c2ecf20Sopenharmony_ciDate:		June 2017
968c2ecf20Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
978c2ecf20Sopenharmony_ciDescription:
988c2ecf20Sopenharmony_ci		The backing_dev file is read-write and set up backing
998c2ecf20Sopenharmony_ci		device for zram to write incompressible pages.
1008c2ecf20Sopenharmony_ci		For using, user should enable CONFIG_ZRAM_WRITEBACK.
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/idle
1038c2ecf20Sopenharmony_ciDate:		November 2018
1048c2ecf20Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
1058c2ecf20Sopenharmony_ciDescription:
1068c2ecf20Sopenharmony_ci		idle file is write-only and mark zram slot as idle.
1078c2ecf20Sopenharmony_ci		If system has mounted debugfs, user can see which slots
1088c2ecf20Sopenharmony_ci		are idle via /sys/kernel/debug/zram/zram<id>/block_state
1098c2ecf20Sopenharmony_ci
1108c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/writeback
1118c2ecf20Sopenharmony_ciDate:		November 2018
1128c2ecf20Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
1138c2ecf20Sopenharmony_ciDescription:
1148c2ecf20Sopenharmony_ci		The writeback file is write-only and trigger idle and/or
1158c2ecf20Sopenharmony_ci		huge page writeback to backing device.
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/bd_stat
1188c2ecf20Sopenharmony_ciDate:		November 2018
1198c2ecf20Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
1208c2ecf20Sopenharmony_ciDescription:
1218c2ecf20Sopenharmony_ci		The bd_stat file is read-only and represents backing device's
1228c2ecf20Sopenharmony_ci		statistics (bd_count, bd_reads, bd_writes) in a format
1238c2ecf20Sopenharmony_ci		similar to block layer statistics file format.
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/writeback_limit_enable
1268c2ecf20Sopenharmony_ciDate:		November 2018
1278c2ecf20Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
1288c2ecf20Sopenharmony_ciDescription:
1298c2ecf20Sopenharmony_ci		The writeback_limit_enable file is read-write and specifies
1308c2ecf20Sopenharmony_ci		eanbe of writeback_limit feature. "1" means eable the feature.
1318c2ecf20Sopenharmony_ci		No limit "0" is the initial state.
1328c2ecf20Sopenharmony_ci
1338c2ecf20Sopenharmony_ciWhat:		/sys/block/zram<id>/writeback_limit
1348c2ecf20Sopenharmony_ciDate:		November 2018
1358c2ecf20Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
1368c2ecf20Sopenharmony_ciDescription:
1378c2ecf20Sopenharmony_ci		The writeback_limit file is read-write and specifies the maximum
1388c2ecf20Sopenharmony_ci		amount of writeback ZRAM can do. The limit could be changed
1398c2ecf20Sopenharmony_ci		in run time.
140