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
On Wed, Dec 29, 2010 at 20:30, naveen yadav <yad.naveen@gmail.com> wrote:
Hi all,
I want to calculate the total kernel memory usage.
First, what's your definition of "kernel memory" ? Everything that is mapped inside kernel address space only? -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
I think Naveen means, all the memory does not appear in the output of /proc/meminfo, the reason is kernel memory is discounted and not accounted for in the output. May be his goal is to calculate the total memory in the system and that output of /proc/meminfo does not give that. On Wed, Dec 29, 2010 at 9:39 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote:
On Wed, Dec 29, 2010 at 20:30, naveen yadav <yad.naveen@gmail.com> wrote:
Hi all,
I want to calculate the total kernel memory usage.
First, what's your definition of "kernel memory" ? Everything that is mapped inside kernel address space only? -- regards,
Mulyadi Santosa Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Yes Bharath, you are right. On Thu, Dec 30, 2010 at 9:07 AM, Bharath H S <bhslinker@gmail.com> wrote:
I think Naveen means, all the memory does not appear in the output of /proc/meminfo, the reason is kernel memory is discounted and not accounted for in the output. May be his goal is to calculate the total memory in the system and that output of /proc/meminfo does not give that.
On Wed, Dec 29, 2010 at 9:39 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote:
On Wed, Dec 29, 2010 at 20:30, naveen yadav <yad.naveen@gmail.com> wrote:
Hi all,
I want to calculate the total kernel memory usage.
First, what's your definition of "kernel memory" ? Everything that is mapped inside kernel address space only? -- regards,
Mulyadi Santosa Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (3)
-
Bharath H S -
Mulyadi Santosa -
naveen yadav