]> granicus.if.org Git - procps-ng/commit
free: use SReclaimable in cached
authorCraig Small <csmall@enc.com.au>
Sat, 24 Oct 2015 03:29:25 +0000 (14:29 +1100)
committerCraig Small <csmall@enc.com.au>
Sat, 24 Oct 2015 03:29:25 +0000 (14:29 +1100)
commit602b9a02ce2a3ed443b0b79fca457826da44d654
tree96c8d71159457812d75e75cdf4d426f6c1d4d610
parent88489be5428c23009f178d05b920608b3764d8ea
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:
 05d751c4f076a2f0118b914c5e51cfbb4762ad8e
 6cb75efef85f735b72e6c96f197f358f511f8ed9
free.1
proc/meminfo.c