On measuring memory usage #2
Hmm ... I should wish things more often. I complained about the lack of any usable memory reporting tool on Linux, and only a couple of days later I discovered exmap. Unlike e.g. top with its number of useless memory usage values, exmap has only three of them.
- First of them is virtual memory, i.e. top's VIRT. Not really that useful in practice except for some specific cases.
- Second is mapped memory, i.e. memory that the process actually really uses. This value still includes memory that's shared with other processes.
- Last and definitely not the least but rather the other way around, there's the effective size. It is mapped size, but for shared memory the shared portion are divived into all processes that use it. To give a simplified example, if there are 10 KDE apps running, then for each of them the effective size is its unshared memory plus 1/10 of memory used by KDE libraries.