I am running grep MemTotal /proc/meminfo to determine the RAM installed on a system, however instead of reporting a number corresponding to an even number of GB, it is slightly off.I.e. on my 64 GB system I get a report of 65854272 kB, which is equivalent to 62.8 GB. Where did my 1.2 Gb go? Why does the tool not display them to me?free -b reports 67434774528 which is in line with the above.
Why am I missing 2% of my ram
memory;ram
MemTotal: Total usable RAM in kilobytes (i.e. physical memory minus a few reserved bytes and the kernel binary code)Source: Torvalds linux github repro (linux/Documentation/filesystems/proc.txt)Check BIOS reserved memory:dmesg | grep BIOS | grep reserved