Closed thetopnach closed 4 years ago
Many load balancing and workload placing programs check /proc/meminfo to estimate how much free memory is available. They generally do this by adding up "free" and "cached", which was fine ten years ago, but is pretty much guaranteed to be wrong today.
free displays the total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel. The information is gathered by parsing /proc/meminfo.
available Estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use (MemAvailable in /proc/meminfo, available on kernels 3.14, emulated on kernels 2.6.27+, otherwise the same as free)
Updating the 2.5 and lower version to check for free -m
On HX 2.5 and later, free -m last column is available. They script checks that the value of they last value, which is "available" memory is greater than 2048. The SCVM is running Ubuntu 16.X.
In HX versions prior to HX 2.5, the free -m output is different. The SCVM is running Ubuntu 12.X
Since cached is 723, the hypercheck script will mark the memory test as failed.