162306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/disksize
262306a36Sopenharmony_ciDate:		August 2010
362306a36Sopenharmony_ciContact:	Nitin Gupta <ngupta@vflare.org>
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci		The disksize file is read-write and specifies the disk size
662306a36Sopenharmony_ci		which represents the limit on the *uncompressed* worth of data
762306a36Sopenharmony_ci		that can be stored in this disk.
862306a36Sopenharmony_ci		Unit: bytes
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/initstate
1162306a36Sopenharmony_ciDate:		August 2010
1262306a36Sopenharmony_ciContact:	Nitin Gupta <ngupta@vflare.org>
1362306a36Sopenharmony_ciDescription:
1462306a36Sopenharmony_ci		The initstate file is read-only and shows the initialization
1562306a36Sopenharmony_ci		state of the device.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/reset
1862306a36Sopenharmony_ciDate:		August 2010
1962306a36Sopenharmony_ciContact:	Nitin Gupta <ngupta@vflare.org>
2062306a36Sopenharmony_ciDescription:
2162306a36Sopenharmony_ci		The reset file is write-only and allows resetting the
2262306a36Sopenharmony_ci		device. The reset operation frees all the memory associated
2362306a36Sopenharmony_ci		with this device.
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/max_comp_streams
2662306a36Sopenharmony_ciDate:		February 2014
2762306a36Sopenharmony_ciContact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
2862306a36Sopenharmony_ciDescription:
2962306a36Sopenharmony_ci		The max_comp_streams file is read-write and specifies the
3062306a36Sopenharmony_ci		number of backend's zcomp_strm compression streams (number of
3162306a36Sopenharmony_ci		concurrent compress operations).
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/comp_algorithm
3462306a36Sopenharmony_ciDate:		February 2014
3562306a36Sopenharmony_ciContact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
3662306a36Sopenharmony_ciDescription:
3762306a36Sopenharmony_ci		The comp_algorithm file is read-write and lets to show
3862306a36Sopenharmony_ci		available and selected compression algorithms, change
3962306a36Sopenharmony_ci		compression algorithm selection.
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/mem_used_max
4262306a36Sopenharmony_ciDate:		August 2014
4362306a36Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
4462306a36Sopenharmony_ciDescription:
4562306a36Sopenharmony_ci		The mem_used_max file is write-only and is used to reset
4662306a36Sopenharmony_ci		the counter of maximum memory zram have consumed to store
4762306a36Sopenharmony_ci		compressed data. For resetting the value, you should write
4862306a36Sopenharmony_ci		"0". Otherwise, you could see -EINVAL.
4962306a36Sopenharmony_ci		Unit: bytes
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/mem_limit
5262306a36Sopenharmony_ciDate:		August 2014
5362306a36Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
5462306a36Sopenharmony_ciDescription:
5562306a36Sopenharmony_ci		The mem_limit file is write-only and specifies the maximum
5662306a36Sopenharmony_ci		amount of memory ZRAM can use to store the compressed data.
5762306a36Sopenharmony_ci		The limit could be changed in run time and "0" means disable
5862306a36Sopenharmony_ci		the limit. No limit is the initial state.  Unit: bytes
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/compact
6162306a36Sopenharmony_ciDate:		August 2015
6262306a36Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
6362306a36Sopenharmony_ciDescription:
6462306a36Sopenharmony_ci		The compact file is write-only and trigger compaction for
6562306a36Sopenharmony_ci		allocator zrm uses. The allocator moves some objects so that
6662306a36Sopenharmony_ci		it could free fragment space.
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/io_stat
6962306a36Sopenharmony_ciDate:		August 2015
7062306a36Sopenharmony_ciContact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
7162306a36Sopenharmony_ciDescription:
7262306a36Sopenharmony_ci		The io_stat file is read-only and accumulates device's I/O
7362306a36Sopenharmony_ci		statistics not accounted by block layer. For example,
7462306a36Sopenharmony_ci		failed_reads, failed_writes, etc. File format is similar to
7562306a36Sopenharmony_ci		block layer statistics file format.
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/mm_stat
7862306a36Sopenharmony_ciDate:		August 2015
7962306a36Sopenharmony_ciContact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
8062306a36Sopenharmony_ciDescription:
8162306a36Sopenharmony_ci		The mm_stat file is read-only and represents device's mm
8262306a36Sopenharmony_ci		statistics (orig_data_size, compr_data_size, etc.) in a format
8362306a36Sopenharmony_ci		similar to block layer statistics file format.
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/debug_stat
8662306a36Sopenharmony_ciDate:		July 2016
8762306a36Sopenharmony_ciContact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
8862306a36Sopenharmony_ciDescription:
8962306a36Sopenharmony_ci		The debug_stat file is read-only and represents various
9062306a36Sopenharmony_ci		device's debugging info useful for kernel developers. Its
9162306a36Sopenharmony_ci		format is not documented intentionally and may change
9262306a36Sopenharmony_ci		anytime without any notice.
9362306a36Sopenharmony_ci
9462306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/backing_dev
9562306a36Sopenharmony_ciDate:		June 2017
9662306a36Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
9762306a36Sopenharmony_ciDescription:
9862306a36Sopenharmony_ci		The backing_dev file is read-write and set up backing
9962306a36Sopenharmony_ci		device for zram to write incompressible pages.
10062306a36Sopenharmony_ci		For using, user should enable CONFIG_ZRAM_WRITEBACK.
10162306a36Sopenharmony_ci
10262306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/idle
10362306a36Sopenharmony_ciDate:		November 2018
10462306a36Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
10562306a36Sopenharmony_ciDescription:
10662306a36Sopenharmony_ci		idle file is write-only and mark zram slot as idle.
10762306a36Sopenharmony_ci		If system has mounted debugfs, user can see which slots
10862306a36Sopenharmony_ci		are idle via /sys/kernel/debug/zram/zram<id>/block_state
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/writeback
11162306a36Sopenharmony_ciDate:		November 2018
11262306a36Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
11362306a36Sopenharmony_ciDescription:
11462306a36Sopenharmony_ci		The writeback file is write-only and trigger idle and/or
11562306a36Sopenharmony_ci		huge page writeback to backing device.
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/bd_stat
11862306a36Sopenharmony_ciDate:		November 2018
11962306a36Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
12062306a36Sopenharmony_ciDescription:
12162306a36Sopenharmony_ci		The bd_stat file is read-only and represents backing device's
12262306a36Sopenharmony_ci		statistics (bd_count, bd_reads, bd_writes) in a format
12362306a36Sopenharmony_ci		similar to block layer statistics file format.
12462306a36Sopenharmony_ci
12562306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/writeback_limit_enable
12662306a36Sopenharmony_ciDate:		November 2018
12762306a36Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
12862306a36Sopenharmony_ciDescription:
12962306a36Sopenharmony_ci		The writeback_limit_enable file is read-write and specifies
13062306a36Sopenharmony_ci		eanbe of writeback_limit feature. "1" means eable the feature.
13162306a36Sopenharmony_ci		No limit "0" is the initial state.
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/writeback_limit
13462306a36Sopenharmony_ciDate:		November 2018
13562306a36Sopenharmony_ciContact:	Minchan Kim <minchan@kernel.org>
13662306a36Sopenharmony_ciDescription:
13762306a36Sopenharmony_ci		The writeback_limit file is read-write and specifies the maximum
13862306a36Sopenharmony_ci		amount of writeback ZRAM can do. The limit could be changed
13962306a36Sopenharmony_ci		in run time.
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/recomp_algorithm
14262306a36Sopenharmony_ciDate:		November 2022
14362306a36Sopenharmony_ciContact:	Sergey Senozhatsky <senozhatsky@chromium.org>
14462306a36Sopenharmony_ciDescription:
14562306a36Sopenharmony_ci		The recomp_algorithm file is read-write and allows to set
14662306a36Sopenharmony_ci		or show secondary compression algorithms.
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ciWhat:		/sys/block/zram<id>/recompress
14962306a36Sopenharmony_ciDate:		November 2022
15062306a36Sopenharmony_ciContact:	Sergey Senozhatsky <senozhatsky@chromium.org>
15162306a36Sopenharmony_ciDescription:
15262306a36Sopenharmony_ci		The recompress file is write-only and triggers re-compression
15362306a36Sopenharmony_ci		with secondary compression algorithms.
154