[procps] Re: [OmegaPhil@xxxxxxxxxxxxx: Bug#799716: free considers 'cached' to include SUnreclaim]

  • From: Craig Small <csmall-procps@xxxxxxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Wed, 23 Sep 2015 23:18:37 +1000

On Tue, Sep 22, 2015 at 12:05:04PM -0500, Jim Warner wrote:

That someone is Jaromir, unless you want to assume ownership.

I don't know the memory management well enough to state which way is
correct. Re-reading the previous threads it didn't seem you were sure
either.

The whole thing comes down what is used memory?
Take total memory and subtract the free memory, that's an easy start.
We also remove buffers and cache and slab (though its not in the man
page).

The last is the problem, slab has reclaimable and non-reclaimable parts.
We remove both for the used memory, but I can see non-reclaimable is
*really* being used so should stay (and we only remove reclaimable).

However there is now available. So should there be a difference between
the two? Why are some things excluded from free and not available?

I have 1.8G used, 1.2G free and 13.8G available.
So 1.2G isn't used at all, but about 12.6G is used but could be
returned?

- Craig

--
Craig Small (@smallsees) http://enc.com.au/ csmall at : enc.com.au
Debian GNU/Linux http://www.debian.org/ csmall at : debian.org
GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5

Other related posts: