Quote:
Originally Posted by notepod
Can you fill the blank ?
MemTotal = MemFree + Buffers + Cached + Slab + ???
|
I don't know if the numbers are available to add up total memory use that way.
In the /proc/meminfo I'm looking at, there is an entry for AnonPages, which is not in the document you linked.
I think AnonPages and Mapped together represent the ordinary memory use of ordinary processes. But when I add things up on my own system
MemTotal < MemFree + Buffers + Cached + Slab + AnonPages + Mapped
even though I think some other things (such as PageTables) belong on the right and I don't know how any of those items on the right might overlap each other and/or be outside of MemTotal, so I don't know why they can add up to more than MemTotal.
Quote:
btw i don't have a huge difference between "used + swap" and "sum(VIRT)" (resp. 218168 and 213104).
|
As I said earlier, there are large parts of each of those that aren't included in the other. So comparing them has little meaning.