From: yad.naveen@gmail.com (naveen yadav)
To: kernelnewbies@lists.kernelnewbies.org
Subject: kernel memory usage
Date: Wed, 29 Dec 2010 19:00:27 +0530 [thread overview]
Message-ID: <AANLkTimqNCenVGNE+50AAHSM2d+fO9yqtb29uqwvxuN=@mail.gmail.com> (raw)
Hi all,
I want to calculate the total kernel memory usage.
cat /proc/meminfo
MemTotal: 4131168 kB
MemFree: 336848 kB
Buffers: 261776 kB
Cached: 3115752 kB
SwapCached: 264 kB
Active: 1536344 kB
Inactive: 1922636 kB
HighTotal: 3260052 kB
HighFree: 149984 kB
LowTotal: 871116 kB
LowFree: 186864 kB
SwapTotal: 2072376 kB
SwapFree: 2070544 kB
Dirty: 20956 kB
Writeback: 0 kB
AnonPages: 81080 kB
Mapped: 21216 kB
Slab: 205672 kB
SReclaimable: 184296 kB
SUnreclaim: 21376 kB
PageTables: 5848 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 4137960 kB
Committed_AS: 245100 kB
VmallocTotal: 114680 kB
VmallocUsed: 4724 kB
VmallocChunk: 109804 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 4096 kB
DirectMap2M: 913408 kB
so I want to know the method by which I can know the amout of memory
kernel is using at any instance of time. How can i find this.
since as far as i know vmallocused =vmalloc allocation+ ioremap. also
ioremap can be allocated multiple times. So is there any method to do
exact calculation.
Thanks
next reply other threads:[~2010-12-29 13:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-29 13:30 naveen yadav [this message]
2010-12-29 16:09 ` kernel memory usage Mulyadi Santosa
2010-12-30 3:37 ` Bharath H S
2010-12-31 5:39 ` naveen yadav
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='AANLkTimqNCenVGNE+50AAHSM2d+fO9yqtb29uqwvxuN=@mail.gmail.com' \
--to=yad.naveen@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).