From mboxrd@z Thu Jan 1 00:00:00 1970 From: dhylands@gmail.com (Dave Hylands) Date: Thu, 2 Jun 2011 15:47:34 -0700 Subject: Check Kernel Memory Allocation In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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