From 8ca346762dd374413a0e6da05666be9eb6b74e13 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Sat, 25 Jun 2022 11:42:08 +1000 Subject: [PATCH] doc: Note new Used behavour Added note to NEWS in the lbirary section Updated free.1 as it specifies the calculation Signed-off-by: Craig Small --- NEWS | 1 + free.1 | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 997044aa..e3e7148c 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ procps-ng-NEXT * library Re-add elogind support merge #151 + Used memory is Total - Available * pmap: Dont reuse stdin filehandle issue #231 * ps: threads again display when -L is used with -q issue #234 * ps: proper aix format string behavior was restored diff --git a/free.1 b/free.1 index e755c80f..a12e287e 100644 --- a/free.1 +++ b/free.1 @@ -2,7 +2,7 @@ .\" This page Copyright (C) 1993 Matt Welsh, mdw@sunsite.unc.edu. .\" Long options where added at April 15th, 2011. .\" Freely distributable under the terms of the GPL -.TH FREE 1 "2020-06-16" "procps-ng" "User Commands" +.TH FREE 1 "2022-06-25" "procps-ng" "User Commands" .SH NAME free \- Display amount of free and used memory in the system .SH SYNOPSIS @@ -19,7 +19,7 @@ columns are: Total installed memory (MemTotal and SwapTotal in /proc/meminfo) .TP \fBused\fR -Used memory (calculated as \fBtotal\fR - \fBfree\fR - \fBbuffers\fR - \fBcache\fR) +Used or unavailable memory (calculated as \fBtotal\fR - \fBavailable\fR) .TP \fBfree\fR Unused memory (MemFree and SwapFree in /proc/meminfo)