* 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
* kernel memory usage
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
0 siblings, 1 reply; 4+ messages in thread
From: Mulyadi Santosa @ 2010-12-29 16:09 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* kernel memory usage
2010-12-29 16:09 ` Mulyadi Santosa
@ 2010-12-30 3:37 ` Bharath H S
2010-12-31 5:39 ` naveen yadav
0 siblings, 1 reply; 4+ messages in thread
From: Bharath H S @ 2010-12-30 3:37 UTC (permalink / raw)
To: kernelnewbies
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 at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* kernel memory usage
2010-12-30 3:37 ` Bharath H S
@ 2010-12-31 5:39 ` naveen yadav
0 siblings, 0 replies; 4+ messages in thread
From: naveen yadav @ 2010-12-31 5:39 UTC (permalink / raw)
To: 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 at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
^ 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).