]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - Documentation/ABI/testing/sysfs-block-zram
zram: support compaction
[karo-tx-linux.git] / Documentation / ABI / testing / sysfs-block-zram
index a6148eaf91e5f32f43b8448a7ec0ee16677c83eb..bede9028a5a0d3e7ebbc1f2dfeab08d58828b4cd 100644 (file)
@@ -141,3 +141,18 @@ Description:
                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
+
+What:          /sys/block/zram<id>/compact
+Date:          August 2015
+Contact:       Minchan Kim <minchan@kernel.org>
+Description:
+               The compact file is write-only and trigger compaction for
+               allocator zrm uses. The allocator moves some objects so that
+               it could free fragment space.
+
+What:          /sys/block/zram<id>/num_migrated
+Date:          August 2015
+Contact:       Minchan Kim <minchan@kernel.org>
+Description:
+               The compact file is read-only and shows how many object
+               migrated by compaction.