* How to determine the amount of free kernel memory?
@ 2002-09-02 1:08 Michael Bellion
0 siblings, 0 replies; only message in thread
From: Michael Bellion @ 2002-09-02 1:08 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-02 1:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-02 1:08 How to determine the amount of free kernel memory? Michael Bellion
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®