chmem
Modify the state of memory blocks (online or offline) in a Linux system. tldr-pages
On Linux
Linux
Modify the state of memory blocks (online or offline) in a Linux system. Typically used in virtualized environments to manage memory hotplug.
Set a memory block offline
sudo chmem --block --disable block_numberIdentifySet a memory block online
sudo chmem --block --enable block_numberIdentifySet a memory range offline using hexadecimal addresses
sudo chmem --disable 0xstart_address-0xend_addressIdentifySet a memory range online using hexadecimal addresses
sudo chmem --enable 0xstart_address-0xend_addressIdentifySet memory online and assign it to a specific zone (e.g., Movable)
sudo chmem --enable 0xstart_address --zone MovableIdentifyDisplay help
chmem --helpIdentify