lkml.org 
[lkml]   [2002]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectHow to determine the amount of free kernel memory?
Date
Hi

Is there a way to determine the amount of free kernel memory?
si_meminfo() returns nr_free_pages() for example, but this is
not what I'm looking for.
I want to know the amount of memory that is available to the kernel (via
vmalloc or kmalloc) without considering userspace memory consumption.

Maybe something like:
nr_active_pages + nr_inactive_pages + nr_free_pages()

I want to use the functionality from within a kernel module, so i don't have
access to nr_active_pages(), nr_inactive_pages() or nr_free_pages().

Thanks for your help.
Michael Bellion

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.030 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site