I have a server that has KVM installed on it. this server I have created for testing purposes.
server's configuration : OS: CentOS 7 Space: 60GB RAM: 2GB
I created one Windows VM on this server with 1400MB RAM and 20GB HDD.
So the problem is whenever this windows VM is running, on the server it shows it has utilized all 1400MB RAM assigned to it.
But when I logged into this windows VM and checked it is using 900MB.
the output of free -m
when Windows VM is stopped:
total used free shared buff/cache available
Mem: 1837 158 1360 96 318 1437
Swap: 1022 67 955
the output of free -m
when Windows VM is running.
total used free shared buff/cache available
Mem: 1837 1466 76 96 294 129
Swap: 1022 120 902
Windows VM has virtIO drivers installed.
I tried KSM service to resolve this issue, but it didn't work.
This happens with more RAM (e.g 16GB or 60GB) as well.
On the server why it is showing all the RAM is used? when actually it is not.
Please let me know if you need more information.