procps/proc
Jim Warner dbc880edd3 library: correct 'used' memory calculations, <meminfo>
The <meminfo> module attempted to duplicate the former
sysinfo memory calculations wherein 'SReclaimable' was
added to 'Cached' for the 'kb_main_cached' equivalent.

But, this original approach was wrong for two reasons.

1. The addition occurred too late to impact the 'USED'
calculation which could then cause an underflow in the
top memory display if 'SReclaimable' was heavily used.

2. In changing the actual /proc/meminfo 'Cached' value
it meant that users could not rely on that proc(5) man
page when interpreting the MEMINFO_MEM_CACHED results.

So this commit adds a new enumerator for the inclusive
cached amount plus repositions the calculation so that
a MEMINFO_MEM_USED result will exclude 'SReclaimable'.

Signed-off-by: Jim Warner <james.warner@comcast.net>
2017-06-04 21:36:23 +10:00
..
.gitignore
alloc.c
alloc.h
COPYING
devname.c library: find tty device name of process quicker 2016-07-03 10:47:25 +10:00
devname.h
diskstats.c library: eliminate distorted history 1st time switches 2017-01-05 06:48:38 +11:00
diskstats.h library: strictly cosmetic, absolutely no code changes 2016-10-09 21:31:29 +11:00
escape.c library: revert one ancient 'escape_str_utf8' deletion 2016-08-23 21:11:09 +10:00
escape.h
libprocps.pc.in
libprocps.sym library: provide for validating result type references 2016-08-07 21:40:48 +10:00
meminfo.c library: correct 'used' memory calculations, <meminfo> 2017-06-04 21:36:23 +10:00
meminfo.h library: correct 'used' memory calculations, <meminfo> 2017-06-04 21:36:23 +10:00
namespace.c library: ensure 'namespace' types treated consistently 2017-01-04 08:29:44 +11:00
namespace.h library: ensure 'namespace' types treated consistently 2017-01-04 08:29:44 +11:00
numa.c library: set stage for NUMA node field display support 2017-05-22 21:38:10 +10:00
numa.h library: set stage for NUMA node field display support 2017-05-22 21:38:10 +10:00
pids.c library: set stage for NUMA node field display support 2017-05-22 21:38:10 +10:00
pids.h library: set stage for NUMA node field display support 2017-05-22 21:38:10 +10:00
procps-private.h library: please keep procps-private.h free of #include 2016-06-11 11:50:37 +10:00
procps.h library: provide for validating result type references 2016-08-07 21:40:48 +10:00
pwcache.c library: rename clashing pwcache functions 2016-06-18 08:17:45 +10:00
pwcache.h library: rename clashing pwcache functions 2016-06-18 08:17:45 +10:00
readproc.c misc: eliminate all those remaining gcc -Wall warnings 2017-05-22 21:38:10 +10:00
readproc.h library: normalize & minimize result types, <PIDS> api 2016-08-01 20:09:18 +10:00
slabinfo.c library <slabinfo>: make read function name consistent 2017-01-05 06:48:38 +11:00
slabinfo.h library: strictly cosmetic, absolutely no code changes 2016-10-09 21:31:29 +11:00
stat.c library: set stage for NUMA node field display support 2017-05-22 21:38:10 +10:00
stat.h library <stat>: standardized new category calculations 2017-01-04 08:29:44 +11:00
sysinfo.c misc: just eliminate several 'unused' warning messages 2016-07-26 07:59:48 +10:00
sysinfo.h library: remove an obsolete 'jiffs' typedef in sysinfo 2016-05-08 21:12:22 +10:00
test_namespace.c
test_pids.c related: change for lost 'PROCPS_' enumerator prefixes 2016-07-26 20:49:44 +10:00
test_sysinfo.c
test_uptime.c library: procps_uptime() return value is a status 2016-05-01 16:50:25 +10:00
test_version.c library: Fix LINUX_VERSION macro 2016-05-01 17:46:25 +10:00
uptime.c library: procps_uptime() return value is a status 2016-05-01 16:50:25 +10:00
uptime.h
version.c
version.h library: Fix LINUX_VERSION macro 2016-05-01 17:46:25 +10:00
vmstat.c library: eliminate distorted history 1st time switches 2017-01-05 06:48:38 +11:00
vmstat.h library: strictly cosmetic, absolutely no code changes 2016-10-09 21:31:29 +11:00
wchan.c library: don't strip off prefixes from the wchan names 2016-12-07 22:07:00 +11:00
wchan.h
xtra-procps-debug.h library: strengthen the VAL macro validation functions 2016-08-08 22:01:37 +10:00