diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2014-04-07 18:38:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 19:36:00 -0400 |
commit | e64cd51d2fa87733176246101df871a8ac5c7c20 (patch) | |
tree | 45e18d7863479c0c26504499025c115a57779b7c /Documentation/blockdev | |
parent | 59fc86a4922f1a1c0f69eac758a7e2b2b138aab4 (diff) |
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/blockdev')
-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 2eccddffa6c8..393541be1ec0 100644 --- a/Documentation/blockdev/zram.txt +++ b/Documentation/blockdev/zram.txt | |||
@@ -33,6 +33,11 @@ Following shows a typical sequence of steps for using zram. | |||
33 | echo 512M > /sys/block/zram0/disksize | 33 | echo 512M > /sys/block/zram0/disksize |
34 | echo 1G > /sys/block/zram0/disksize | 34 | echo 1G > /sys/block/zram0/disksize |
35 | 35 | ||
36 | Note: | ||
37 | There is little point creating a zram of greater than twice the size of memory | ||
38 | since we expect a 2:1 compression ratio. Note that zram uses about 0.1% of the | ||
39 | size of the disk when not in use so a huge zram is wasteful. | ||
40 | |||
36 | 3) Activate: | 41 | 3) Activate: |
37 | mkswap /dev/zram0 | 42 | mkswap /dev/zram0 |
38 | swapon /dev/zram0 | 43 | swapon /dev/zram0 |