[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Memory Usage
- To: <linux-mm@kvack.org>
- Subject: Memory Usage
- From: Srikanta R <srikanta@sasken.com>
- Date: Mon, 11 Feb 2002 20:22:34 +0530 (IST)
- Fake-Sender: owner-linux-mm@kvack.org
- Original-Recipient: rfc822;linux-mm-archive@humbolt.geo.uu.nl
- Sender: Rik van Riel <riel@nl.linux.org>
Hi all,
Which variable in /proc/meminfo (using 2.4.8 kernel)gives me the
correct memory usage at any point of time.
The problem is when I run my application, the "MemFree:" variable under
/proc/meminfo drops from around 25MB to 16MB. I kill the application
and "MemFree:" shows 17MB. How do I get the actual Memory being used ? ie
after I kill the application I should get "MemFree: = 25MB".
If I do the calculation which is being done in procedure -
nr_free_buffer_pages() (linux/mm/page_alloc.c) i.e adding the
zone->free_pages ,zone->inactive_clean_pages,
zone->inactive_dirty_pages, for all the zones, do I get the exact free RAM
available at any point of time(taking into consideration caching and all)
?
Thanks for any help or pointers.
Rgds,
Srikanta.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/