kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* kernel memory usage
@ 2010-12-29 13:30 naveen yadav
  2010-12-29 16:09 ` Mulyadi Santosa
  0 siblings, 1 reply; 4+ messages in thread
From: naveen yadav @ 2010-12-29 13:30 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-31  5:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-29 13:30 kernel memory usage naveen yadav
2010-12-29 16:09 ` Mulyadi Santosa
2010-12-30  3:37   ` Bharath H S
2010-12-31  5:39     ` naveen yadav

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).