Questo post spiega come utilizzare memory hotplug per aumentare/diminuire la quantità di memoria.
Per vedere (online/offline) la sezione dello stato della memoria, leggere il file "stato".
# grep line /sys/devices/system/memory/*/state /sys/devices/system/memory/memory0/state:online /sys/devices/system/memory/memory1/state:online /sys/devices/system/memory/memory2/state:online /sys/devices/system/memory/memory3/state:online /sys/devices/system/memory/memory4/state:online
Per impostare una memoria[x] a online/offline:
# echo online > /sys/devices/system/memory/memory[number]/state # echo offline > /sys/devices/system/memory/memory[number]/state
Per verificare lo stato attuale:
# free -m
Maggiori dettagli sono disponibili su:/usr/share/doc/kernel-doc-*/Documentation/memory-hotplug.txt