diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2014-04-07 15:38:07 -0700 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-01-05 18:21:37 +0100 |
commit | fd452e40e07151e5a6d0df1bf3dc7c30b8af1ce3 (patch) | |
tree | 9c8cf41534807ca76c75190a0141e36e058ea849 /Documentation | |
parent | 3436f00b3bee80b6fc792d21dce1de1c2e2c549f (diff) | |
download | kernel_samsung_tuna-fd452e40e07151e5a6d0df1bf3dc7c30b8af1ce3.zip kernel_samsung_tuna-fd452e40e07151e5a6d0df1bf3dc7c30b8af1ce3.tar.gz kernel_samsung_tuna-fd452e40e07151e5a6d0df1bf3dc7c30b8af1ce3.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.txt | 5 |
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 |