/proc/meminfo question

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

 



Hi,

I'm debugging a memory leak in an internal driver.
There is ~2G leak after stress tests.

If I read below /proc/meminfo correctly, it doesn't show where the 2G
memory is possibly used.

Buffers + Cached + Active*/Inactive* + Slab* only about 300M.

Is there other statistics not shown in /proc/meminfo or am I missing
obvious things?

root@target:~# uname -r
4.5.0+

root@target:~# echo 3 > /proc/sys/vm/drop_caches 

root@target:~# free
             total       used       free     shared    buffers     cached
Mem:       3787612    2182128    1605484       1072       1036      24240
-/+ buffers/cache:    2156852    1630760
Swap:     15624188       6812   15617376

root@target:~# cat /proc/meminfo 
MemTotal:        3787612 kB
MemFree:         1604336 kB
MemAvailable:    1598460 kB
Buffers:            1928 kB
Cached:            24668 kB
SwapCached:         1344 kB
Active:            27520 kB
Inactive:          14184 kB
Active(anon):      12504 kB
Inactive(anon):     3752 kB
Active(file):      15016 kB
Inactive(file):    10432 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:      15624188 kB
SwapFree:       15617376 kB
Dirty:                36 kB
Writeback:             0 kB
AnonPages:         14656 kB
Mapped:            23328 kB
Shmem:              1072 kB
Slab:              94092 kB
SReclaimable:      12324 kB
SUnreclaim:        81768 kB
KernelStack:        3344 kB
PageTables:         2936 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    17517992 kB
Committed_AS:     155592 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      205648 kB
DirectMap2M:     3872768 kB 

root@target:~# page-types 
             flags	page-count       MB  symbolic-flags			long-symbolic-flags
0x0000000000000000	   1007923     3937  _________________________________________	
0x0000000001000000	         1        0  ________________________z________________	zero_page
0x0000000000100000	    131072      512  ____________________n____________________	nopage
0x0000000000000008	         1        0  ___U_____________________________________	uptodate
0x0000000000000020	        32        0  _____l___________________________________	lru
0x0000000000000024	        14        0  __R__l___________________________________	referenced,lru
0x0000000000000028	       142        0  ___U_l___________________________________	uptodate,lru
0x0000000000004028	       102        0  ___U_l________b__________________________	uptodate,lru,swapbacked
0x000000000000002c	        39        0  __RU_l___________________________________	referenced,uptodate,lru
0x0000000000000040	        15        0  ______A__________________________________	active
0x0000000000000060	       450        1  _____lA__________________________________	lru,active
0x0000000000000064	        80        0  __R__lA__________________________________	referenced,lru,active
0x0000000000000068	        21        0  ___U_lA__________________________________	uptodate,lru,active
0x000000000000006c	        52        0  __RU_lA__________________________________	referenced,uptodate,lru,active
0x0000000000000080	     10471       40  _______S_________________________________	slab
0x0000000000006228	        28        0  ___U_l___I___sb__________________________	uptodate,lru,reclaim,swapcache,swapbacked
0x0000000000000228	         6        0  ___U_l___I_______________________________	uptodate,lru,reclaim
0x0000000000004238	       162        0  ___UDl___I____b__________________________	uptodate,dirty,lru,reclaim,swapbacked
0x0000000000004278	         2        0  ___UDlA__I____b__________________________	uptodate,dirty,lru,active,reclaim,swapbacked
0x0000000000000800	         1        0  ___________M_____________________________	mmap
0x0000000000000804	         1        0  __R________M_____________________________	referenced,mmap
0x0000000000000808	         4        0  ___U_______M_____________________________	uptodate,mmap
0x0000000000000828	      1871        7  ___U_l_____M_____________________________	uptodate,lru,mmap
0x000000000000082c	       668        2  __RU_l_____M_____________________________	referenced,uptodate,lru,mmap
0x0000000000004838	         2        0  ___UDl_____M__b__________________________	uptodate,dirty,lru,mmap,swapbacked
0x0000000000000868	       607        2  ___U_lA____M_____________________________	uptodate,lru,active,mmap
0x000000000000086c	      2754       10  __RU_lA____M_____________________________	referenced,uptodate,lru,active,mmap
0x0000000000000c00	     12532       48  __________BM_____________________________	buddy,mmap
0x0000000000007028	       105        0  ___U_l______asb__________________________	uptodate,lru,anonymous,swapcache,swapbacked
0x0000000000005048	         8        0  ___U__A_____a_b__________________________	uptodate,active,anonymous,swapbacked
0x0000000000007068	         7        0  ___U_lA_____asb__________________________	uptodate,lru,active,anonymous,swapcache,swapbacked
0x0000000000007228	         6        0  ___U_l___I__asb__________________________	uptodate,lru,reclaim,anonymous,swapcache,swapbacked
0x0000000000007828	       146        0  ___U_l_____Masb__________________________	uptodate,lru,mmap,anonymous,swapcache,swapbacked
0x0000000000005838	       380        1  ___UDl_____Ma_b__________________________	uptodate,dirty,lru,mmap,anonymous,swapbacked
0x0000000000005848	         6        0  ___U__A____Ma_b__________________________	uptodate,active,mmap,anonymous,swapbacked
0x0000000000005868	      3084       12  ___U_lA____Ma_b__________________________	uptodate,lru,active,mmap,anonymous,swapbacked
0x0000000000007868	        10        0  ___U_lA____Masb__________________________	uptodate,lru,active,mmap,anonymous,swapcache,swapbacked
0x000000000000586c	         7        0  __RU_lA____Ma_b__________________________	referenced,uptodate,lru,active,mmap,anonymous,swapbacked
0x000000000000786c	        26        0  __RU_lA____Masb__________________________	referenced,uptodate,lru,active,mmap,anonymous,swapcache,swapbacked
0x0000000000005878	       126        0  ___UDlA____Ma_b__________________________	uptodate,dirty,lru,active,mmap,anonymous,swapbacked
0x000000000000787c	         1        0  __RUDlA____Masb__________________________	referenced,uptodate,dirty,lru,active,mmap,anonymous,swapcache,swapbacked
0x0000000000007a28	         9        0  ___U_l___I_Masb__________________________	uptodate,lru,reclaim,mmap,anonymous,swapcache,swapbacked
0x0000000000005a38	         8        0  ___UDl___I_Ma_b__________________________	uptodate,dirty,lru,reclaim,mmap,anonymous,swapbacked
0x0000000000007a68	         1        0  ___U_lA__I_Masb__________________________	uptodate,lru,active,reclaim,mmap,anonymous,swapcache,swapbacked
0x0000000000005a78	         9        0  ___UDlA__I_Ma_b__________________________	uptodate,dirty,lru,active,reclaim,mmap,anonymous,swapbacked
             total	   1172992     4582
root@target:~# 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]