library: evolve MenAvailable algorithm on older kernel
Let's not report zero for kb_main_available when older kernels don't have MemAvailable. Instead, if we simply duplicate the 'free' amount we can avoid all ancillary problems, such as those involving top's graphing mode. Reference(s): http://www.freelists.org/post/procps/kb-main-available-etc,3 Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
committed by
Jaromir Capik
parent
7391699b07
commit
c437faf8d3
@ -482,8 +482,8 @@ The \fBavail\fR number on line 2 is an estimation of \*(MP available for
|
||||
starting new applications, without swapping.
|
||||
Unlike the \fBfree\fR field, it attempts to account for readily reclaimable
|
||||
page cache and memory slabs.
|
||||
It is available on kernels 3.14, emulated on kernels 2.6.27+ and displayed
|
||||
as zero otherwise.
|
||||
It is available on kernels 3.14, emulated on kernels 2.6.27+, otherwise
|
||||
the same as \fBfree\fR.
|
||||
|
||||
In the alternate memory display modes, two abbreviated summary lines
|
||||
are shown consisting of these elements:
|
||||
|
Reference in New Issue
Block a user