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 <csmall@dropbear.xyz>
This commit is contained in:
Craig Small 2022-06-25 11:42:08 +10:00
parent 047d16ccfd
commit 8ca346762d
2 changed files with 3 additions and 2 deletions

1
NEWS
View File

@ -1,6 +1,7 @@
procps-ng-NEXT procps-ng-NEXT
* library * library
Re-add elogind support merge #151 Re-add elogind support merge #151
Used memory is Total - Available
* pmap: Dont reuse stdin filehandle issue #231 * pmap: Dont reuse stdin filehandle issue #231
* ps: threads again display when -L is used with -q issue #234 * ps: threads again display when -L is used with -q issue #234
* ps: proper aix format string behavior was restored * ps: proper aix format string behavior was restored

4
free.1
View File

@ -2,7 +2,7 @@
.\" This page Copyright (C) 1993 Matt Welsh, mdw@sunsite.unc.edu. .\" This page Copyright (C) 1993 Matt Welsh, mdw@sunsite.unc.edu.
.\" Long options where added at April 15th, 2011. .\" Long options where added at April 15th, 2011.
.\" Freely distributable under the terms of the GPL .\" 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 .SH NAME
free \- Display amount of free and used memory in the system free \- Display amount of free and used memory in the system
.SH SYNOPSIS .SH SYNOPSIS
@ -19,7 +19,7 @@ columns are:
Total installed memory (MemTotal and SwapTotal in /proc/meminfo) Total installed memory (MemTotal and SwapTotal in /proc/meminfo)
.TP .TP
\fBused\fR \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 .TP
\fBfree\fR \fBfree\fR
Unused memory (MemFree and SwapFree in /proc/meminfo) Unused memory (MemFree and SwapFree in /proc/meminfo)