Thread (4 messages) 4 messages, 3 authors, 2011-06-02

Check Kernel Memory Allocation

From: Dave Hylands <hidden>
Date: 2011-06-02 22:47:34

Hi Dev,
I wanted to know how much kernel and userspace memory is available on the
Linux system during run-time either by some C code or some procfile.

Do you know how to do that?
You can look in /proc/meminfo
http://unixfoo.blogspot.com/2008/02/know-about-procmeminfo.html

The memory is shared between userspace and kernel space and the amount
of memory available changes dynamically as the system is running.

Be aware that Cached memory is quite dynamic, and the system will
throw away cache pages to make space if it needs to.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help