Memory usage measurement
rashkae at tigershaunt.com
Mon Dec 8 21:41:58 UTC 2008
> On 12/08/2008 11:49 AM, Rashkae wrote:
>> I'm trying, unsuccessfully,. to find a utility that will display the
>> memory allocated, not including cache and buffers.
>> The closes I could come is with the free command. I can add the -/+
>> buffers/cache and Swap used column, which should be fairly close.
>> However, those numbers will contain 'clean' pages that exist both in
>> physical ram as well as used swap space.
> Perhaps try the System Monitor applet?
Not really.. that's no better than the free command.
I guess what I'm looking from, roughly, is something like the Used
memory - Cache (from free) + Used Swap - Swapcashed (from /proc/meminfo)
I could get all that info from /proc/meminfo,, of course, but then you
have to subtract to find Used Memory and Used swap.
I find it interesting to comapre that with the Commited_AS value,, for
example, assuming I have the above formula right, my system now is
"using" 1.3 GB of memory, but applications have committed total of 1.78)
I guess I'll just have to write myself a little perl script to parse
meminfo for what I'm looking for.. should be fun.
More information about the ubuntu-users