]> granicus.if.org Git - procps-ng/commit
free: use SReclaimable in cached
authorCraig Small <csmall@enc.com.au>
Sat, 24 Oct 2015 03:15:07 +0000 (14:15 +1100)
committerCraig Small <csmall@enc.com.au>
Sat, 24 Oct 2015 03:21:23 +0000 (14:21 +1100)
commit05d751c4f076a2f0118b914c5e51cfbb4762ad8e
tree3e3ccd778c71d7d5bc77c9debbf0f8ed7fdf7f07
parent9fda3da0ad7d1c9de37dc754d3849f199f879352
free: use SReclaimable in cached

The previous commit added all of slab into the cache value. The
thing was is cached in this context is something you can get
back and reclaim if under memory pressure.

The problem was slab parameter includes both reclaimable and
unreclaimable values which doesn't make sense in this context.
This commit make cached only use the reclaimable component.

References:
 http://www.freelists.org/post/procps/OmegaPhilxxxxxxxxxxxxx-Bug799716-free-considers-cached-to-include-SUnreclaim
 https://github.com/brndnmtthws/conky/issues/130
 https://bugs.debian.org/799716

Commits:
 6cb75efef85f735b72e6c96f197f358f511f8ed9
free.1
proc/sysinfo.c