Hot add memory
After increasing memory through vCloud Director this is not reflected on the Flatcar OS. Use the lsmem
command to show memory state.
Show memory state
lsmem
RANGE SIZE STATE REMOVABLE BLOCK
0x0000000000000000-0x00000000bfffffff 3G online yes 0-23
0x0000000100000000-0x000000023fffffff 5G online yes 32-71
Memory block size: 128M
Total online memory: 8G
Total offline memory: 0B
See part of the memory segments is still offline.
cat /sys/devices/system/memory/memory*/state
online
online
online
online
online
...
online
Hot add memory
Hot-add memory to the system :
grep -l offline /sys/devices/system/memory/memory*/state|while read line; do echo online > ${line};done
lsmem
free -h