logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

zramswap - configure swap on zram

Authors

       This manual page was written by Jonathan Carter <jcarter@linux.com>

zramswap                                           2018-10-04                                        zramswap(1)

Description

       zram is a Linux feature that allows a user to create compressed ramdisks.

       zramswap sets up swap in zram, which effectively allows you to compress memory.

       Common use cases:

       On  machines with low memory, mitigates the tedious situation where the machine is out of memory and then
       it starts swapping to disk only to lose a large amount of disk bandwidth.

       On machines where the main swap file is on flash memory, zramswap may only provide  marginal  performance
       increase  (especially  on  fast  SSD  media),  however, it will prevent some amount of wear on your flash
       memory. zramswap is especially beneficial if your main flash is on SD/MMC/CF card.

       On servers that run many virtual machines or containers, zramswap allows you to optimise memory usage  by
       swapping  out  data  that's  not often accessed, but when a user needs to access it, it will be available
       fast. It allows you to overcommit on memory with a negligible hit on your  application  performance  (and
       often an improvement in performance where you can use more main memory for filesystem cache).

Name

       zramswap - configure swap on zram

Options

       Usage: zramswap [OPTION]

       ZRAMSWAPOptionsstart
              Sets up zram swap.

        stop
              Tears down zram swap.

        status
              Displays zram swap usage and compression ratio.

Reporting Bugs

       Please file issues at: https://salsa.debian.org/jcc/zram-tools/issues

Synopsis

zramswap [OPTION]

See Also