RAM usage by unknown sources not traceable via regular tools (meminfo, smem)
by sanjibdas from LinuxQuestions.org on (#5DV3J)
Hi all,
I have a situation where I do see lot of memory (RAM) usage by some unknown source & is not listed by any of these cached, buffer, slab, kernel stack, vmallocUsed, anon or applications. I used smem tool so far & also enabled kmemleak. But not much luck yet.
Total RAM size is 16G & we carve out around 2.3G for a different purpose (not available to linux).
I used these fields to calculate total usage, which typically give closer value to MemTotal in normal cases. Here I see ~6.5G is missing.
MemTotal = MemFree + Buffers + Cached + AnonPages + Slab + KernelStack + PageTables + VmallocUsed
MemTotal: 13535936 kB (16G - 2.3G)
MemFree: 782080 kB
Buffers: 615744 kB
Cached: 2748416 kB
SwapCached: 0 kB
Active: 4932800 kB
Inactive: 845376 kB
Active(anon): 4148928 kB
Inactive(anon): 0 kB
Active(file): 783872 kB
Inactive(file): 845376 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2621312 kB
SwapFree: 2621312 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 2404544 kB
Mapped: 828288 kB
Shmem: 1739776 kB
Slab: 280768 kB
SReclaimable: 56128 kB
SUnreclaim: 224640 kB
KernelStack: 33792 kB
PageTables: 39296 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 9389248 kB
Committed_AS: 6923008 kB
VmallocTotal: 35184367894528 kB
VmallocUsed: 4480 kB
VmallocChunk: 35184367857920 kB
My linux kernel is 2.6.32.11 (comparatively old) & I am clueless how to track this GAP. It would be a great help in you could share some pointers in this context. Any specific open source tool which could be useful in my case?
Thanks in advance.
Sanjib


I have a situation where I do see lot of memory (RAM) usage by some unknown source & is not listed by any of these cached, buffer, slab, kernel stack, vmallocUsed, anon or applications. I used smem tool so far & also enabled kmemleak. But not much luck yet.
Total RAM size is 16G & we carve out around 2.3G for a different purpose (not available to linux).
I used these fields to calculate total usage, which typically give closer value to MemTotal in normal cases. Here I see ~6.5G is missing.
MemTotal = MemFree + Buffers + Cached + AnonPages + Slab + KernelStack + PageTables + VmallocUsed
MemTotal: 13535936 kB (16G - 2.3G)
MemFree: 782080 kB
Buffers: 615744 kB
Cached: 2748416 kB
SwapCached: 0 kB
Active: 4932800 kB
Inactive: 845376 kB
Active(anon): 4148928 kB
Inactive(anon): 0 kB
Active(file): 783872 kB
Inactive(file): 845376 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2621312 kB
SwapFree: 2621312 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 2404544 kB
Mapped: 828288 kB
Shmem: 1739776 kB
Slab: 280768 kB
SReclaimable: 56128 kB
SUnreclaim: 224640 kB
KernelStack: 33792 kB
PageTables: 39296 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 9389248 kB
Committed_AS: 6923008 kB
VmallocTotal: 35184367894528 kB
VmallocUsed: 4480 kB
VmallocChunk: 35184367857920 kB
My linux kernel is 2.6.32.11 (comparatively old) & I am clueless how to track this GAP. It would be a great help in you could share some pointers in this context. Any specific open source tool which could be useful in my case?
Thanks in advance.
Sanjib