Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
2 Bugs at CPU and RAM #386
have found 2 BUGS at the CPU frequency and Ram.
No idea where the system monitor you use as reference gets its data. Anyway...
If one wants to calculate it the way it's currently done then rather than
it looks like it should be:
Shmem covers e.g. tmpfs, which is included in cache, but is not actually reclaimable.
SReclaimable is reclaimable part of Slab.
Optionally SwapCached can be subtracted as well - it's memory that was swapped out, is swapped in again, but is still also left in the swap. Essentially it can be swapped out "for free". Doesn't seem quite right to include though (and doesn't seem to be in other tools).
On kernels 3.14 and later, the MemAvailable value could possibly be used (commit).
Here's some related links: