CHMEM - Online Linux Manual PageSection : 8
Updated : 2022-05-11
Source : util−linux 2.38.1
Note : System Administration
ß.nh . am URL . . . am MTO . . . LINKSTYLE blue R < >
NAMEchmem − configure memory
SYNOPSISchmem [−h] [−V*] [−v] [−e|−d] [SIZE|RANGE −b BLOCKRANGE] [−z ZONE]
DESCRIPTIONThe chmem command sets a particular size or range of memory online or offline. • Specify SIZE as <size>[m|M|g|G]. With m or M, <size> specifies the memory size in MiB (1024 x 1024 bytes). With g or G, <size> specifies the memory size in GiB (1024 x 1024 x 1024 bytes). The default unit is MiB. • Specify RANGE in the form 0x<start>−0x<end> as shown in the output of the lsmem(1) command. <start> is the hexadecimal address of the first byte and <end> is the hexadecimal address of the last byte in the memory range. • Specify BLOCKRANGE in the form <first>−<last> or <block> as shown in the output of the lsmem(1) command. <first> is the number of the first memory block and <last> is the number of the last memory block in the memory range. Alternatively a single block can be specified. BLOCKRANGE requires the −−blocks option. • Specify ZONE as the name of a memory zone, as shown in the output of the lsmem −o +ZONES command. The output shows one or more valid memory zones for each memory range. If multiple zones are shown, then the memory range currently belongs to the first zone. By default, chmem will set memory online to the zone Movable, if this is among the valid zones. This default can be changed by specifying the −−zone option with another valid zone. For memory ballooning, it is recommended to select the zone Movable for memory online and offline, if possible. Memory in this zone is much more likely to be able to be offlined again, but it cannot be used for arbitrary kernel allocations, only for migratable pages (e.g., anonymous and page cache pages). Use the −−help option to see all available zones. SIZE and RANGE must be aligned to the Linux memory block size, as shown in the output of the lsmem(1) command. Setting memory online can fail for various reasons. On virtualized systems it can fail if the hypervisor does not have enough memory left, for example because memory was overcommitted. Setting memory offline can fail if Linux cannot free the memory. If only part of the requested memory can be set online or offline, a message tells you how much memory was set online or offline instead of the requested amount. When setting memory online chmem starts with the lowest memory block numbers. When setting memory offline chmem starts with the highest memory block numbers.
OPTIONS−b, −−blocks Use a BLOCKRANGE parameter instead of RANGE or SIZE for the −−enable and −−disable options. −d, −−disable Set the specified RANGE, SIZE, or BLOCKRANGE of memory offline. −e, −−enable Set the specified RANGE, SIZE, or BLOCKRANGE of memory online. −z, −−zone Select the memory ZONE where to set the specified RANGE, SIZE, or BLOCKRANGE of memory online or offline. By default, memory will be set online to the zone Movable, if possible. −v, −−verbose Verbose mode. Causes chmem to print debugging messages about it’s progress. −h, −−help Display help text and exit. −V, −−version Print version and exit.
EXIT STATUSchmem has the following exit status values: 0 success 1 failure 64 partial success
EXAMPLEchmem −−enable 1024 This command requests 1024 MiB of memory to be set online. chmem −e 2g This command requests 2 GiB of memory to be set online. chmem −−disable 0x00000000e4000000−0x00000000f3ffffff This command requests the memory range starting with 0x00000000e4000000 and ending with 0x00000000f3ffffff to be set offline. chmem −b −d 10 This command requests the memory block number 10 to be set offline.
SEE ALSOlsmem(1)
REPORTING BUGSFor bug reports, use the issue tracker at <https://github.com/util−linux/util−linux/issues>.
AVAILABILITYThe chmem 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/>. 0
Johanes Gumabo
Data Size : 19,252 byte
man-chmem.8Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 236,198
Visitor ID : :
Visitor IP : 52.14.223.136 :
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 - 24.12.05
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 johanes_gumabo@yahoo.co.id .
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|chmem.8|13|\n[.ss] 0 |.ss \n[.ss] 0
) (parse_manual_page_|249|chmem.8|22|am|. am URL
) (parse_manual_page_|249|chmem.8|24|.|. .
) (parse_manual_page_|249|chmem.8|25|am|. am MTO
) (parse_manual_page_|249|chmem.8|27|.|. .
) (parse_manual_page_|249|chmem.8|28|LINKSTYLE|. LINKSTYLE blue R < >
)