Total Installed Memory in Linux

Many utilities in Linux do not display the installed memory, but available for the system in fact. Why it happens? The answer lies in data reading methods. If the utility receives data from an accessible system, then that part of the memory, which is reserved by the Linux kernel, will not be taken. The kernel return thе information, subtracts what it reserves for itself. That's why the commands free -m, cat /proc/meminfo and many others do not show the total installed memory. And it does not matter whether it is virtual or dedicated server.

Then what method to find out exactly how much RAM is installed on the server? You can do it, for example, using the commanddmidecode --type 17, or dmidecode --type memory, which will show the memory installed on the server in detail.

But on a virtual server, the same result will be on the output of the command lshw -c memory, but not on dedicated. These are the features of KVM virtualization..

dmidecode, as well lshw, display RAM accurately without rounding the number.


  • linux, memory, ram, память, памет
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Как создать поддомен в ISPmanager?

В ISPmanager нету такого понятия как "поддомен". Это все домены, только разного уровня.Перейдите...

IP-spoofing

IP-спуфинг- Вид хакерской (Ddos) атаки, заключающийся в использовании чужого IP-адреса с целью...

Команды du и df показывают разный объем доступного дискового пространства. Что происходит?

Вам нужно разобраться, что на самом деле делают команды du и df. du проходит по дереву каталогов,...

Режим Recovery

Режим Recovery необходим в случаях, когда: сервер не запускается в обычном режиме. Чтобы найти...

What is SWAP?

Swap space is the area on a hard disk which is part of the Virtual Memory of your machine, which...