davidjumani opened a new issue #4566: URL: https://github.com/apache/cloudstack/issues/4566
The `memoryintfreekbs` retuned by listVirtualMachines for KVM is always greater than the total memory allocated for the VM. This is because it returns the RSS of the process running the VM (https://libvirt.org/manpages/virsh.html#dommemstat) https://github.com/apache/cloudstack/blob/master/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java#L3712-L3718 Need to discuss how to handle this as well as the impact on usage ##### ISSUE TYPE <!-- Pick one below and delete the rest --> * Bug Report ##### CLOUDSTACK VERSION ~~~ 4.11+ (tested) ~~~ ##### OS / ENVIRONMENT KVM ##### STEPS TO REPRODUCE ``` (localcloud) SBCM5> > list virtualmachines filter=memory,memoryintfreekbs,memorykbs,memorytargetkbs, { "count": 3, "virtualmachine": [ { "memory": 512, "memoryintfreekbs": 552836, <--- "memorykbs": 524288, "memorytargetkbs": 524288 }, ``` ##### EXPECTED RESULTS ~~~ The used memory ~~~ ##### ACTUAL RESULTS ~~~ Total memory used by the process running the VM ~~~ ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
