CentOS only detecting 50% of ram

Posted on

CentOS only detecting 50% of ram – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, centos, memory, , .

I have 16GB ram in my machine. Before, free -m outputted the normal 16 GB ram, however now (after a reboot) it only detects 8 GB ram. Is one ram module damaged?

grep -i memory /var/log/dmesg outputs

Memory: 15621184k/16017200k available (2535k kernel code, 387120k reserved, 1748k data, 196k init). (Which looks like 16 GB to me).

free -m outputs:

              total       used       free     shared    buffers     cached
Mem:          7484       7415         68          0       6104        524
-/+ buffers/cache:        786       6697
Swap:         2055          0       2054

Anything I might be missing?

Thanks in advance.

Solution :

Wait wait – you say “I’m using the server as a Xen HVM (DomU)”.

Do you mean that this domain is dom0 (the main instance)?

If so, then yes, your dom0 memory shrinks when you start up domU domains.

Use xentop to see how much memory is actually there and to whom it’s allocated.

To change the allocation, use the command:

xm mem-set <domainid> <memorysize>

Run the following to see what dmidecode reports for installed RAM.

dmidecode -t 17 will show the DIMM population per slot.

The following will output the total RAM.

dmidecode -t 17 | awk '( /Size/ && $2 ~ /^[0-9]+$/ ) { x+=$2 } END{ print "t" "Installed Ram: " x "MB"}'

[root@bootylicious ~]#  dmidecode -t 17 | awk '( /Size/ && $2 ~ /^[0-9]+$/ ) { x+=$2 } END{ print "t" "Installed Ram: " x "MB"}'

        Installed Ram: 65536MB

Leave a Reply

Your email address will not be published.