weizhouapache commented on issue #7529: URL: https://github.com/apache/cloudstack/issues/7529#issuecomment-1686409153
@yashi4engg I am able to reproduce the issue. However, I think it is not a bug. As far as I know, qemu/kvm does NOT automatically reclaim unused memory from guest VMs, unless you reduce the memory of guest VMs. Here are the steps I did - created 4 VMs with 1GiB memory - check memory usage of kvm host, it increased around 1.5GiB - run memory tests to use 512MB memory in each VM - check memory usage of kvm host, it increased around 1.8GiB - stop the memory tests, and wait for a hour - check memory usage of kvm host, it did not change - reduce the memory of guest VMs to 512MiB - check memory usage of kvm host, it decreased around 1.2GiB - increase the memory of guest VMs to 1GiB - check memory usage of kvm host, it did not change Some commands - check memory usage of kvm host: `free -mh` - memory tests inside vm: `head -c 512m /dev/zero | tail` - reduce memory of guest VMs on host : `virsh setmem <vm-name> 524288` - check memory of guest VMs on host: `virsh dommemstat <vm-name>` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
