zramctl
linux
Setup and control zram devices. Use `mkfs` or `mkswap` to format zram devices to partitions.
More info →Options (4)
-i, --ignore-casebooleanCheck if zram is enabled
Example:
lsmod | grep {{[-i|--ignore-case]}} zram-f, --findbooleanFind and initialize the next free zram device to a 2 GB virtual drive using LZ4 compression
Example:
sudo zramctl {{[-f|--find]}} {{[-s|--size]}} {{2GB}} {{[-a|--algorithm]}} {{lz4}}-s, --sizebooleanFind and initialize the next free zram device to a 2 GB virtual drive using LZ4 compression
Example:
sudo zramctl {{[-f|--find]}} {{[-s|--size]}} {{2GB}} {{[-a|--algorithm]}} {{lz4}}-a, --algorithmbooleanFind and initialize the next free zram device to a 2 GB virtual drive using LZ4 compression
Example:
sudo zramctl {{[-f|--find]}} {{[-s|--size]}} {{2GB}} {{[-a|--algorithm]}} {{lz4}}Examples (5)
Enable zram with a dynamic number of devices (use `zramctl` to configure devices further)
Find and initialize the next free zram device to a 2 GB virtual drive using LZ4 compression
made by @shridhargupta | data from tldr-pages