[Xymon] wrong memory report with free command from procps-ng
J.C. Cleaver
cleaver at terabithia.org
Sun May 3 01:35:32 CEST 2015
On Thu, April 23, 2015 5:26 am, Dominique Frise wrote:
> Hi,
>
>
> Using Xymon 4.3.19, we noticed that all our RHEL 7 systems are reporting
> wrong values.
>
> These systems now use free from procps-ng 3.3.10 whose output has changed.
>
>
> -- free output on RHEL 5/6 ---
>
> [bb at prdexp ~]$ free
>
> total used free shared buffers cached
> Mem: 65916528 63391732 2524796 1376104 1484472 47773272
> -/+ buffers/cache: 14133988 51782540
> Swap: 16777212 180816 16596396
>
>
> --- free output on RHEL 7 ---
>
> [bb at hns ~]$ free
> total used free shared buff/cache
> available
> Mem: 8011888 318844 3365516 98788 4327528
> 7275020
> Swap: 8388604 0 8388604
>
>
>
> The "-/+ buffers/cache:" has disappeared, the "used" is now calculated as
> total - free - buffers - cache, and there is an "available" column which
> is an "Estimation of how much memory is available for starting new
> applications, without swapping".
>
> The man page details all that.
>
>
> Dominique
>
> University of Lausanne
>
>
Thanks...
Mind if you could try the following patch? And let me know if it works (it
does for me on an EL7 and Fedora 21).
I went ahead and took the opportunity to begin using the "Available"
figure as the "Actual Used" (well, the Phys - Available figure), since
that's going to be a more realistic figure on kernel's new enough to
support it.
Regards,
-jc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xymon.free_meminfo_avail.patch
Type: application/octet-stream
Size: 3090 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150502/b110f3bc/attachment.obj>
More information about the Xymon
mailing list