You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by li jerry <di...@hotmail.com> on 2021/09/26 08:45:56 UTC

kvm Available memory question

Hello everyone

I found kvm host from the code

https://github.com/apache/cloudstack/blob/main/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/linux/MemStat.java#L58
Available memory = free memory + cache memory (Is Buffers memory missing here)


/proc/meminfo in the linux kernel has already calculated the Available memory for us, why not use it directly?



-Jerry