From: Michael Bellion <bellion@gmx.de>
To: linux-kernel@vger.kernel.org
Subject: How to determine the amount of free kernel memory?
Date: Mon, 2 Sep 2002 03:08:30 +0200 [thread overview]
Message-ID: <200209020308.30589.bellion@gmx.de> (raw)
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
reply other threads:[~2002-09-02 1:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200209020308.30589.bellion@gmx.de \
--to=bellion@gmx.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®