kernel memory usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux