diff options
author | Minchan Kim <minchan@kernel.org> | 2017-09-06 19:20:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-06 20:27:25 -0400 |
commit | 5a47074f0279421778f97b1b1e75686696a5f42a (patch) | |
tree | fd81ff3aaa8a707428ba2daadb66fc2c6b28c297 /Documentation/blockdev | |
parent | 8e654f8fbff52ac483fb69957222853d7e2fc588 (diff) |
zram: add config and doc file for writeback feature
This patch adds document and kconfig for using of writeback feature.
Link: http://lkml.kernel.org/r/1498459987-24562-10-git-send-email-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Juneho Choi <juno.choi@lge.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/blockdev')
-rw-r--r-- | Documentation/blockdev/zram.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/blockdev/zram.txt b/Documentation/blockdev/zram.txt index 4fced8a21307..257e65714c6a 100644 --- a/Documentation/blockdev/zram.txt +++ b/Documentation/blockdev/zram.txt | |||
@@ -168,6 +168,7 @@ max_comp_streams RW the number of possible concurrent compress operations | |||
168 | comp_algorithm RW show and change the compression algorithm | 168 | comp_algorithm RW show and change the compression algorithm |
169 | compact WO trigger memory compaction | 169 | compact WO trigger memory compaction |
170 | debug_stat RO this file is used for zram debugging purposes | 170 | debug_stat RO this file is used for zram debugging purposes |
171 | backing_dev RW set up backend storage for zram to write out | ||
171 | 172 | ||
172 | 173 | ||
173 | User space is advised to use the following files to read the device statistics. | 174 | User space is advised to use the following files to read the device statistics. |
@@ -231,5 +232,15 @@ line of text and contains the following stats separated by whitespace: | |||
231 | resets the disksize to zero. You must set the disksize again | 232 | resets the disksize to zero. You must set the disksize again |
232 | before reusing the device. | 233 | before reusing the device. |
233 | 234 | ||
235 | * Optional Feature | ||
236 | |||
237 | = writeback | ||
238 | |||
239 | With incompressible pages, there is no memory saving with zram. | ||
240 | Instead, with CONFIG_ZRAM_WRITEBACK, zram can write incompressible page | ||
241 | to backing storage rather than keeping it in memory. | ||
242 | User should set up backing device via /sys/block/zramX/backing_dev | ||
243 | before disksize setting. | ||
244 | |||
234 | Nitin Gupta | 245 | Nitin Gupta |
235 | ngupta@vflare.org | 246 | ngupta@vflare.org |