A small difference between purchased RAM and usable memory can be normal because the operating system and kernel require some memory for their own operations. However, a significant difference deserves investigation.
Here are some things to check:
- Check detected memory: Run
free -h to see how much memory Linux recognizes.
- Inspect memory information: Check
/proc/meminfo for total, available, and reserved memory details.
- Check the virtualization environment: Run
systemd-detect-virt to confirm the virtualization type.
- Review provider allocation: Compare the operating system's detected memory with the RAM allocation shown in your VPS dashboard.
- Check kernel boot parameters: Incorrect memory-related boot parameters can sometimes restrict usable RAM.
- Contact your provider: If the difference is unusually large, request verification of the memory allocation at the hypervisor level.
Don't confuse available memory with free memory. Linux uses unused RAM for caching, which can make the free-memory figure look lower than expected.