zram: zram memory size limitation
[firefly-linux-kernel-4.4.55.git] / Documentation / ABI / testing / sysfs-block-zram
index 2775966c2d12ce74c14bb9143e74641a519e4fb2..f861cbfab6b1a9590963d594c2f28f3de1998ed8 100644 (file)
@@ -127,3 +127,12 @@ Description:
                efficiency can be calculated using compr_data_size and this
                statistic.
                Unit: bytes
+
+What:          /sys/block/zram<id>/mem_limit
+Date:          August 2014
+Contact:       Minchan Kim <minchan@kernel.org>
+Description:
+               The mem_limit file is read/write and specifies the maximum
+               amount of memory ZRAM can use to store the compressed data.  The
+               limit could be changed in run time and "0" means disable the
+               limit.  No limit is the initial state.  Unit: bytes