OS Manuals

/usr/bin/zramctl

Misc binaries for util-linux

From util-linux-misc 2.42.4-r2 (os), captured 2026-11-05 by running zramctl --help (exit 0). permalink

Usage:
 zramctl [options] <device>
 zramctl -r <device> [...]
 zramctl [options] -f | <device> -s <size>

Set up and control zram devices.

Options:
 -a, --algorithm <alg>     compression algorithm to use
 -b, --bytes               print sizes in bytes, not in human-readable form
 -f, --find                find a free device
 -n, --noheadings          don't print headings
 -o, --output <list>       columns to use for status output
     --output-all          output all columns
 -p, --algorithm-params <parameter>...
                           parameters for the compression algorithm
 -r, --reset <device>...   reset the specified zram devices
     --raw                 use raw status output format
 -s, --size <size>         device size
 -t, --streams <number>    number of compression streams

 -h, --help                display this help
 -V, --version             display version

Arguments:
 Values for <size> may be followed by a suffix: KiB, MiB,
 GiB, TiB, PiB, EiB, ZiB, or YiB (where the "iB" is optional).
 <alg> is the name of an algorithm; supported are:
   lzo, lz4, lz4hc, deflate, 842, zstd
   (List may be inaccurate, consult man page.)

Available output columns:
        NAME  zram device name
    DISKSIZE  limit on the uncompressed amount of data
        DATA  uncompressed size of stored data
       COMPR  compressed size of stored data
   ALGORITHM  the selected compression algorithm
     STREAMS  number of concurrent compress operations
  ZERO-PAGES  empty pages with no allocated memory
       TOTAL  all memory including allocator fragmentation and metadata overhead
   MEM-LIMIT  memory limit used to store compressed data
    MEM-USED  peak memory usage to store compressed data
    MIGRATED  number of objects migrated by compaction
  COMP-RATIO  compression ratio: DATA/TOTAL
  MOUNTPOINT  where the device is mounted

For more details see zramctl(8).
Options (13)
OptionDescriptionSource
-a, --algorithm algSet the compression algorithm to be used for compressing data in the zram device.help + man
-b, --bytesPrint sizes in bytes, not in human-readable format.help + man
-f, --findFind the first unused zram device.help + man
-n, --noheadingsDo not print a header line in status output.help + man
-o, --output listDefine the status output columns to be used.help + man
--output-allOutput all available columns.help + man
-p, --algorithm-params parameter>...Specify the parameters for the selected compression algorithm.help + man
-r, --reset device>...Reset the specified zram device(s).help + man
--rawUse the raw format for status output.help + man
-s, --size sizeCreate a zram device of the specified size.help + man
-t, --streams numberSet the maximum number of compression streams that can be used for the device.help + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man
Exit status (1) from the manual page
0success
Examples (1) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.