ZRAMCTL(8) ZRAMCTL(8) zramctl - zram : zramctl [] zram: zramctl -r -zram... zram: zramctl -f zram: zramctl [-f | -zram] [-s ] [-t ] [-a ] zramctl zram, zram zram. , zram . , -zram, , . zramctl /dev/zram, --find. ( ), /dev/zram . -a, --algorithm lzo|lz4|lz4hc|deflate|842|zstd , zram. The list of supported algorithms could be inaccurate as it depends on the current kernel configuration. A basic overview can be obtained by using the command "cat /sys/block/zram0/comp_algorithm"; however, please note that this list might also be incomplete. This is due to the fact that ZRAM utilizes the Crypto API, and if certain algorithms were built as modules, it becomes impossible to enumerate all of them. -f, --find zram. --size, . -n, --noheadings . -o, --output , . , . --help, . , + (, zramctl -o+COMP-RATIO). -p, --algorithm-params Set the algorithm parameters, for example, level=9 dict=/etc/dictionary to set compression level and pre-trained dictionary. Parameters are algorithm specific. --output-all . --raw . -r, --reset zram. zram . -s, --size zram . zram '; , . , . KiB (=1024), MiB (=1024*1024) GiB, TiB, PiB, EiB, ZiB YiB ( <> ', , <> , <>) KB (=1000), MB (=1000*1000) GB, TB, PB, EB, ZB YB. -t, --streams , . , 4.6. -h, --help . -V, --version . zramctl 0, , , . /dev/zram[0..N] zram zram '. # zramctl --find --size 1024M /dev/zram0 # mkswap /dev/zram0 # swapon /dev/zram0 ... # swapoff /dev/zram0 # zramctl --reset /dev/zram0 Timofey Titovets , Karel Zak Linux zramctl util-linux, Linux . util-linux 2.41 2025-03-29 ZRAMCTL(8)