ZRAMCTL - Online Linux Manual Page

Section : 8
Updated : 2022-05-11
Source : util−linux 2.38.1
Note : System Administration
ß.nh . am URL . . . am MTO . . . LINKSTYLE blue R < >
NAMEzramctl − set up and control zram devices

SYNOPSISGet info: zramctl [options] Reset zram: zramctl −r zramdev... Print name of first unused zram device: zramctl −f Set up a zram device: zramctl [−f | zramdev] [−s size] [−t number] [−a algorithm]

DESCRIPTIONzramctl is used to quickly set up zram device parameters, to reset zram devices, and to query the status of used zram devices. If no option is given, all non−zero size zram devices are shown. Note that zramdev node specified on command line has to already exist. The command zramctl creates a new /dev/zram<N> nodes only when −−find option specified. Its possible (and common) that after system boot /dev/zram<N> nodes are not created yet.

OPTIONS−a, −−algorithm lzo|lz4|lz4hc|deflate|842|zstd Set the compression algorithm to be used for compressing data in the zram device. −f, −−find Find the first unused zram device. If a −−size argument is present, then initialize the device. −n, −−noheadings Do not print a header line in status output. −o, −−output list Define the status output columns to be used. If no output arrangement is specified, then a default set is used. Use −−help to get a list of all supported columns. −−output−all Output all available columns. −−raw Use the raw format for status output. −r, −−reset Reset the options of the specified zram device(s). Zram device settings can be changed only after a reset. −s, −−size size Create a zram device of the specified size. Zram devices are aligned to memory pages; when the requested size is not a multiple of the page size, it will be rounded up to the next multiple. When not otherwise specified, the unit of the size parameter is bytes. The size argument may be followed by the multiplicative suffixes KiB (=1024), MiB (=1024*1024), and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the "iB" is optional, e.g., "K" has the same meaning as "KiB") or the suffixes KB (=1000), MB (=1000*1000), and so on for GB, TB, PB, EB, ZB and YB. −t, −−streams number Set the maximum number of compression streams that can be used for the device. The default is use all CPUs and one stream for kernels older than 4.6. −h, −−help Display help text and exit. −V, −−version Print version and exit.

EXIT STATUSzramctl returns 0 on success, nonzero on failure.

FILES/dev/zram[0..N] zram block devices

EXAMPLEThe following commands set up a zram device with a size of one gigabyte and use it as swap device. .fam C # zramctl −−find −−size 1024M /dev/zram0 # mkswap /dev/zram0 # swapon /dev/zram0 ... # swapoff /dev/zram0 # zramctl −−reset /dev/zram0 .fam

AUTHORSTimofey Titovets <nefelim4ag@gmail.com>, Karel Zak <kzak@redhat.com>

SEE ALSOLinux kernel documentation <http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin−guide/blockdev/zram.rst>

REPORTING BUGSFor bug reports, use the issue tracker at <https://github.com/util−linux/util−linux/issues>.

AVAILABILITYThe zramctl command is part of the util−linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util−linux/>.

Johanes Gumabo
Data Size   :   17,171 byte man-zramctl.8Build   :   2025-03-22, 13:26   :  
Visitor Screen   :   1280 x 720
Visitor Counter ( page / site )   :   16 / 1,438,694
Visitor ID   :     :  
Visitor IP   :   3.14.136.92   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_nr_xxx|123|zramctl.8|13|\n[.ss] 0 |.ss \n[.ss] 0 )         (parse_manual_page_|254|zramctl.8|22|am|. am URL )         (parse_manual_page_|254|zramctl.8|24|.|. . )         (parse_manual_page_|254|zramctl.8|25|am|. am MTO )         (parse_manual_page_|254|zramctl.8|27|.|. . )         (parse_manual_page_|254|zramctl.8|28|LINKSTYLE|. LINKSTYLE blue R < > )         (parse_manual_page_|254|zramctl.8|133|fam|.fam C )         (parse_manual_page_|254|zramctl.8|141|fam|.fam )