How to activate extended RAM in RedHat vmware guest

When the RAM in extended in a Red Hat OS  the new extended memory may not me seen in the OS , the below steps explain how to make newly  extended RAM accessible by the OS without a reboot.


Note: convention used

commands are shown starting with “#”in bold  description/results of a command are shown as “##” in italics

something like this

#command    ##description/result  of a command


listing available memory blocks and their state

#grep line /sys/devices/system/memory/*/state



a few memory blocks which shows up as offline indicates newly extended RAM, we have to activate it for OS to recognize and use it.

echo “online” into the files which are shown as offline.
#echo online > /sys/devices/system/memory/memory9/state
it doesn’t hurt to do it on all the files also which can be done by a simple script

# ls -1 /sys/devices/system/memory/*/state > /tmp/file.txt ## will dump each file name per line in file.txt
# for i in /tmp/file.txt ; do echo online > $i; done
#free -m ##now newly added memory can be seen

Leave a Reply

Your email address will not be published. Required fields are marked *