Man page - chmem(8)
Packages contas this manual
- x86_64(8)
- terminal-colors.d(5)
- getty(8)
- blkid(8)
- scols-filter(5)
- lslocks(8)
- chmem(8)
- uclampset(1)
- blkzone(8)
- whereis(1)
- linux32(8)
- chrt(1)
- isosize(8)
- runuser(1)
- rev(1)
- rtcwake(8)
- zramctl(8)
- mkswap(8)
- blockdev(8)
- ipcrm(1)
- adjtime_config(5)
- readprofile(8)
- setterm(1)
- lsns(8)
- fsck(8)
- setpriv(1)
- lsipc(1)
- ipcmk(1)
- setsid(1)
- wdctl(8)
- fsfreeze(8)
- agetty(8)
- mountpoint(1)
- fstrim(8)
- ionice(1)
- choom(1)
- i386(8)
- unshare(1)
- sulogin(8)
- nsenter(1)
- mcookie(1)
- linux64(8)
- flock(1)
- blkdiscard(8)
- ipcs(1)
- partx(8)
- hardlink(1)
- swaplabel(8)
- ldattach(8)
- su(1)
- chcpu(8)
- setarch(8)
- wipefs(8)
- dmesg(1)
- lslogins(1)
- lscpu(1)
- fallocate(1)
- findmnt(8)
- namei(1)
- switch_root(8)
- more(1)
- taskset(1)
- getopt(1)
- rename.ul(1)
- lsmem(1)
- prlimit(1)
- findfs(8)
- lsblk(8)
- mkfs(8)
- pivot_root(8)
apt-get install util-linux
Available languages:
en uk ro sr deManual
| CHMEM(8) | System Administration | CHMEM(8) |
NAME
chmem - configure memory
SYNOPSIS
chmem [-h] [-V*] [-v] [-e|-d] [SIZE|RANGE -b BLOCKRANGE] [-z ZONE]
DESCRIPTION
The chmem command sets a particular size or range of memory online or offline.
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
-d, --disable
-e, --enable
-z, --zone
-v, --verbose
-h, --help
-V, --version
EXIT STATUS
chmem has the following exit status values:
0
1
64
EXAMPLE
chmem --enable 1024
chmem -e 2g
chmem --disable 0x00000000e4000000-0x00000000f3ffffff
chmem -b -d 10
SEE ALSO
lsmem(1)
REPORTING BUGS
For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.
AVAILABILITY
The 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/>.
| 2025-02-26 | util-linux 2.41 |