aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2014-04-07 15:38:07 -0700
committerSimon Shields <keepcalm444@gmail.com>2016-06-12 21:19:59 +1000
commitc20ebd785b1ce8e68f4f9eafdaf1ea1f7fa2eff8 (patch)
tree4fe4d1ba5668a4c5d655c96773cafd14db20b767 /Documentation
parent0af6b10ff713d6813006fcf2d26d59804e1da162 (diff)
downloadkernel_samsung_smdk4412-c20ebd785b1ce8e68f4f9eafdaf1ea1f7fa2eff8.zip
kernel_samsung_smdk4412-c20ebd785b1ce8e68f4f9eafdaf1ea1f7fa2eff8.tar.gz
kernel_samsung_smdk4412-c20ebd785b1ce8e68f4f9eafdaf1ea1f7fa2eff8.tar.bz2
zram: move zram size warning to documentation
Move zram warning about disksize and size of memory correlation to zram documentation. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Acked-by: Minchan Kim <minchan@kernel.org> Cc: Jerome Marchand <jmarchan@redhat.com> Cc: Nitin Gupta <ngupta@vflare.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/blockdev/zram.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/blockdev/zram.txt b/Documentation/blockdev/zram.txt
index 765d790..f82d084 100644
--- a/Documentation/blockdev/zram.txt
+++ b/Documentation/blockdev/zram.txt
@@ -35,6 +35,11 @@ Following shows a typical sequence of steps for using zram.
echo 512M > /sys/block/zram0/disksize
echo 1G > /sys/block/zram0/disksize
+Note:
+There is little point creating a zram of greater than twice the size of memory
+since we expect a 2:1 compression ratio. Note that zram uses about 0.1% of the
+size of the disk when not in use so a huge zram is wasteful.
+
3) Activate:
mkswap /dev/zram0
swapon /dev/zram0