oom-killer killing even if memory is available?
Subsystems (10)
Hi all,
the below looks like there is some bug in the memory management code. Even if there seems to be plenty of memory available the oom-killer kills processes.
The below happened after 27 days uptime, memory seems to be heavily fragmented, but there are stills larger portions of memory free that could satisfy an order 2 allocation. Any idea why this fails?
[root@t6360003 ~]# uptime
09:33:41 up 27 days, 22:55, 1 user, load average: 0.00, 0.00, 0.00
Mar 16 21:40:40 t6360003 kernel: basename invoked oom-killer: gfp_mask=0xd0, order=2, oomkilladj=0 Mar 16 21:40:40 t6360003 kernel: CPU: 0 Not tainted 2.6.28 #1 Mar 16 21:40:40 t6360003 kernel: Process basename (pid: 30555, task: 000000007baa6838, ksp: 0000000063867968) Mar 16 21:40:40 t6360003 kernel: 0700000084a8c238 0000000063867a90 0000000000000002 0000000000000000 Mar 16 21:40:40 t6360003 kernel: 0000000063867b30 0000000063867aa8 0000000063867aa8 000000000010534e Mar 16 21:40:40 t6360003 kernel: 0000000000000000 0000000063867968 0000000000000000 000000000000000a Mar 16 21:40:40 t6360003 kernel: 000000000000000d 0000000000000000 0000000063867a90 0000000063867b08 Mar 16 21:40:40 t6360003 kernel: 00000000004a5ab0 000000000010534e 0000000063867a90 0000000063867ae0 Mar 16 21:40:40 t6360003 kernel: Call Trace: Mar 16 21:40:40 t6360003 kernel: ([<0000000000105248>] show_trace+0xf4/0x144) Mar 16 21:40:40 t6360003 kernel: [<0000000000105300>] show_stack+0x68/0xf4 Mar 16 21:40:40 t6360003 kernel: [<000000000049c84c>] dump_stack+0xb0/0xc0 Mar 16 21:40:40 t6360003 kernel: [<000000000019235e>] oom_kill_process+0x9e/0x220 Mar 16 21:40:40 t6360003 kernel: [<0000000000192c30>] out_of_memory+0x17c/0x264 Mar 16 21:40:40 t6360003 kernel: [<000000000019714e>] __alloc_pages_internal+0x4f6/0x534 Mar 16 21:40:40 t6360003 kernel: [<0000000000104058>] crst_table_alloc+0x48/0x108 Mar 16 21:40:40 t6360003 kernel: [<00000000001a3f60>] __pmd_alloc+0x3c/0x1a8 Mar 16 21:40:40 t6360003 kernel: [<00000000001a802e>] handle_mm_fault+0x262/0x9cc Mar 16 21:40:40 t6360003 kernel: [<00000000004a1a7a>] do_dat_exception+0x30a/0x41c Mar 16 21:40:40 t6360003 kernel: [<0000000000115e5c>] sysc_return+0x0/0x8 Mar 16 21:40:40 t6360003 kernel: [<0000004d193bfae0>] 0x4d193bfae0 Mar 16 21:40:40 t6360003 kernel: Mem-Info: Mar 16 21:40:40 t6360003 kernel: DMA per-cpu: Mar 16 21:40:40 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: Normal per-cpu: Mar 16 21:40:40 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 30 Mar 16 21:40:40 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: Active_anon:372 active_file:45 inactive_anon:154 Mar 16 21:40:40 t6360003 kernel: inactive_file:152 unevictable:987 dirty:0 writeback:188 unstable:0 Mar 16 21:40:40 t6360003 kernel: free:146348 slab:875833 mapped:805 pagetables:378 bounce:0 Mar 16 21:40:40 t6360003 kernel: DMA free:467728kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:116kB unevictable:0kB present:2068480kB pages_scanned:0 all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 2020 2020 Mar 16 21:40:40 t6360003 kernel: Normal free:117664kB min:4064kB low:5080kB high:6096kB active_anon:1488kB inactive_anon:616kB active_file:188kB inactive_file:492kB unevictable:3948kB present:2068480kB pages_scanned:128 all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 0 0 Mar 16 21:40:40 t6360003 kernel: DMA: 101853*4kB 7419*8kB 2*16kB 2*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB = 467692kB Mar 16 21:40:40 t6360003 kernel: Normal: 28880*4kB 121*8kB 1*16kB 1*32kB 0*64kB 1*128kB 1*256kB 0*512kB 1*1024kB = 117944kB Mar 16 21:40:40 t6360003 kernel: 1688 total pagecache pages Mar 16 21:40:40 t6360003 kernel: 564 pages in swap cache Mar 16 21:40:40 t6360003 kernel: Swap cache stats: add 1106206, delete 1105642, find 599107/618721 Mar 16 21:40:40 t6360003 kernel: Free swap = 1959300kB Mar 16 21:40:40 t6360003 kernel: Total swap = 1999992kB Mar 16 21:40:40 t6360003 kernel: 1048576 pages RAM Mar 16 21:40:40 t6360003 kernel: 20255 pages reserved Mar 16 21:40:40 t6360003 kernel: 10560 pages shared Mar 16 21:40:40 t6360003 kernel: 878998 pages non-shared Mar 16 21:40:40 t6360003 kernel: Out of memory: kill process 30502 (cc1) score 3672 or a child Mar 16 21:40:40 t6360003 kernel: Killed process 30502 (cc1) Mar 17 01:33:12 t6360003 kernel: sh invoked oom-killer: gfp_mask=0xd0, order=2, oomkilladj=0 Mar 17 01:33:12 t6360003 kernel: CPU: 5 Not tainted 2.6.28 #1 Mar 17 01:33:12 t6360003 kernel: Process sh (pid: 16756, task: 0000000004852738, ksp: 0000000050b7d738) Mar 17 01:33:12 t6360003 kernel: 07000000fbb28238 0000000050b7d860 0000000000000002 0000000000000000 Mar 17 01:33:12 t6360003 kernel: 0000000050b7d900 0000000050b7d878 0000000050b7d878 000000000010534e Mar 17 01:33:12 t6360003 kernel: 0000000000000000 0000000050b7d738 0000000000000000 000000000000000a Mar 17 01:33:12 t6360003 kernel: 000000000000000d 0000000000000000 0000000050b7d860 0000000050b7d8d8 Mar 17 01:33:12 t6360003 kernel: 00000000004a5ab0 000000000010534e 0000000050b7d860 0000000050b7d8b0 Mar 17 01:33:12 t6360003 kernel: Call Trace: Mar 17 01:33:12 t6360003 kernel: ([<0000000000105248>] show_trace+0xf4/0x144) Mar 17 01:33:12 t6360003 kernel: [<0000000000105300>] show_stack+0x68/0xf4 Mar 17 01:33:12 t6360003 kernel: [<000000000049c84c>] dump_stack+0xb0/0xc0 Mar 17 01:33:12 t6360003 kernel: [<000000000019235e>] oom_kill_process+0x9e/0x220 Mar 17 01:33:12 t6360003 kernel: [<0000000000192c30>] out_of_memory+0x17c/0x264 Mar 17 01:33:12 t6360003 kernel: [<000000000019714e>] __alloc_pages_internal+0x4f6/0x534 Mar 17 01:33:12 t6360003 kernel: [<0000000000104058>] crst_table_alloc+0x48/0x108 Mar 17 01:33:12 t6360003 kernel: [<00000000001a3f60>] __pmd_alloc+0x3c/0x1a8 Mar 17 01:33:12 t6360003 kernel: [<00000000001aa8ac>] copy_page_range+0x9ac/0xadc Mar 17 01:33:12 t6360003 kernel: [<000000000013db32>] dup_mm+0x342/0x604 Mar 17 01:33:12 t6360003 kernel: [<000000000013ef70>] copy_process+0x1118/0x1158 Mar 17 01:33:12 t6360003 kernel: [<000000000013f046>] do_fork+0x96/0x2dc Mar 17 01:33:12 t6360003 kernel: [<000000000010a402>] sys_clone+0x6a/0x78 Mar 17 01:33:12 t6360003 kernel: [<0000000000115e56>] sysc_noemu+0x10/0x16 Mar 17 01:33:12 t6360003 kernel: [<0000004d1949a152>] 0x4d1949a152 Mar 17 01:33:12 t6360003 kernel: Mem-Info: Mar 17 01:33:12 t6360003 kernel: DMA per-cpu: Mar 17 01:33:12 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: Normal per-cpu: Mar 17 01:33:12 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 30 Mar 17 01:33:12 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: Active_anon:1057 active_file:85 inactive_anon:457 Mar 17 01:33:12 t6360003 kernel: inactive_file:163 unevictable:987 dirty:6 writeback:414 unstable:0 Mar 17 01:33:12 t6360003 kernel: free:136683 slab:884736 mapped:832 pagetables:375 bounce:0 Mar 17 01:33:12 t6360003 kernel: DMA free:445420kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:8kB active_file:32kB inactive_file:4kB unevictable:0kB present:2068480kB pages_scanned:0 all_unreclaimable? no Mar 17 01:33:12 t6360003 kernel: lowmem_reserve[]: 0 2020 2020 Mar 17 01:33:12 t6360003 kernel: Normal free:101312kB min:4064kB low:5080kB high:6096kB active_anon:4228kB inactive_anon:1820kB active_file:308kB inactive_file:648kB unevictable:3948kB present:2068480kB pages_scanned:0 all_unreclaimable? no Mar 17 01:33:12 t6360003 kernel: lowmem_reserve[]: 0 0 0 Mar 17 01:33:12 t6360003 kernel: DMA: 100796*4kB 5166*8kB 5*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB = 445648kB Mar 17 01:33:12 t6360003 kernel: Normal: 24811*4kB 56*8kB 1*16kB 4*32kB 0*64kB 1*128kB 0*256kB 1*512kB 1*1024kB = 101500kB Mar 17 01:33:12 t6360003 kernel: 2265 total pagecache pages Mar 17 01:33:12 t6360003 kernel: 1197 pages in swap cache Mar 17 01:33:12 t6360003 kernel: Swap cache stats: add 3336530, delete 3335333, find 2045244/2201205 Mar 17 01:33:12 t6360003 kernel: Free swap = 1971336kB Mar 17 01:33:12 t6360003 kernel: Total swap = 1999992kB Mar 17 01:33:12 t6360003 kernel: 1048576 pages RAM Mar 17 01:33:12 t6360003 kernel: 20255 pages reserved Mar 17 01:33:12 t6360003 kernel: 9350 pages shared Mar 17 01:33:12 t6360003 kernel: 888261 pages non-shared Mar 17 01:33:12 t6360003 kernel: Out of memory: kill process 27449 (rpmbuild) score 3460 or a child Mar 17 01:33:12 t6360003 kernel: Killed process 27519 (sh) Mar 17 01:33:13 t6360003 kernel: as invoked oom-killer: gfp_mask=0xd0, order=2, oomkilladj=0 Mar 17 01:33:13 t6360003 kernel: CPU: 2 Not tainted 2.6.28 #1 Mar 17 01:33:13 t6360003 kernel: Process as (pid: 16914, task: 0000000084aba338, ksp: 000000000e3c76d8) Mar 17 01:33:13 t6360003 kernel: 0700000035e74138 000000000e3c7800 0000000000000002 0000000000000000 Mar 17 01:33:13 t6360003 kernel: 000000000e3c78a0 000000000e3c7818 000000000e3c7818 000000000010534e Mar 17 01:33:13 t6360003 kernel: 0000000000000000 000000000e3c76d8 0000000000000000 000000000000000a Mar 17 01:33:13 t6360003 kernel: 000000000000000d 0000000000000000 000000000e3c7800 000000000e3c7878 Mar 17 01:33:13 t6360003 kernel: 00000000004a5ab0 000000000010534e 000000000e3c7800 000000000e3c7850 Mar 17 01:33:13 t6360003 kernel: Call Trace: Mar 17 01:33:13 t6360003 kernel: ([<0000000000105248>] show_trace+0xf4/0x144) Mar 17 01:33:13 t6360003 kernel: [<0000000000105300>] show_stack+0x68/0xf4 Mar 17 01:33:13 t6360003 kernel: [<000000000049c84c>] dump_stack+0xb0/0xc0 Mar 17 01:33:13 t6360003 kernel: [<000000000019235e>] oom_kill_process+0x9e/0x220 Mar 17 01:33:13 t6360003 kernel: [<0000000000192c30>] out_of_memory+0x17c/0x264 Mar 17 01:33:13 t6360003 kernel: [<000000000019714e>] __alloc_pages_internal+0x4f6/0x534 Mar 17 01:33:13 t6360003 kernel: [<0000000000104058>] crst_table_alloc+0x48/0x108 Mar 17 01:33:13 t6360003 kernel: [<00000000001a3f60>] __pmd_alloc+0x3c/0x1a8 Mar 17 01:33:13 t6360003 kernel: [<00000000001a802e>] handle_mm_fault+0x262/0x9cc Mar 17 01:33:13 t6360003 kernel: [<00000000001a894e>] __get_user_pages+0x1b6/0x574 Mar 17 01:33:13 t6360003 kernel: [<00000000001a8d5a>] get_user_pages+0x4e/0x60 Mar 17 01:33:13 t6360003 kernel: [<00000000001d58c4>] get_arg_page+0x6c/0xe8 Mar 17 01:33:13 t6360003 kernel: [<00000000001d5c3a>] copy_strings+0x1aa/0x290 Mar 17 01:33:13 t6360003 kernel: [<00000000001d5d7e>] copy_strings_kernel+0x5e/0xb0 Mar 17 01:33:13 t6360003 kernel: [<00000000001d78b0>] do_execve+0x1c8/0x254 Mar 17 01:33:13 t6360003 kernel: [<000000000010a2f8>] sys_execve+0x80/0xb8 Mar 17 01:33:13 t6360003 kernel: [<0000000000115e56>] sysc_noemu+0x10/0x16 Mar 17 01:33:13 t6360003 kernel: [<0000004d1949a40c>] 0x4d1949a40c Mar 17 01:33:13 t6360003 kernel: Mem-Info: Mar 17 01:33:13 t6360003 kernel: DMA per-cpu: Mar 17 01:33:13 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: Normal per-cpu: Mar 17 01:33:13 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 12 Mar 17 01:33:13 t6360003 kernel: Active_anon:274 active_file:126 inactive_anon:92 Mar 17 01:33:13 t6360003 kernel: inactive_file:110 unevictable:987 dirty:20 writeback:222 unstable:0 Mar 17 01:33:13 t6360003 kernel: free:137753 slab:884727 mapped:901 pagetables:318 bounce:0 Mar 17 01:33:13 t6360003 kernel: DMA free:445604kB min:4064kB low:5080kB high:6096kB active_anon:8kB inactive_anon:0kB active_file:0kB inactive_file:104kB unevictable:0kB present:2068480kB pages_scanned:0 all_unreclaimable? no Mar 17 01:33:13 t6360003 kernel: lowmem_reserve[]: 0 2020 2020 Mar 17 01:33:13 t6360003 kernel: Normal free:105408kB min:4064kB low:5080kB high:6096kB active_anon:1088kB inactive_anon:368kB active_file:504kB inactive_file:336kB unevictable:3948kB present:2068480kB pages_scanned:450 all_unreclaimable? no Mar 17 01:33:13 t6360003 kernel: lowmem_reserve[]: 0 0 0 Mar 17 01:33:13 t6360003 kernel: DMA: 100811*4kB 5173*8kB 6*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 1*1024kB = 445812kB Mar 17 01:33:13 t6360003 kernel: Normal: 25877*4kB 62*8kB 1*16kB 1*32kB 1*64kB 0*128kB 0*256kB 1*512kB 1*1024kB = 105652kB Mar 17 01:33:13 t6360003 kernel: 1477 total pagecache pages Mar 17 01:33:13 t6360003 kernel: 398 pages in swap cache Mar 17 01:33:13 t6360003 kernel: Swap cache stats: add 3343439, delete 3343041, find 2048863/2205415 Mar 17 01:33:13 t6360003 kernel: Free swap = 1960020kB Mar 17 01:33:13 t6360003 kernel: Total swap = 1999992kB Mar 17 01:33:13 t6360003 kernel: 1048576 pages RAM Mar 17 01:33:13 t6360003 kernel: 20255 pages reserved Mar 17 01:33:13 t6360003 kernel: 9549 pages shared Mar 17 01:33:13 t6360003 kernel: 887159 pages non-shared Mar 17 01:33:13 t6360003 kernel: Out of memory: kill process 29305 (make) score 3403 or a child Mar 17 01:33:13 t6360003 kernel: Killed process 29320 (sh) Mar 17 01:33:14 t6360003 kernel: sh invoked oom-killer: gfp_mask=0xd0, order=2, oomkilladj=0 Mar 17 01:33:14 t6360003 kernel: CPU: 4 Not tainted 2.6.28 #1 Mar 17 01:33:14 t6360003 kernel: Process sh (pid: 16922, task: 0000000084ab6138, ksp: 0000000060781738) Mar 17 01:33:14 t6360003 kernel: 070000003d7a0438 0000000060781860 0000000000000002 0000000000000000 Mar 17 01:33:14 t6360003 kernel: 0000000060781900 0000000060781878 0000000060781878 000000000010534e Mar 17 01:33:14 t6360003 kernel: 0000000000000000 0000000060781738 0000000000000000 000000000000000a Mar 17 01:33:14 t6360003 kernel: 000000000000000d 0000000000000000 0000000060781860 00000000607818d8 Mar 17 01:33:14 t6360003 kernel: 00000000004a5ab0 000000000010534e 0000000060781860 00000000607818b0 Mar 17 01:33:14 t6360003 kernel: Call Trace: Mar 17 01:33:14 t6360003 kernel: ([<0000000000105248>] show_trace+0xf4/0x144) Mar 17 01:33:14 t6360003 kernel: [<0000000000105300>] show_stack+0x68/0xf4 Mar 17 01:33:14 t6360003 kernel: [<000000000049c84c>] dump_stack+0xb0/0xc0 Mar 17 01:33:14 t6360003 kernel: [<000000000019235e>] oom_kill_process+0x9e/0x220 Mar 17 01:33:14 t6360003 kernel: [<0000000000192c30>] out_of_memory+0x17c/0x264 Mar 17 01:33:14 t6360003 kernel: [<000000000019714e>] __alloc_pages_internal+0x4f6/0x534 Mar 17 01:33:14 t6360003 kernel: [<0000000000104058>] crst_table_alloc+0x48/0x108 Mar 17 01:33:14 t6360003 kernel: [<00000000001a3f60>] __pmd_alloc+0x3c/0x1a8 Mar 17 01:33:14 t6360003 kernel: [<00000000001aa8ac>] copy_page_range+0x9ac/0xadc Mar 17 01:33:14 t6360003 kernel: [<000000000013db32>] dup_mm+0x342/0x604 Mar 17 01:33:14 t6360003 kernel: [<000000000013ef70>] copy_process+0x1118/0x1158 Mar 17 01:33:14 t6360003 kernel: [<000000000013f046>] do_fork+0x96/0x2dc Mar 17 01:33:14 t6360003 kernel: [<000000000010a402>] sys_clone+0x6a/0x78 Mar 17 01:33:14 t6360003 kernel: [<0000000000115e56>] sysc_noemu+0x10/0x16 Mar 17 01:33:14 t6360003 kernel: [<0000004d1949a152>] 0x4d1949a152 Mar 17 01:33:14 t6360003 kernel: Mem-Info: Mar 17 01:33:14 t6360003 kernel: DMA per-cpu: Mar 17 01:33:14 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: Normal per-cpu: Mar 17 01:33:14 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 42 Mar 17 01:33:14 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 50 Mar 17 01:33:14 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: Active_anon:171 active_file:100 inactive_anon:74 Mar 17 01:33:14 t6360003 kernel: inactive_file:78 unevictable:987 dirty:0 writeback:146 unstable:0 Mar 17 01:33:14 t6360003 kernel: free:137942 slab:884626 mapped:858 pagetables:357 bounce:0 Mar 17 01:33:14 t6360003 kernel: DMA free:445612kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:8kB active_file:104kB inactive_file:0kB unevictable:0kB present:2068480kB pages_scanned:0 all_unreclaimable? no Mar 17 01:33:14 t6360003 kernel: lowmem_reserve[]: 0 2020 2020 Mar 17 01:33:14 t6360003 kernel: Normal free:106156kB min:4064kB low:5080kB high:6096kB active_anon:684kB inactive_anon:288kB active_file:296kB inactive_file:312kB unevictable:3948kB present:2068480kB pages_scanned:544 all_unreclaimable? no Mar 17 01:33:14 t6360003 kernel: lowmem_reserve[]: 0 0 0 Mar 17 01:33:14 t6360003 kernel: DMA: 100818*4kB 5175*8kB 2*16kB 3*32kB 1*64kB 0*128kB 0*256kB 0*512kB 1*1024kB = 445888kB Mar 17 01:33:14 t6360003 kernel: Normal: 25978*4kB 76*8kB 2*16kB 1*32kB 1*64kB 0*128kB 0*256kB 1*512kB 1*1024kB = 106184kB Mar 17 01:33:14 t6360003 kernel: 1315 total pagecache pages Mar 17 01:33:14 t6360003 kernel: 321 pages in swap cache Mar 17 01:33:14 t6360003 kernel: Swap cache stats: add 3349005, delete 3348684, find 2049544/2206461 Mar 17 01:33:14 t6360003 kernel: Free swap = 1947096kB Mar 17 01:33:14 t6360003 kernel: Total swap = 1999992kB Mar 17 01:33:14 t6360003 kernel: 1048576 pages RAM Mar 17 01:33:14 t6360003 kernel: 20255 pages reserved Mar 17 01:33:14 t6360003 kernel: 9878 pages shared Mar 17 01:33:14 t6360003 kernel: 887456 pages non-shared Mar 17 01:33:14 t6360003 kernel: Out of memory: kill process 16782 (cc1) score 3375 or a child Mar 17 01:33:14 t6360003 kernel: Killed process 16782 (cc1)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 8 lines · On Tuesday 17 March 2009 20:00:49 Heiko Carstens wrote:
Hi all,
the below looks like there is some bug in the memory management code. Even if there seems to be plenty of memory available the oom-killer kills processes.
The below happened after 27 days uptime, memory seems to be heavily fragmented,
What slab allocator are you using?
Quoted 2 lines
but there are stills larger portions of memory free that could satisfy an order 2 allocation. Any idea why this fails?
We still keep some watermarks around for higher order pages (for GFP_ATOMIC and page reclaim etc purposes).
Possibly it is being a bit aggressive with the higher orders; when I added it I just made a guess at a sane function. See mm/page_alloc.c:zone_watermark_ok(). In particular, the for loop at the end of the function is the slowpath where it is calculating higher order watermarks. The min >>= 1 statement, 1 could be replaced with 2. Or we could just keep reserves for 0..PAGE_ALLOC_COSTLY_ORDER and then give away _any_ free pages for higher orders than that.
Still would seem to just prolong the inevitable? Exploding after 27 days of uptime is rather sad :(
Quoted 5 lines
[root@t6360003 ~]# uptime
09:33:41 up 27 days, 22:55, 1 user, load average: 0.00, 0.00, 0.00Mar 16 21:40:40 t6360003 kernel: basename invoked oom-killer:gfp_mask=0xd0, order=2, oomkilladj=0 Mar 16 21:40:40 t6360003 kernel: CPU:
order 2, __GFP_WAIT|__GFP_IO|__GFP_FS.
Quoted 301 lines
0 Not tainted 2.6.28 #1
Mar 16 21:40:40 t6360003 kernel: Process basename (pid: 30555, task:
000000007baa6838, ksp: 0000000063867968) Mar 16 21:40:40 t6360003 kernel:0700000084a8c2380000000063867a900000000000000002 0000000000000000 Mar 16
21:40:40 t6360003 kernel:0000000063867b300000000063867aa80000000063867aa8000000000010534eMar 16 21:40:40 t6360003 kernel:
0000000000000000 0000000063867968 0000000000000000000000000000000aMar 16
21:40:40 t6360003 kernel:000000000000000d00000000000000000000000063867a900000000063867b08Mar 16 21:40:40 t6360003 kernel:00000000004a5ab0000000000010534e0000000063867a900000000063867ae0Mar 16 21:40:40 t6360003 kernel: Call Trace:Mar 16 21:40:40 t6360003 kernel: ([<0000000000105248>] show_trace+0xf4/0x144) Mar 16 21:40:40 t6360003 kernel: [<0000000000105300>] show_stack+0x68/0xf4 Mar 16 21:40:40 t6360003 kernel: [<000000000049c84c>] dump_stack+0xb0/0xc0 Mar 16 21:40:40 t6360003 kernel: [<000000000019235e>] oom_kill_process+0x9e/0x220 Mar 16 21:40:40 t6360003 kernel: [<0000000000192c30>] out_of_memory+0x17c/0x264 Mar 16 21:40:40 t6360003 kernel: [<000000000019714e>] __alloc_pages_internal+0x4f6/0x534 Mar 16 21:40:40 t6360003 kernel: [<0000000000104058>] crst_table_alloc+0x48/0x108 Mar 16 21:40:40 t6360003 kernel: [<00000000001a3f60>] __pmd_alloc+0x3c/0x1a8 Mar 16 21:40:40 t6360003 kernel: [<00000000001a802e>] handle_mm_fault+0x262/0x9cc Mar 16 21:40:40 t6360003 kernel: [<00000000004a1a7a>] do_dat_exception+0x30a/0x41c Mar 16 21:40:40 t6360003 kernel: [<0000000000115e5c>] sysc_return+0x0/0x8 Mar 16 21:40:40 t6360003 kernel: [<0000004d193bfae0>] 0x4d193bfae0 Mar 16 21:40:40 t6360003 kernel: Mem-Info: Mar 16 21:40:40 t6360003 kernel: DMA per-cpu: Mar 16 21:40:40 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: Normal per-cpu: Mar 16 21:40:40 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 30 Mar 16 21:40:40 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: Active_anon:372 active_file:45inactive_anon:154 Mar 16 21:40:40 t6360003 kernel: inactive_file:152 unevictable:987 dirty:0 writeback:188 unstable:0 Mar 16 21:40:40 t6360003
kernel: free:146348 slab:875833 mapped:805 pagetables:378 bounce:0 Mar 16 21:40:40 t6360003 kernel: DMA free:467728kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:116kB unevictable:0kB present:2068480kB pages_scanned:0all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 2020 2020Mar 16 21:40:40 t6360003 kernel: Normal free:117664kB min:4064kB low:5080kBhigh:6096kB active_anon:1488kB inactive_anon:616kB active_file:188kB inactive_file:492kB unevictable:3948kB present:2068480kB pages_scanned:128
all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 0 0Mar 16 21:40:40 t6360003 kernel: DMA: 101853*4kB 7419*8kB 2*16kB 2*32kB1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB = 467692kB Mar 16 21:40:40 t6360003
kernel: Normal: 28880*4kB 121*8kB 1*16kB 1*32kB 0*64kB 1*128kB 1*256kB 0*512kB 1*1024kB = 117944kB Mar 16 21:40:40 t6360003 kernel: 1688 total pagecache pagesMar 16 21:40:40 t6360003 kernel: 564 pages in swap cache Mar 16 21:40:40 t6360003 kernel: Swap cache stats: add 1106206, delete 1105642, find 599107/618721 Mar 16 21:40:40 t6360003 kernel: Free swap = 1959300kB Mar 16 21:40:40 t6360003 kernel: Total swap = 1999992kB Mar 16 21:40:40 t6360003 kernel: 1048576 pages RAM Mar 16 21:40:40 t6360003 kernel: 20255 pages reserved Mar 16 21:40:40 t6360003 kernel: 10560 pages shared Mar 16 21:40:40 t6360003 kernel: 878998 pages non-shared Mar 16 21:40:40 t6360003 kernel: Out of memory: kill process 30502 (cc1) score 3672 or a child Mar 16 21:40:40 t6360003 kernel: Killed process 30502 (cc1) Mar 17 01:33:12 t6360003 kernel: sh invoked oom-killer: gfp_mask=0xd0, order=2, oomkilladj=0 Mar 17 01:33:12 t6360003 kernel: CPU: 5 Not tainted 2.6.28 #1 Mar 17 01:33:12 t6360003 kernel: Process sh (pid: 16756, task:0000000004852738, ksp:
0000000050b7d738) Mar 17 01:33:12 t6360003 kernel:07000000fbb282380000000050b7d8600000000000000002 0000000000000000 Mar 17
01:33:12 t6360003 kernel:0000000050b7d9000000000050b7d8780000000050b7d878000000000010534eMar 17 01:33:12 t6360003 kernel:
00000000000000000000000050b7d7380000000000000000000000000000000aMar 17
01:33:12 t6360003 kernel:000000000000000d00000000000000000000000050b7d8600000000050b7d8d8Mar 17 01:33:12 t6360003 kernel:00000000004a5ab0000000000010534e0000000050b7d8600000000050b7d8b0Mar 17 01:33:12 t6360003 kernel: Call Trace:Mar 17 01:33:12 t6360003 kernel: ([<0000000000105248>] show_trace+0xf4/0x144) Mar 17 01:33:12 t6360003 kernel: [<0000000000105300>] show_stack+0x68/0xf4 Mar 17 01:33:12 t6360003 kernel: [<000000000049c84c>] dump_stack+0xb0/0xc0 Mar 17 01:33:12 t6360003 kernel: [<000000000019235e>] oom_kill_process+0x9e/0x220 Mar 17 01:33:12 t6360003 kernel: [<0000000000192c30>] out_of_memory+0x17c/0x264 Mar 17 01:33:12 t6360003 kernel: [<000000000019714e>] __alloc_pages_internal+0x4f6/0x534 Mar 17 01:33:12 t6360003 kernel: [<0000000000104058>] crst_table_alloc+0x48/0x108 Mar 17 01:33:12 t6360003 kernel: [<00000000001a3f60>] __pmd_alloc+0x3c/0x1a8 Mar 17 01:33:12 t6360003 kernel: [<00000000001aa8ac>] copy_page_range+0x9ac/0xadc Mar 17 01:33:12 t6360003 kernel: [<000000000013db32>] dup_mm+0x342/0x604 Mar 17 01:33:12 t6360003 kernel: [<000000000013ef70>] copy_process+0x1118/0x1158 Mar 17 01:33:12 t6360003 kernel: [<000000000013f046>] do_fork+0x96/0x2dc Mar 17 01:33:12 t6360003 kernel: [<000000000010a402>] sys_clone+0x6a/0x78 Mar 17 01:33:12 t6360003 kernel: [<0000000000115e56>] sysc_noemu+0x10/0x16 Mar 17 01:33:12 t6360003 kernel: [<0000004d1949a152>] 0x4d1949a152 Mar 17 01:33:12 t6360003 kernel: Mem-Info: Mar 17 01:33:12 t6360003 kernel: DMA per-cpu: Mar 17 01:33:12 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: Normal per-cpu: Mar 17 01:33:12 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 30 Mar 17 01:33:12 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 17 01:33:12 t6360003 kernel: Active_anon:1057 active_file:85inactive_anon:457 Mar 17 01:33:12 t6360003 kernel: inactive_file:163 unevictable:987 dirty:6 writeback:414 unstable:0 Mar 17 01:33:12 t6360003
kernel: free:136683 slab:884736 mapped:832 pagetables:375 bounce:0 Mar 17 01:33:12 t6360003 kernel: DMA free:445420kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:8kB active_file:32kB inactive_file:4kB unevictable:0kB present:2068480kB pages_scanned:0all_unreclaimable? no Mar 17 01:33:12 t6360003 kernel: lowmem_reserve[]: 0 2020 2020Mar 17 01:33:12 t6360003 kernel: Normal free:101312kB min:4064kB low:5080kBhigh:6096kB active_anon:4228kB inactive_anon:1820kB active_file:308kB inactive_file:648kB unevictable:3948kB present:2068480kB pages_scanned:0
all_unreclaimable? no Mar 17 01:33:12 t6360003 kernel: lowmem_reserve[]: 0 0 0Mar 17 01:33:12 t6360003 kernel: DMA: 100796*4kB 5166*8kB 5*16kB 1*32kB0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB = 445648kB Mar 17 01:33:12 t6360003
kernel: Normal: 24811*4kB 56*8kB 1*16kB 4*32kB 0*64kB 1*128kB 0*256kB 1*512kB 1*1024kB = 101500kB Mar 17 01:33:12 t6360003 kernel: 2265 total pagecache pagesMar 17 01:33:12 t6360003 kernel: 1197 pages in swap cache Mar 17 01:33:12 t6360003 kernel: Swap cache stats: add 3336530, delete 3335333, find 2045244/2201205 Mar 17 01:33:12 t6360003 kernel: Free swap = 1971336kB Mar 17 01:33:12 t6360003 kernel: Total swap = 1999992kB Mar 17 01:33:12 t6360003 kernel: 1048576 pages RAM Mar 17 01:33:12 t6360003 kernel: 20255 pages reserved Mar 17 01:33:12 t6360003 kernel: 9350 pages shared Mar 17 01:33:12 t6360003 kernel: 888261 pages non-shared Mar 17 01:33:12 t6360003 kernel: Out of memory: kill process 27449 (rpmbuild) score 3460 or a child Mar 17 01:33:12 t6360003 kernel: Killed process 27519 (sh) Mar 17 01:33:13 t6360003 kernel: as invoked oom-killer: gfp_mask=0xd0, order=2, oomkilladj=0 Mar 17 01:33:13 t6360003 kernel: CPU: 2 Not tainted 2.6.28 #1 Mar 17 01:33:13 t6360003 kernel: Process as (pid: 16914, task:
0000000084aba338, ksp:000000000e3c76d8) Mar 17 01:33:13 t6360003 kernel:0700000035e74138000000000e3c78000000000000000002 0000000000000000 Mar 17
01:33:13 t6360003 kernel:000000000e3c78a0000000000e3c7818000000000e3c7818000000000010534eMar 17 01:33:13 t6360003 kernel:
0000000000000000000000000e3c76d80000000000000000000000000000000aMar 17
01:33:13 t6360003 kernel:000000000000000d0000000000000000000000000e3c7800000000000e3c7878Mar 17 01:33:13 t6360003 kernel:00000000004a5ab0000000000010534e000000000e3c7800000000000e3c7850Mar 17 01:33:13 t6360003 kernel: Call Trace:Mar 17 01:33:13 t6360003 kernel: ([<0000000000105248>] show_trace+0xf4/0x144) Mar 17 01:33:13 t6360003 kernel: [<0000000000105300>] show_stack+0x68/0xf4 Mar 17 01:33:13 t6360003 kernel: [<000000000049c84c>] dump_stack+0xb0/0xc0 Mar 17 01:33:13 t6360003 kernel: [<000000000019235e>] oom_kill_process+0x9e/0x220 Mar 17 01:33:13 t6360003 kernel: [<0000000000192c30>] out_of_memory+0x17c/0x264 Mar 17 01:33:13 t6360003 kernel: [<000000000019714e>] __alloc_pages_internal+0x4f6/0x534 Mar 17 01:33:13 t6360003 kernel: [<0000000000104058>] crst_table_alloc+0x48/0x108 Mar 17 01:33:13 t6360003 kernel: [<00000000001a3f60>] __pmd_alloc+0x3c/0x1a8 Mar 17 01:33:13 t6360003 kernel: [<00000000001a802e>] handle_mm_fault+0x262/0x9cc Mar 17 01:33:13 t6360003 kernel: [<00000000001a894e>] __get_user_pages+0x1b6/0x574 Mar 17 01:33:13 t6360003 kernel: [<00000000001a8d5a>] get_user_pages+0x4e/0x60 Mar 17 01:33:13 t6360003 kernel: [<00000000001d58c4>] get_arg_page+0x6c/0xe8 Mar 17 01:33:13 t6360003 kernel: [<00000000001d5c3a>] copy_strings+0x1aa/0x290 Mar 17 01:33:13 t6360003 kernel: [<00000000001d5d7e>] copy_strings_kernel+0x5e/0xb0 Mar 17 01:33:13 t6360003 kernel: [<00000000001d78b0>] do_execve+0x1c8/0x254 Mar 17 01:33:13 t6360003 kernel: [<000000000010a2f8>] sys_execve+0x80/0xb8 Mar 17 01:33:13 t6360003 kernel: [<0000000000115e56>] sysc_noemu+0x10/0x16 Mar 17 01:33:13 t6360003 kernel: [<0000004d1949a40c>] 0x4d1949a40c Mar 17 01:33:13 t6360003 kernel: Mem-Info: Mar 17 01:33:13 t6360003 kernel: DMA per-cpu: Mar 17 01:33:13 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: Normal per-cpu: Mar 17 01:33:13 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:13 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 12 Mar 17 01:33:13 t6360003 kernel: Active_anon:274 active_file:126inactive_anon:92 Mar 17 01:33:13 t6360003 kernel: inactive_file:110 unevictable:987 dirty:20 writeback:222 unstable:0 Mar 17 01:33:13 t6360003
kernel: free:137753 slab:884727 mapped:901 pagetables:318 bounce:0 Mar 17 01:33:13 t6360003 kernel: DMA free:445604kB min:4064kB low:5080kB high:6096kB active_anon:8kB inactive_anon:0kB active_file:0kB inactive_file:104kB unevictable:0kB present:2068480kB pages_scanned:0all_unreclaimable? no Mar 17 01:33:13 t6360003 kernel: lowmem_reserve[]: 0 2020 2020Mar 17 01:33:13 t6360003 kernel: Normal free:105408kB min:4064kB low:5080kBhigh:6096kB active_anon:1088kB inactive_anon:368kB active_file:504kB inactive_file:336kB unevictable:3948kB present:2068480kB pages_scanned:450
all_unreclaimable? no Mar 17 01:33:13 t6360003 kernel: lowmem_reserve[]: 0 0 0Mar 17 01:33:13 t6360003 kernel: DMA: 100811*4kB 5173*8kB 6*16kB 0*32kB1*64kB 0*128kB 0*256kB 0*512kB 1*1024kB = 445812kB Mar 17 01:33:13 t6360003
kernel: Normal: 25877*4kB 62*8kB 1*16kB 1*32kB 1*64kB 0*128kB 0*256kB 1*512kB 1*1024kB = 105652kB Mar 17 01:33:13 t6360003 kernel: 1477 total pagecache pagesMar 17 01:33:13 t6360003 kernel: 398 pages in swap cache Mar 17 01:33:13 t6360003 kernel: Swap cache stats: add 3343439, delete 3343041, find 2048863/2205415 Mar 17 01:33:13 t6360003 kernel: Free swap = 1960020kB Mar 17 01:33:13 t6360003 kernel: Total swap = 1999992kB Mar 17 01:33:13 t6360003 kernel: 1048576 pages RAM Mar 17 01:33:13 t6360003 kernel: 20255 pages reserved Mar 17 01:33:13 t6360003 kernel: 9549 pages shared Mar 17 01:33:13 t6360003 kernel: 887159 pages non-shared Mar 17 01:33:13 t6360003 kernel: Out of memory: kill process 29305 (make) score 3403 or a child Mar 17 01:33:13 t6360003 kernel: Killed process 29320 (sh) Mar 17 01:33:14 t6360003 kernel: sh invoked oom-killer: gfp_mask=0xd0, order=2, oomkilladj=0 Mar 17 01:33:14 t6360003 kernel: CPU: 4 Not tainted 2.6.28 #1 Mar 17 01:33:14 t6360003 kernel: Process sh (pid: 16922, task:
0000000084ab6138, ksp: 0000000060781738) Mar 17 01:33:14 t6360003 kernel:070000003d7a04380000000060781860 0000000000000002 0000000000000000 Mar 17
01:33:14 t6360003 kernel: 0000000060781900 0000000060781878
0000000060781878000000000010534eMar 17 01:33:14 t6360003 kernel:
0000000000000000 0000000060781738 0000000000000000000000000000000aMar 17
01:33:14 t6360003 kernel:000000000000000d0000000000000000
000000006078186000000000607818d8Mar 17 01:33:14 t6360003 kernel:00000000004a5ab0000000000010534e000000006078186000000000607818b0Mar 17 01:33:14 t6360003 kernel: Call Trace:Mar 17 01:33:14 t6360003 kernel: ([<0000000000105248>] show_trace+0xf4/0x144) Mar 17 01:33:14 t6360003 kernel: [<0000000000105300>] show_stack+0x68/0xf4 Mar 17 01:33:14 t6360003 kernel: [<000000000049c84c>] dump_stack+0xb0/0xc0 Mar 17 01:33:14 t6360003 kernel: [<000000000019235e>] oom_kill_process+0x9e/0x220 Mar 17 01:33:14 t6360003 kernel: [<0000000000192c30>] out_of_memory+0x17c/0x264 Mar 17 01:33:14 t6360003 kernel: [<000000000019714e>] __alloc_pages_internal+0x4f6/0x534 Mar 17 01:33:14 t6360003 kernel: [<0000000000104058>] crst_table_alloc+0x48/0x108 Mar 17 01:33:14 t6360003 kernel: [<00000000001a3f60>] __pmd_alloc+0x3c/0x1a8 Mar 17 01:33:14 t6360003 kernel: [<00000000001aa8ac>] copy_page_range+0x9ac/0xadc Mar 17 01:33:14 t6360003 kernel: [<000000000013db32>] dup_mm+0x342/0x604 Mar 17 01:33:14 t6360003 kernel: [<000000000013ef70>] copy_process+0x1118/0x1158 Mar 17 01:33:14 t6360003 kernel: [<000000000013f046>] do_fork+0x96/0x2dc Mar 17 01:33:14 t6360003 kernel: [<000000000010a402>] sys_clone+0x6a/0x78 Mar 17 01:33:14 t6360003 kernel: [<0000000000115e56>] sysc_noemu+0x10/0x16 Mar 17 01:33:14 t6360003 kernel: [<0000004d1949a152>] 0x4d1949a152 Mar 17 01:33:14 t6360003 kernel: Mem-Info: Mar 17 01:33:14 t6360003 kernel: DMA per-cpu: Mar 17 01:33:14 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: Normal per-cpu: Mar 17 01:33:14 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 42 Mar 17 01:33:14 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 50 Mar 17 01:33:14 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 17 01:33:14 t6360003 kernel: Active_anon:171 active_file:100inactive_anon:74 Mar 17 01:33:14 t6360003 kernel: inactive_file:78 unevictable:987 dirty:0 writeback:146 unstable:0 Mar 17 01:33:14 t6360003
kernel: free:137942 slab:884626 mapped:858 pagetables:357 bounce:0 Mar 17 01:33:14 t6360003 kernel: DMA free:445612kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:8kB active_file:104kB inactive_file:0kB unevictable:0kB present:2068480kB pages_scanned:0all_unreclaimable? no Mar 17 01:33:14 t6360003 kernel: lowmem_reserve[]: 0 2020 2020Mar 17 01:33:14 t6360003 kernel: Normal free:106156kB min:4064kB low:5080kBhigh:6096kB active_anon:684kB inactive_anon:288kB active_file:296kB inactive_file:312kB unevictable:3948kB present:2068480kB pages_scanned:544
all_unreclaimable? no Mar 17 01:33:14 t6360003 kernel: lowmem_reserve[]: 0 0 0Mar 17 01:33:14 t6360003 kernel: DMA: 100818*4kB 5175*8kB 2*16kB 3*32kB1*64kB 0*128kB 0*256kB 0*512kB 1*1024kB = 445888kB Mar 17 01:33:14 t6360003
kernel: Normal: 25978*4kB 76*8kB 2*16kB 1*32kB 1*64kB 0*128kB 0*256kB 1*512kB 1*1024kB = 106184kB Mar 17 01:33:14 t6360003 kernel: 1315 total pagecache pagesMar 17 01:33:14 t6360003 kernel: 321 pages in swap cache Mar 17 01:33:14 t6360003 kernel: Swap cache stats: add 3349005, delete 3348684, find 2049544/2206461 Mar 17 01:33:14 t6360003 kernel: Free swap = 1947096kB Mar 17 01:33:14 t6360003 kernel: Total swap = 1999992kB Mar 17 01:33:14 t6360003 kernel: 1048576 pages RAM Mar 17 01:33:14 t6360003 kernel: 20255 pages reserved Mar 17 01:33:14 t6360003 kernel: 9878 pages shared Mar 17 01:33:14 t6360003 kernel: 887456 pages non-shared Mar 17 01:33:14 t6360003 kernel: Out of memory: kill process 16782 (cc1)
Quoted 2 lines
score 3375 or a child Mar 17 01:33:14 t6360003 kernel: Killed process 16782 (cc1)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Andrew Morton
maintainerQuoted 48 lines · On Tue, 17 Mar 2009 10:00:49 +0100 Heiko Carstens <[email protected]>…
Hi all,
the below looks like there is some bug in the memory management code. Even if there seems to be plenty of memory available the oom-killer kills processes.
The below happened after 27 days uptime, memory seems to be heavily fragmented, but there are stills larger portions of memory free that could satisfy an order 2 allocation. Any idea why this fails?
[root@t6360003 ~]# uptime
09:33:41 up 27 days, 22:55, 1 user, load average: 0.00, 0.00, 0.00Mar 16 21:40:40 t6360003 kernel: basename invoked oom-killer: gfp_mask=0xd0, order=2, oomkilladj=0 Mar 16 21:40:40 t6360003 kernel: CPU: 0 Not tainted 2.6.28 #1 Mar 16 21:40:40 t6360003 kernel: Process basename (pid: 30555, task: 000000007baa6838, ksp: 0000000063867968) Mar 16 21:40:40 t6360003 kernel: 0700000084a8c238 0000000063867a90 0000000000000002 0000000000000000 Mar 16 21:40:40 t6360003 kernel: 0000000063867b30 0000000063867aa8 0000000063867aa8 000000000010534e Mar 16 21:40:40 t6360003 kernel: 0000000000000000 0000000063867968 0000000000000000 000000000000000a Mar 16 21:40:40 t6360003 kernel: 000000000000000d 0000000000000000 0000000063867a90 0000000063867b08 Mar 16 21:40:40 t6360003 kernel: 00000000004a5ab0 000000000010534e 0000000063867a90 0000000063867ae0 Mar 16 21:40:40 t6360003 kernel: Call Trace: Mar 16 21:40:40 t6360003 kernel: ([<0000000000105248>] show_trace+0xf4/0x144) Mar 16 21:40:40 t6360003 kernel: [<0000000000105300>] show_stack+0x68/0xf4 Mar 16 21:40:40 t6360003 kernel: [<000000000049c84c>] dump_stack+0xb0/0xc0 Mar 16 21:40:40 t6360003 kernel: [<000000000019235e>] oom_kill_process+0x9e/0x220 Mar 16 21:40:40 t6360003 kernel: [<0000000000192c30>] out_of_memory+0x17c/0x264 Mar 16 21:40:40 t6360003 kernel: [<000000000019714e>] __alloc_pages_internal+0x4f6/0x534 Mar 16 21:40:40 t6360003 kernel: [<0000000000104058>] crst_table_alloc+0x48/0x108 Mar 16 21:40:40 t6360003 kernel: [<00000000001a3f60>] __pmd_alloc+0x3c/0x1a8 Mar 16 21:40:40 t6360003 kernel: [<00000000001a802e>] handle_mm_fault+0x262/0x9cc Mar 16 21:40:40 t6360003 kernel: [<00000000004a1a7a>] do_dat_exception+0x30a/0x41c Mar 16 21:40:40 t6360003 kernel: [<0000000000115e5c>] sysc_return+0x0/0x8 Mar 16 21:40:40 t6360003 kernel: [<0000004d193bfae0>] 0x4d193bfae0 Mar 16 21:40:40 t6360003 kernel: Mem-Info: Mar 16 21:40:40 t6360003 kernel: DMA per-cpu: Mar 16 21:40:40 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: Normal per-cpu: Mar 16 21:40:40 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 30 Mar 16 21:40:40 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0
Quoted 8 lines
Mar 16 21:40:40 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: Active_anon:372 active_file:45 inactive_anon:154 Mar 16 21:40:40 t6360003 kernel: inactive_file:152 unevictable:987 dirty:0 writeback:188 unstable:0 Mar 16 21:40:40 t6360003 kernel: free:146348 slab:875833 mapped:805 pagetables:378 bounce:0 Mar 16 21:40:40 t6360003 kernel: DMA free:467728kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:116kB unevictable:0kB present:2068480kB pages_scanned:0 all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 2020 2020 Mar 16 21:40:40 t6360003 kernel: Normal free:117664kB min:4064kB low:5080kB high:6096kB active_anon:1488kB inactive_anon:616kB active_file:188kB inactive_file:492kB unevictable:3948kB present:2068480kB pages_scanned:128 all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 0 0
The scanner has wrung pretty much all it can out of the reclaimable pages - the LRUs are nearly empty. There's a few hundred MB free and apparently we don't have four physically contiguous free pages anywhere. It's believeable.
The question is: where the heck did all your memory go? You have 2GB of ZONE_NORMAL memory in that machine, but only a tenth of it is visible to the page reclaim code.
Something must have allocated (and possibly leaked) it.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 9 lines · On Tue, 17 Mar 2009 20:51:13 +1100 Nick Piggin <[email protected]> wrote:
Quoted 6 lines · On Tuesday 17 March 2009 20:00:49 Heiko Carstens wrote:
the below looks like there is some bug in the memory management code. Even if there seems to be plenty of memory available the oom-killer kills processes.
The below happened after 27 days uptime, memory seems to be heavily fragmented,
What slab allocator are you using?
That was SLAB.
Quoted 14 lines
Quoted 2 lines
but there are stills larger portions of memory free that could satisfy an order 2 allocation. Any idea why this fails?
We still keep some watermarks around for higher order pages (for
GFP_ATOMICand page reclaim etc purposes).Possibly it is being a bit aggressive with the higher orders; when I added it I just made a guess at a sane function. See mm/page_alloc.c:zone_watermark_ok(). In particular, the for loop at the end of the function is the slowpath where it is calculating higher order watermarks. The min >>= 1 statement, 1 could be replaced with 2. Or we could just keep reserves for 0..PAGE_ALLOC_COSTLY_ORDER and then give away _any_ free pages for higher orders than that.
Quoted 2 lines
Still would seem to just prolong the inevitable? Exploding after 27 days of uptime is rather sad :(
Yes, it seems to look more like a memory leak. Hmm..
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 13 lines · On Tue, 17 Mar 2009 02:46:05 -0700 Andrew Morton <[email protected]>…
Quoted 7 lines
Mar 16 21:40:40 t6360003 kernel: Active_anon:372 active_file:45 inactive_anon:154 Mar 16 21:40:40 t6360003 kernel: inactive_file:152 unevictable:987 dirty:0 writeback:188 unstable:0 Mar 16 21:40:40 t6360003 kernel: free:146348 slab:875833 mapped:805 pagetables:378 bounce:0 Mar 16 21:40:40 t6360003 kernel: DMA free:467728kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:116kB unevictable:0kB present:2068480kB pages_scanned:0 all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 2020 2020 Mar 16 21:40:40 t6360003 kernel: Normal free:117664kB min:4064kB low:5080kB high:6096kB active_anon:1488kB inactive_anon:616kB active_file:188kB inactive_file:492kB unevictable:3948kB present:2068480kB pages_scanned:128 all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 0 0The scanner has wrung pretty much all it can out of the reclaimable pages - the LRUs are nearly empty. There's a few hundred MB free and apparently we don't have four physically contiguous free pages anywhere. It's believeable.
Quoted 5 lines
The question is: where the heck did all your memory go? You have 2GB of
ZONE_NORMALmemory in that machine, but only a tenth of it is visible to the page reclaim code.Something must have allocated (and possibly leaked) it.
Looks like most of the memory went for dentries and inodes. slabtop output:
Active / Total Objects (% used) : 8172165 / 8326954 (98.1%) Active / Total Slabs (% used) : 903692 / 903698 (100.0%) Active / Total Caches (% used) : 91 / 144 (63.2%) Active / Total Size (% used) : 3251262.44K / 3281384.22K (99.1%)
Minimum / Average / Maximum Object : 0.02K / 0.39K / 1024.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
3960036 3960017 99% 0.59K 660006 6 2640024K inode_cache
4137155 3997581 96% 0.20K 217745 19 870980K dentry
69776 69744 99% 0.80K 17444 4 69776K ext3_inode_cache
96792 92892 95% 0.10K 2616 37 10464K buffer_head
10024 9895 98% 0.54K 1432 7 5728K radix_tree_node
1093 1087 99% 4.00K 1093 1 4372K size-4096
14805 14711 99% 0.25K 987 15 3948K size-256
2400 2381 99% 0.80K 480 5 1920K shmem_inode_cache
1416 1416 100% 1.00K 354 4 1416K size-1024
152 152 100% 5.59K 152 1 1216K task_struct
370 359 97% 2.00K 185 2 740K size-2048
9381 4359 46% 0.06K 159 59 636K size-64
8 8 100% 64.00K 8 1 512K size-65536
976 952 97% 0.50K 122 8 488K size-512
177 156 88% 2.25K 59 3 472K sighand_cache
6254 6070 97% 0.07K 118 53 472K sysfs_dir_cache
1335 422 31% 0.25K 89 15 356K filp
1830 1298 70% 0.12K 61 30 244K size-128
1288 1061 82% 0.16K 56 23 224K vm_area_struct
184 160 86% 1.00K 46 4 184K signal_cache
4704 4548 96% 0.03K 42 112 168K size-32
205 178 86% 0.75K 41 5 164K sock_inode_cache
234 234 100% 0.64K 39 6 156K proc_inode_cache
150 143 95% 0.75K 30 5 120K kmem_cache
120 97 80% 1.00K 30 4 120K files_cache
6 6 100% 16.00K 6 1 96K size-16384
720 124 17% 0.12K 24 30 96K pid
140 116 82% 0.53K 20 7 80K idr_layer_cache
30 30 100% 2.11K 10 3 80K blkdev_queue
18 18 100% 4.00K 18 1 72K biovec-256
17 17 100% 4.00K 17 1 68K size-4096(DMA)
68 67 98% 1.00K 17 4 68K RAWv6
2 2 100% 32.00K 2 1 64K size-32768
65 65 100% 0.75K 13 5 52K RAW
48 48 100% 1.00K 12 4 48K mm_struct
40 36 90% 1.00K 10 4 40K bdev_cache
50 19 38% 0.75K 10 5 40K UNIX
400 42 10% 0.09K 10 40 40K journal_head
18 18 100% 2.00K 9 2 36K biovec-128
472 96 20% 0.06K 8 59 32K fs_cache
105 105 100% 0.25K 7 15 28K skbuff_head_cache
210 18 8% 0.12K 7 30 28K bio
24 21 87% 1.00K 6 4 24K size-1024(DMA)
864 489 56% 0.02K 6 144 24K anon_vma
24 18 75% 1.00K 6 4 24K biovec-64
35 32 91% 0.50K 5 7 20K skbuff_fclone_cache
32 18 56% 0.50K 4 8 16K size-512(DMA)
60 26 43% 0.25K 4 15 16K mnt_cache
60 18 30% 0.25K 4 15 16K biovec-16
8 6 75% 1.75K 4 2 16K TCP
8 8 100% 2.00K 4 2 16K rpc_buffers
66 4 6% 0.17K 3 22 12K file_lock_cache
30 20 66% 0.36K 3 10 12K blkdev_requests
12 5 41% 1.00K 3 4 12K UDP
45 4 8% 0.25K 3 15 12K uid_cache
21 13 61% 0.50K 3 7 12K ip6_dst_cache
336 256 76% 0.03K 3 112 12K dm_io
432 256 59% 0.02K 3 144 12K dm_target_io
30 7 23% 0.25K 2 15 8K size-256(DMA)
118 18 15% 0.06K 2 59 8K biovec-4
96 8 8% 0.08K 2 48 8K blkdev_ioc
14 4 28% 0.50K 2 7 8K ip_dst_cache
5 5 100% 1.50K 1 5 8K qdio_q
4 3 75% 1.75K 2 2 8K TCPv6
8 6 75% 1.00K 2 4 8K rpc_inode_cache
14 8 57% 0.50K 2 7 8K rpc_tasks
112 4 3% 0.03K 1 112 4K size-32(DMA)
59 34 57% 0.06K 1 59 4K size-64(DMA)
1 1 100% 4.00K 1 1 4K names_cache
202 18 8% 0.02K 1 202 4K biovec-1
30 2 6% 0.12K 1 30 4K sgpool-8
15 2 13% 0.25K 1 15 4K sgpool-16
8 2 25% 0.50K 1 8 4K sgpool-32--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 31 lines · On Tue, 17 Mar 2009 11:17:38 +0100 Heiko Carstens <[email protected]>…
Quoted 13 lines · On Tue, 17 Mar 2009 02:46:05 -0700 Andrew Morton <[email protected]>…
Quoted 7 lines
Mar 16 21:40:40 t6360003 kernel: Active_anon:372 active_file:45 inactive_anon:154 Mar 16 21:40:40 t6360003 kernel: inactive_file:152 unevictable:987 dirty:0 writeback:188 unstable:0 Mar 16 21:40:40 t6360003 kernel: free:146348 slab:875833 mapped:805 pagetables:378 bounce:0 Mar 16 21:40:40 t6360003 kernel: DMA free:467728kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:116kB unevictable:0kB present:2068480kB pages_scanned:0 all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 2020 2020 Mar 16 21:40:40 t6360003 kernel: Normal free:117664kB min:4064kB low:5080kB high:6096kB active_anon:1488kB inactive_anon:616kB active_file:188kB inactive_file:492kB unevictable:3948kB present:2068480kB pages_scanned:128 all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 0 0The scanner has wrung pretty much all it can out of the reclaimable pages - the LRUs are nearly empty. There's a few hundred MB free and apparently we don't have four physically contiguous free pages anywhere. It's believeable.
Quoted 5 lines
The question is: where the heck did all your memory go? You have 2GB of
ZONE_NORMALmemory in that machine, but only a tenth of it is visible to the page reclaim code.Something must have allocated (and possibly leaked) it.
Looks like most of the memory went for dentries and inodes. slabtop output:
Active / Total Objects (% used) : 8172165 / 8326954 (98.1%) Active / Total Slabs (% used) : 903692 / 903698 (100.0%) Active / Total Caches (% used) : 91 / 144 (63.2%) Active / Total Size (% used) : 3251262.44K / 3281384.22K (99.1%)Minimum / Average / Maximum Object : 0.02K / 0.39K / 1024.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
Quoted 8 lines
3960036 3960017 99% 0.59K 660006 6 2640024K inode_cache 4137155 3997581 96% 0.20K 217745 19 870980K dentry 69776 69744 99% 0.80K 17444 4 69776K ext3_inode_cache 96792 92892 95% 0.10K 2616 37 10464K buffer_head 10024 9895 98% 0.54K 1432 7 5728K radix_tree_node 1093 1087 99% 4.00K 1093 1 4372K size-4096 14805 14711 99% 0.25K 987 15 3948K size-256 2400 2381 99% 0.80K 480 5 1920K shmem_inode_cache
FWIW, after "echo 3 > /proc/sys/vm/drop_caches" it looks like this:
Active / Total Objects (% used) : 7965003 / 8153578 (97.7%) Active / Total Slabs (% used) : 882511 / 882511 (100.0%) Active / Total Caches (% used) : 90 / 144 (62.5%) Active / Total Size (% used) : 3173487.59K / 3211091.64K (98.8%)
Minimum / Average / Maximum Object : 0.02K / 0.39K / 1024.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
3960036 3960007 99% 0.59K 660006 6 2640024K inode_cache
4137155 3962636 95% 0.20K 217745 19 870980K dentry
1097 1097 100% 4.00K 1097 1 4388K size-4096
14805 14667 99% 0.25K 987 15 3948K size-256
2400 2381 99% 0.80K 480 5 1920K shmem_inode_cache
1404 1404 100% 1.00K 351 4 1404K size-1024
152 152 100% 5.59K 152 1 1216K task_struct
1302 347 26% 0.54K 186 7 744K radix_tree_node
370 359 97% 2.00K 185 2 740K size-2048
9381 4316 46% 0.06K 159 59 636K size-64
8 8 100% 64.00K 8 1 512K size-65536So, are we leaking dentries and inodes?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 72 lines · On Tuesday 17 March 2009 21:28:42 Heiko Carstens wrote:
On Tue, 17 Mar 2009 11:17:38 +0100
Quoted 39 lines · Heiko Carstens
On Tue, 17 Mar 2009 02:46:05 -0700
Quoted 20 lines · Andrew Morton
Quoted 14 lines
Mar 16 21:40:40 t6360003 kernel: Active_anon:372 active_file:45inactive_anon:154 Mar 16 21:40:40 t6360003 kernel: inactive_file:152 unevictable:987 dirty:0 writeback:188 unstable:0 Mar 16 21:40:40 t6360003 kernel: free:146348 slab:875833 mapped:805 pagetables:378 bounce:0 Mar 16 21:40:40 t6360003 kernel: DMA free:467728kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:116kB unevictable:0kB present:2068480kB pages_scanned:0
all_unreclaimable? no Mar 16 21:40:40 t6360003
kernel: lowmem_reserve[]: 0 2020 2020 Mar 16 21:40:40 t6360003
kernel: Normal free:117664kB min:4064kB low:5080kB high:6096kB active_anon:1488kB inactive_anon:616kB active_file:188kB inactive_file:492kB unevictable:3948kB present:2068480kB pages_scanned:128all_unreclaimable? no Mar 16 21:40:40 t6360003
kernel: lowmem_reserve[]: 0 0 0The scanner has wrung pretty much all it can out of the reclaimable pages - the LRUs are nearly empty. There's a few hundred MB free and apparently we don't have four physically contiguous free pages anywhere. It's believeable.
Quoted 5 lines
The question is: where the heck did all your memory go? You have 2GB of
ZONE_NORMALmemory in that machine, but only a tenth of it is visible to the page reclaim code.Something must have allocated (and possibly leaked) it.
Looks like most of the memory went for dentries and inodes. slabtop output:
Active / Total Objects (% used) : 8172165 / 8326954 (98.1%) Active / Total Slabs (% used) : 903692 / 903698 (100.0%) Active / Total Caches (% used) : 91 / 144 (63.2%) Active / Total Size (% used) : 3251262.44K / 3281384.22K (99.1%)Minimum / Average / Maximum Object : 0.02K / 0.39K / 1024.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
Quoted 8 lines
3960036 3960017 99% 0.59K 660006 6 2640024K inode_cache 4137155 3997581 96% 0.20K 217745 19 870980K dentry 69776 69744 99% 0.80K 17444 4 69776K ext3_inode_cache 96792 92892 95% 0.10K 2616 37 10464K buffer_head 10024 9895 98% 0.54K 1432 7 5728K radix_tree_node 1093 1087 99% 4.00K 1093 1 4372K size-4096 14805 14711 99% 0.25K 987 15 3948K size-256 2400 2381 99% 0.80K 480 5 1920K shmem_inode_cacheFWIW, after "echo 3 >
/proc/sys/vm/drop_caches" it looks like this:Active / Total Objects (% used) : 7965003 / 8153578 (97.7%) Active / Total Slabs (% used) : 882511 / 882511 (100.0%) Active / Total Caches (% used) : 90 / 144 (62.5%) Active / Total Size (% used) : 3173487.59K / 3211091.64K (98.8%)Minimum / Average / Maximum Object : 0.02K / 0.39K / 1024.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
3960036 3960007 99% 0.59K 660006 6 2640024K inode_cache 4137155 3962636 95% 0.20K 217745 19 870980K dentry 1097 1097 100% 4.00K 1097 1 4388K size-4096 14805 14667 99% 0.25K 987 15 3948K size-256 2400 2381 99% 0.80K 480 5 1920K shmem_inode_cache 1404 1404 100% 1.00K 351 4 1404K size-1024 152 152 100% 5.59K 152 1 1216K task_struct 1302 347 26% 0.54K 186 7 744K radix_tree_node 370 359 97% 2.00K 185 2 740K size-2048 9381 4316 46% 0.06K 159 59 636K size-64 8 8 100% 64.00K 8 1 512K size-65536
Quoted 1 line
So, are we leaking dentries and inodes?
Yes, probably leaking dentries, which pin inodes. I don't know that slab leak debugging is going to help you because it won't find what is holding the refcount.
Cc linux-fsdevel. Which kernel this is? Config as well.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 41 lines · On Tue, 17 Mar 2009 21:49:35 +1100 Nick Piggin <[email protected]> wrote:
Quoted 40 lines · On Tuesday 17 March 2009 21:28:42 Heiko Carstens wrote:
Quoted 10 lines
Looks like most of the memory went for dentries and inodes. slabtop output:
Active / Total Objects (% used) : 8172165 / 8326954 (98.1%) Active / Total Slabs (% used) : 903692 / 903698 (100.0%) Active / Total Caches (% used) : 91 / 144 (63.2%) Active / Total Size (% used) : 3251262.44K / 3281384.22K (99.1%)Minimum / Average / Maximum Object : 0.02K / 0.39K / 1024.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
Quoted 8 lines
3960036 3960017 99% 0.59K 660006 6 2640024K inode_cache 4137155 3997581 96% 0.20K 217745 19 870980K dentry 69776 69744 99% 0.80K 17444 4 69776K ext3_inode_cache 96792 92892 95% 0.10K 2616 37 10464K buffer_head 10024 9895 98% 0.54K 1432 7 5728K radix_tree_node 1093 1087 99% 4.00K 1093 1 4372K size-4096 14805 14711 99% 0.25K 987 15 3948K size-256 2400 2381 99% 0.80K 480 5 1920K shmem_inode_cacheFWIW, after "echo 3 >
/proc/sys/vm/drop_caches" it looks like this:Active / Total Objects (% used) : 7965003 / 8153578 (97.7%) Active / Total Slabs (% used) : 882511 / 882511 (100.0%) Active / Total Caches (% used) : 90 / 144 (62.5%) Active / Total Size (% used) : 3173487.59K / 3211091.64K (98.8%)Minimum / Average / Maximum Object : 0.02K / 0.39K / 1024.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
3960036 3960007 99% 0.59K 660006 6 2640024K inode_cache 4137155 3962636 95% 0.20K 217745 19 870980K dentry 1097 1097 100% 4.00K 1097 1 4388K size-4096 14805 14667 99% 0.25K 987 15 3948K size-256 2400 2381 99% 0.80K 480 5 1920K shmem_inode_cache 1404 1404 100% 1.00K 351 4 1404K size-1024 152 152 100% 5.59K 152 1 1216K task_struct 1302 347 26% 0.54K 186 7 744K radix_tree_node 370 359 97% 2.00K 185 2 740K size-2048 9381 4316 46% 0.06K 159 59 636K size-64 8 8 100% 64.00K 8 1 512K size-65536
Quoted 7 lines
Quoted 1 line
So, are we leaking dentries and inodes?
Yes, probably leaking dentries, which pin inodes. I don't know that slab leak debugging is going to help you because it won't find what is holding the refcount.
Cc linux-fsdevel. Which kernel this is? Config as well.
This is a 2.6.28 kernel, but with some private patches on top. But none of them touches fs code.
Hmm... if needed we could retry with a plain vanilla 2.6.28.x kernel.
#
# Automatically generated make config: don't edit # Linux kernel version: 2.6.28
# Mon Jan 19 12:43:38 2009
#CONFIG_SCHED_MC=yCONFIG_MMU=yCONFIG_ZONE_DMA=yCONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set CONFIG_GENERIC_HWEIGHT=yCONFIG_GENERIC_TIME=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_BUG=yCONFIG_NO_IOMEM=yCONFIG_NO_DMA=yCONFIG_GENERIC_LOCKBREAK=yCONFIG_PGSTE=yCONFIG_VIRT_CPU_ACCOUNTING=yCONFIG_S390=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
#
# General setup
#CONFIG_EXPERIMENTAL=yCONFIG_LOCK_KERNEL=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not setCONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SYSCTL=yCONFIG_POSIX_MQUEUE=yCONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
# CONFIG_TASKSTATS is not setCONFIG_AUDIT=yCONFIG_AUDITSYSCALL=yCONFIG_AUDIT_TREE=yCONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=yCONFIG_LOG_BUF_SHIFT=17
# CONFIG_CGROUPS is not setCONFIG_GROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_RT_GROUP_SCHED=yCONFIG_USER_SCHED=y
# CONFIG_CGROUP_SCHED is not set
# CONFIG_SYSFS_DEPRECATED_V2 is not setCONFIG_RELAY=yCONFIG_NAMESPACES=yCONFIG_UTS_NS=yCONFIG_IPC_NS=y
# CONFIG_USER_NS is not set
# CONFIG_PID_NS is not setCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not setCONFIG_SYSCTL=y
# CONFIG_EMBEDDED is not setCONFIG_SYSCTL_SYSCALL=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=yCONFIG_KALLSYMS_EXTRA_PASS=yCONFIG_HOTPLUG=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_COMPAT_BRK=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_ANON_INODES=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_VM_EVENT_COUNTERS=yCONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not setCONFIG_PROFILING=y
# CONFIG_MARKERS is not setCONFIG_OPROFILE=mCONFIG_HAVE_OPROFILE=yCONFIG_KPROBES=yCONFIG_KRETPROBES=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_USE_GENERIC_SMP_HELPERS=y
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not setCONFIG_SLABINFO=yCONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not setCONFIG_BASE_SMALL=0CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not setCONFIG_MODULE_UNLOAD=yCONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not setCONFIG_KMOD=yCONFIG_STOP_MACHINE=yCONFIG_BLOCK=yCONFIG_BLK_DEV_IO_TRACE=y
# CONFIG_BLK_DEV_BSG is not set
# CONFIG_BLK_DEV_INTEGRITY is not setCONFIG_BLOCK_COMPAT=y
#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=yCONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_AS is not setCONFIG_DEFAULT_DEADLINE=y
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not setCONFIG_DEFAULT_IOSCHED="deadline"CONFIG_PREEMPT_NOTIFIERS=y
# CONFIG_CLASSIC_RCU is not set
# CONFIG_FREEZER is not set
#
# Base setup
#
#
# Processor type and features
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=yCONFIG_GENERIC_CLOCKEVENTS_BUILD=yCONFIG_64BIT=yCONFIG_SMP=yCONFIG_NR_CPUS=64CONFIG_HOTPLUG_CPU=yCONFIG_COMPAT=yCONFIG_SYSVIPC_COMPAT=yCONFIG_AUDIT_ARCH=yCONFIG_S390_SWITCH_AMODE=yCONFIG_S390_EXEC_PROTECT=y
#
# Code generation options
#
# CONFIG_MARCH_G5 is not set
# CONFIG_MARCH_Z900 is not setCONFIG_MARCH_Z990=y
# CONFIG_MARCH_Z9_109 is not set
# CONFIG_MARCH_Z10 is not setCONFIG_PACK_STACK=yCONFIG_SMALL_STACK=yCONFIG_CHECK_STACK=yCONFIG_STACK_GUARD=512
# CONFIG_WARN_STACK is not setCONFIG_ARCH_POPULATES_NODE_MAP=y
#
# Kernel preemption
#
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not setCONFIG_PREEMPT=yCONFIG_PREEMPT_RCU=yCONFIG_RCU_TRACE=yCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_DEFAULT=yCONFIG_ARCH_SELECT_MEMORY_MODEL=yCONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=yCONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=yCONFIG_SELECT_MEMORY_MODEL=y
# CONFIG_FLATMEM_MANUAL is not set
# CONFIG_DISCONTIGMEM_MANUAL is not setCONFIG_SPARSEMEM_MANUAL=yCONFIG_SPARSEMEM=yCONFIG_HAVE_MEMORY_PRESENT=yCONFIG_SPARSEMEM_EXTREME=yCONFIG_SPARSEMEM_VMEMMAP_ENABLE=yCONFIG_SPARSEMEM_VMEMMAP=yCONFIG_MEMORY_HOTPLUG=yCONFIG_MEMORY_HOTPLUG_SPARSE=yCONFIG_MEMORY_HOTREMOVE=yCONFIG_PAGEFLAGS_EXTENDED=yCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_MIGRATION=yCONFIG_RESOURCES_64BIT=yCONFIG_PHYS_ADDR_T_64BIT=yCONFIG_ZONE_DMA_FLAG=1CONFIG_BOUNCE=yCONFIG_VIRT_TO_BUS=yCONFIG_UNEVICTABLE_LRU=y
#
# I/O subsystem configuration
#CONFIG_MACHCHK_WARNING=yCONFIG_QDIO=yCONFIG_CHSC_SCH=m
#
# Misc
#CONFIG_IPL=y
# CONFIG_IPL_TAPE is not setCONFIG_IPL_VM=yCONFIG_BINFMT_ELF=yCONFIG_COMPAT_BINFMT_ELF=y
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
# CONFIG_HAVE_AOUT is not set
# CONFIG_BINFMT_MISC is not setCONFIG_FORCE_MAX_ZONEORDER=9
# CONFIG_PROCESS_DEBUG is not setCONFIG_PFAULT=yCONFIG_SHARED_KERNEL=yCONFIG_CMM=mCONFIG_CMM_PROC=yCONFIG_CMM_IUCV=yCONFIG_PAGE_STATES=yCONFIG_APPLDATA_BASE=yCONFIG_APPLDATA_MEM=mCONFIG_APPLDATA_OS=mCONFIG_APPLDATA_NET_SUM=mCONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=100CONFIG_SCHED_HRTICK=yCONFIG_S390_HYPFS_FS=yCONFIG_KEXEC=yCONFIG_ZFCPDUMP=yCONFIG_S390_GUEST=yCONFIG_KMSG_IDS=yCONFIG_NET=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_MMAP=yCONFIG_UNIX=yCONFIG_XFRM=yCONFIG_XFRM_USER=mCONFIG_XFRM_SUB_POLICY=y
# CONFIG_XFRM_MIGRATE is not setCONFIG_XFRM_STATISTICS=yCONFIG_XFRM_IPCOMP=yCONFIG_NET_KEY=m
# CONFIG_NET_KEY_MIGRATE is not setCONFIG_IUCV=yCONFIG_AFIUCV=mCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_ASK_IP_FIB_HASH=y
# CONFIG_IP_FIB_TRIE is not setCONFIG_IP_FIB_HASH=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=y
# CONFIG_IP_PNP is not setCONFIG_NET_IPIP=yCONFIG_NET_IPGRE=yCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=y
# CONFIG_ARPD is not setCONFIG_SYN_COOKIES=yCONFIG_INET_AH=mCONFIG_INET_ESP=mCONFIG_INET_IPCOMP=yCONFIG_INET_XFRM_TUNNEL=yCONFIG_INET_TUNNEL=yCONFIG_INET_XFRM_MODE_TRANSPORT=yCONFIG_INET_XFRM_MODE_TUNNEL=yCONFIG_INET_XFRM_MODE_BEET=mCONFIG_INET_LRO=mCONFIG_INET_DIAG=yCONFIG_INET_TCP_DIAG=y
# CONFIG_TCP_CONG_ADVANCED is not setCONFIG_TCP_CONG_CUBIC=yCONFIG_DEFAULT_TCP_CONG="cubic"CONFIG_TCP_MD5SIG=yCONFIG_IPV6=yCONFIG_IPV6_PRIVACY=yCONFIG_IPV6_ROUTER_PREF=yCONFIG_IPV6_ROUTE_INFO=y
# CONFIG_IPV6_OPTIMISTIC_DAD is not setCONFIG_INET6_AH=mCONFIG_INET6_ESP=mCONFIG_INET6_IPCOMP=mCONFIG_IPV6_MIP6=yCONFIG_INET6_XFRM_TUNNEL=mCONFIG_INET6_TUNNEL=mCONFIG_INET6_XFRM_MODE_TRANSPORT=yCONFIG_INET6_XFRM_MODE_TUNNEL=yCONFIG_INET6_XFRM_MODE_BEET=mCONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=mCONFIG_IPV6_SIT=mCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=mCONFIG_IPV6_MULTIPLE_TABLES=yCONFIG_IPV6_SUBTREES=y
# CONFIG_IPV6_MROUTE is not setCONFIG_NETLABEL=y
# CONFIG_NETWORK_SECMARK is not setCONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not setCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=y
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_NETLINK=mCONFIG_NETFILTER_NETLINK_QUEUE=mCONFIG_NETFILTER_NETLINK_LOG=mCONFIG_NF_CONNTRACK=mCONFIG_NF_CT_ACCT=yCONFIG_NF_CONNTRACK_MARK=yCONFIG_NF_CONNTRACK_EVENTS=y
# CONFIG_NF_CT_PROTO_DCCP is not setCONFIG_NF_CT_PROTO_SCTP=m
# CONFIG_NF_CT_PROTO_UDPLITE is not setCONFIG_NF_CONNTRACK_AMANDA=mCONFIG_NF_CONNTRACK_FTP=mCONFIG_NF_CONNTRACK_H323=mCONFIG_NF_CONNTRACK_IRC=mCONFIG_NF_CONNTRACK_NETBIOS_NS=m
# CONFIG_NF_CONNTRACK_PPTP is not set
# CONFIG_NF_CONNTRACK_SANE is not setCONFIG_NF_CONNTRACK_SIP=m
# CONFIG_NF_CONNTRACK_TFTP is not setCONFIG_NF_CT_NETLINK=m
# CONFIG_NETFILTER_TPROXY is not setCONFIG_NETFILTER_XTABLES=mCONFIG_NETFILTER_XT_TARGET_CLASSIFY=mCONFIG_NETFILTER_XT_TARGET_CONNMARK=mCONFIG_NETFILTER_XT_TARGET_DSCP=mCONFIG_NETFILTER_XT_TARGET_MARK=mCONFIG_NETFILTER_XT_TARGET_NFLOG=mCONFIG_NETFILTER_XT_TARGET_NFQUEUE=mCONFIG_NETFILTER_XT_TARGET_NOTRACK=mCONFIG_NETFILTER_XT_TARGET_RATEEST=mCONFIG_NETFILTER_XT_TARGET_TRACE=mCONFIG_NETFILTER_XT_TARGET_TCPMSS=mCONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=mCONFIG_NETFILTER_XT_MATCH_COMMENT=mCONFIG_NETFILTER_XT_MATCH_CONNBYTES=mCONFIG_NETFILTER_XT_MATCH_CONNLIMIT=mCONFIG_NETFILTER_XT_MATCH_CONNMARK=mCONFIG_NETFILTER_XT_MATCH_CONNTRACK=mCONFIG_NETFILTER_XT_MATCH_DCCP=mCONFIG_NETFILTER_XT_MATCH_DSCP=mCONFIG_NETFILTER_XT_MATCH_ESP=mCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=mCONFIG_NETFILTER_XT_MATCH_HELPER=mCONFIG_NETFILTER_XT_MATCH_IPRANGE=mCONFIG_NETFILTER_XT_MATCH_LENGTH=mCONFIG_NETFILTER_XT_MATCH_LIMIT=mCONFIG_NETFILTER_XT_MATCH_MAC=mCONFIG_NETFILTER_XT_MATCH_MARK=mCONFIG_NETFILTER_XT_MATCH_MULTIPORT=mCONFIG_NETFILTER_XT_MATCH_OWNER=mCONFIG_NETFILTER_XT_MATCH_POLICY=mCONFIG_NETFILTER_XT_MATCH_PHYSDEV=mCONFIG_NETFILTER_XT_MATCH_PKTTYPE=mCONFIG_NETFILTER_XT_MATCH_QUOTA=mCONFIG_NETFILTER_XT_MATCH_RATEEST=mCONFIG_NETFILTER_XT_MATCH_REALM=m
# CONFIG_NETFILTER_XT_MATCH_RECENT is not set
# CONFIG_NETFILTER_XT_MATCH_SCTP is not setCONFIG_NETFILTER_XT_MATCH_STATE=mCONFIG_NETFILTER_XT_MATCH_STATISTIC=mCONFIG_NETFILTER_XT_MATCH_STRING=mCONFIG_NETFILTER_XT_MATCH_TCPMSS=mCONFIG_NETFILTER_XT_MATCH_TIME=mCONFIG_NETFILTER_XT_MATCH_U32=mCONFIG_IP_VS=m
# CONFIG_IP_VS_IPV6 is not set
# CONFIG_IP_VS_DEBUG is not setCONFIG_IP_VS_TAB_BITS=12
#
# IPVS transport protocol load balancing support
#
# CONFIG_IP_VS_PROTO_TCP is not set
# CONFIG_IP_VS_PROTO_UDP is not set
# CONFIG_IP_VS_PROTO_ESP is not set
# CONFIG_IP_VS_PROTO_AH is not set
#
# IPVS scheduler
#
# CONFIG_IP_VS_RR is not set
# CONFIG_IP_VS_WRR is not set
# CONFIG_IP_VS_LC is not set
# CONFIG_IP_VS_WLC is not set
# CONFIG_IP_VS_LBLC is not set
# CONFIG_IP_VS_LBLCR is not set
# CONFIG_IP_VS_DH is not set
# CONFIG_IP_VS_SH is not set
# CONFIG_IP_VS_SED is not set
# CONFIG_IP_VS_NQ is not set
#
# IPVS application helper
#
#
# IP: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV4=mCONFIG_NF_CONNTRACK_IPV4=mCONFIG_NF_CONNTRACK_PROC_COMPAT=yCONFIG_IP_NF_QUEUE=mCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_ADDRTYPE=mCONFIG_IP_NF_MATCH_AH=mCONFIG_IP_NF_MATCH_ECN=mCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=mCONFIG_IP_NF_TARGET_LOG=mCONFIG_IP_NF_TARGET_ULOG=mCONFIG_NF_NAT=mCONFIG_NF_NAT_NEEDED=yCONFIG_IP_NF_TARGET_MASQUERADE=mCONFIG_IP_NF_TARGET_NETMAP=mCONFIG_IP_NF_TARGET_REDIRECT=m
# CONFIG_NF_NAT_SNMP_BASIC is not setCONFIG_NF_NAT_PROTO_SCTP=mCONFIG_NF_NAT_FTP=mCONFIG_NF_NAT_IRC=m
# CONFIG_NF_NAT_TFTP is not setCONFIG_NF_NAT_AMANDA=m
# CONFIG_NF_NAT_PPTP is not setCONFIG_NF_NAT_H323=mCONFIG_NF_NAT_SIP=mCONFIG_IP_NF_MANGLE=m
# CONFIG_IP_NF_TARGET_CLUSTERIP is not setCONFIG_IP_NF_TARGET_ECN=mCONFIG_IP_NF_TARGET_TTL=mCONFIG_IP_NF_RAW=m
# CONFIG_IP_NF_SECURITY is not setCONFIG_IP_NF_ARPTABLES=mCONFIG_IP_NF_ARPFILTER=mCONFIG_IP_NF_ARP_MANGLE=m
#
# IPv6: Netfilter Configuration
#CONFIG_NF_CONNTRACK_IPV6=mCONFIG_IP6_NF_QUEUE=mCONFIG_IP6_NF_IPTABLES=mCONFIG_IP6_NF_MATCH_AH=mCONFIG_IP6_NF_MATCH_EUI64=mCONFIG_IP6_NF_MATCH_FRAG=mCONFIG_IP6_NF_MATCH_OPTS=mCONFIG_IP6_NF_MATCH_HL=mCONFIG_IP6_NF_MATCH_IPV6HEADER=mCONFIG_IP6_NF_MATCH_MH=mCONFIG_IP6_NF_MATCH_RT=mCONFIG_IP6_NF_TARGET_LOG=mCONFIG_IP6_NF_FILTER=mCONFIG_IP6_NF_TARGET_REJECT=mCONFIG_IP6_NF_MANGLE=mCONFIG_IP6_NF_TARGET_HL=mCONFIG_IP6_NF_RAW=m
# CONFIG_IP6_NF_SECURITY is not setCONFIG_BRIDGE_NF_EBTABLES=mCONFIG_BRIDGE_EBT_BROUTE=mCONFIG_BRIDGE_EBT_T_FILTER=mCONFIG_BRIDGE_EBT_T_NAT=mCONFIG_BRIDGE_EBT_802_3=mCONFIG_BRIDGE_EBT_AMONG=mCONFIG_BRIDGE_EBT_ARP=mCONFIG_BRIDGE_EBT_IP=m
# CONFIG_BRIDGE_EBT_IP6 is not setCONFIG_BRIDGE_EBT_LIMIT=mCONFIG_BRIDGE_EBT_MARK=mCONFIG_BRIDGE_EBT_PKTTYPE=mCONFIG_BRIDGE_EBT_STP=mCONFIG_BRIDGE_EBT_VLAN=mCONFIG_BRIDGE_EBT_ARPREPLY=mCONFIG_BRIDGE_EBT_DNAT=mCONFIG_BRIDGE_EBT_MARK_T=mCONFIG_BRIDGE_EBT_REDIRECT=mCONFIG_BRIDGE_EBT_SNAT=mCONFIG_BRIDGE_EBT_LOG=mCONFIG_BRIDGE_EBT_ULOG=mCONFIG_BRIDGE_EBT_NFLOG=m
# CONFIG_IP_DCCP is not setCONFIG_IP_SCTP=m
# CONFIG_SCTP_DBG_MSG is not set
# CONFIG_SCTP_DBG_OBJCNT is not setCONFIG_SCTP_HMAC_NONE=y
# CONFIG_SCTP_HMAC_SHA1 is not set
# CONFIG_SCTP_HMAC_MD5 is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not setCONFIG_STP=yCONFIG_BRIDGE=yCONFIG_VLAN_8021Q=y
# CONFIG_VLAN_8021Q_GVRP is not set
# CONFIG_DECNET is not setCONFIG_LLC=yCONFIG_LLC2=mCONFIG_IPX=m
# CONFIG_IPX_INTERN is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_SCHED is not setCONFIG_NET_CLS_ROUTE=y
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NET_TCPPROBE is not setCONFIG_CAN=mCONFIG_CAN_RAW=mCONFIG_CAN_BCM=m
#
# CAN Device Drivers
#CONFIG_CAN_VCAN=mCONFIG_CAN_DEBUG_DEVICES=y
# CONFIG_AF_RXRPC is not set
# CONFIG_PHONET is not setCONFIG_FIB_RULES=y
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set
# CONFIG_PCMCIA is not setCONFIG_CCW=y
#
# Device Drivers
#
#
# Generic Driver Options
#CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"CONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=yCONFIG_FW_LOADER=y
# CONFIG_FIRMWARE_IN_KERNEL is not setCONFIG_EXTRA_FIRMWARE=""
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not setCONFIG_SYS_HYPERVISOR=yCONFIG_CONNECTOR=yCONFIG_PROC_EVENTS=yCONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_COW_COMMON is not setCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_CRYPTOLOOP=mCONFIG_BLK_DEV_NBD=mCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=40960CONFIG_BLK_DEV_XIP=y
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
#
# S/390 block device drivers
#CONFIG_BLK_DEV_XPRAM=mCONFIG_DCSSBLK=yCONFIG_DASD=yCONFIG_DASD_PROFILE=yCONFIG_DASD_ECKD=yCONFIG_DASD_FBA=yCONFIG_DASD_DIAG=yCONFIG_DASD_EER=yCONFIG_VIRTIO_BLK=yCONFIG_MISC_DEVICES=y
# CONFIG_EEPROM_93CX6 is not setCONFIG_ENCLOSURE_SERVICES=m
# CONFIG_C2PORT is not set
#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not setCONFIG_SCSI=y
# CONFIG_SCSI_DMA is not setCONFIG_SCSI_TGT=mCONFIG_SCSI_NETLINK=y
# CONFIG_SCSI_PROC_FS is not set
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_CHR_DEV_OSST=yCONFIG_BLK_DEV_SR=yCONFIG_BLK_DEV_SR_VENDOR=yCONFIG_CHR_DEV_SG=yCONFIG_CHR_DEV_SCH=mCONFIG_SCSI_ENCLOSURE=m
#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs #CONFIG_SCSI_MULTI_LUN=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=yCONFIG_SCSI_WAIT_SCAN=m
#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set CONFIG_SCSI_FC_ATTRS=y CONFIG_SCSI_ISCSI_ATTRS=m CONFIG_SCSI_SAS_ATTRS=m CONFIG_SCSI_SAS_LIBSAS=m CONFIG_SCSI_SAS_HOST_SMP=y CONFIG_SCSI_SAS_LIBSAS_DEBUG=y CONFIG_SCSI_SRP_ATTRS=m CONFIG_SCSI_SRP_TGT_ATTRS=y CONFIG_SCSI_LOWLEVEL=yCONFIG_ISCSI_TCP=m
# CONFIG_SCSI_DEBUG is not set CONFIG_ZFCP=y
# CONFIG_SCSI_DH is not setCONFIG_MD=yCONFIG_BLK_DEV_MD=m
# CONFIG_MD_LINEAR is not set CONFIG_MD_RAID0=mCONFIG_MD_RAID1=mCONFIG_MD_RAID10=m
# CONFIG_MD_RAID456 is not set CONFIG_MD_MULTIPATH=m
# CONFIG_MD_FAULTY is not set CONFIG_BLK_DEV_DM=m
# CONFIG_DM_DEBUG is not set CONFIG_DM_CRYPT=mCONFIG_DM_SNAPSHOT=mCONFIG_DM_MIRROR=mCONFIG_DM_ZERO=mCONFIG_DM_MULTIPATH=m
# CONFIG_DM_DELAY is not set CONFIG_DM_UEVENT=yCONFIG_NETDEVICES=yCONFIG_DUMMY=mCONFIG_BONDING=m
# CONFIG_MACVLAN is not set
# CONFIG_EQUALIZER is not setCONFIG_TUN=yCONFIG_VETH=mCONFIG_NET_ETHERNET=y
# CONFIG_MII is not set
# CONFIG_IBM_NEW_EMAC_ZMII is not set
# CONFIG_IBM_NEW_EMAC_RGMII is not set
# CONFIG_IBM_NEW_EMAC_TAH is not set
# CONFIG_IBM_NEW_EMAC_EMAC4 is not set
# CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set # CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set # CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set CONFIG_NETDEV_1000=yCONFIG_NETDEV_10000=yCONFIG_TR=y
# CONFIG_WAN is not set
#
# S/390 network device drivers
#CONFIG_LCS=mCONFIG_CTCM=mCONFIG_NETIUCV=mCONFIG_SMSGIUCV=mCONFIG_CLAW=mCONFIG_QETH=mCONFIG_QETH_L2=mCONFIG_QETH_L3=mCONFIG_QETH_IPV6=yCONFIG_CCWGROUP=m
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not setCONFIG_VIRTIO_NET=y
#
# Character devices
#CONFIG_DEVKMEM=yCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_HVC_DRIVER=yCONFIG_HVC_IUCV=yCONFIG_VIRTIO_CONSOLE=yCONFIG_HW_RANDOM=m
# CONFIG_HW_RANDOM_VIRTIO is not set
# CONFIG_R3964 is not setCONFIG_RAW_DRIVER=mCONFIG_MAX_RAW_DEVS=256CONFIG_HANGCHECK_TIMER=m
#
# S/390 character device drivers
#CONFIG_TN3270=yCONFIG_TN3270_TTY=yCONFIG_TN3270_FS=yCONFIG_TN3270_CONSOLE=yCONFIG_TN3215=yCONFIG_TN3215_CONSOLE=yCONFIG_CCW_CONSOLE=yCONFIG_SCLP_TTY=yCONFIG_SCLP_CONSOLE=yCONFIG_SCLP_VT220_TTY=yCONFIG_SCLP_VT220_CONSOLE=yCONFIG_SCLP_CPI=mCONFIG_SCLP_ASYNC=mCONFIG_S390_TAPE=m
#
# S/390 tape interface support
#CONFIG_S390_TAPE_BLOCK=y
#
# S/390 tape hardware support
#CONFIG_S390_TAPE_34XX=mCONFIG_S390_TAPE_3590=mCONFIG_VMLOGRDR=mCONFIG_VMCP=mCONFIG_MONREADER=mCONFIG_MONWRITER=mCONFIG_S390_VMUR=m
# CONFIG_POWER_SUPPLY is not setCONFIG_THERMAL=yCONFIG_WATCHDOG=y
# CONFIG_WATCHDOG_NOWAYOUT is not set
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=mCONFIG_ZVM_WATCHDOG=m
# CONFIG_REGULATOR is not setCONFIG_MEMSTICK=mCONFIG_MEMSTICK_DEBUG=y
#
# MemoryStick drivers
#CONFIG_MEMSTICK_UNSAFE_RESUME=yCONFIG_MSPRO_BLOCK=m
#
# MemoryStick Host Controller Drivers
#
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_STAGING is not set
#
# File systems
#CONFIG_EXT2_FS=yCONFIG_EXT2_FS_XATTR=yCONFIG_EXT2_FS_POSIX_ACL=yCONFIG_EXT2_FS_SECURITY=yCONFIG_EXT2_FS_XIP=yCONFIG_EXT3_FS=yCONFIG_EXT3_FS_XATTR=yCONFIG_EXT3_FS_POSIX_ACL=yCONFIG_EXT3_FS_SECURITY=y
# CONFIG_EXT4_FS is not setCONFIG_FS_XIP=yCONFIG_JBD=y
# CONFIG_JBD_DEBUG is not setCONFIG_JBD2=mCONFIG_JBD2_DEBUG=yCONFIG_FS_MBCACHE=yCONFIG_REISERFS_FS=m
# CONFIG_REISERFS_CHECK is not setCONFIG_REISERFS_PROC_INFO=yCONFIG_REISERFS_FS_XATTR=yCONFIG_REISERFS_FS_POSIX_ACL=y
# CONFIG_REISERFS_FS_SECURITY is not set
# CONFIG_JFS_FS is not setCONFIG_FS_POSIX_ACL=yCONFIG_FILE_LOCKING=yCONFIG_XFS_FS=m
# CONFIG_XFS_QUOTA is not setCONFIG_XFS_POSIX_ACL=y
# CONFIG_XFS_RT is not set
# CONFIG_XFS_DEBUG is not setCONFIG_GFS2_FS=mCONFIG_GFS2_FS_LOCKING_DLM=mCONFIG_OCFS2_FS=mCONFIG_OCFS2_FS_O2CB=mCONFIG_OCFS2_FS_USERSPACE_CLUSTER=m
# CONFIG_OCFS2_FS_STATS is not setCONFIG_OCFS2_DEBUG_MASKLOG=y
# CONFIG_OCFS2_DEBUG_FS is not set
# CONFIG_OCFS2_COMPAT_JBD is not setCONFIG_DNOTIFY=yCONFIG_INOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_QUOTA=y
# CONFIG_QUOTA_NETLINK_INTERFACE is not setCONFIG_PRINT_QUOTA_WARNING=y
# CONFIG_QFMT_V1 is not setCONFIG_QFMT_V2=mCONFIG_QUOTACTL=y
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not setCONFIG_FUSE_FS=mCONFIG_GENERIC_ACL=y
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=yCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_UDF_FS=yCONFIG_UDF_NLS=y
#
# DOS/FAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_TMPFS_POSIX_ACL=yCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=yCONFIG_CONFIGFS_FS=m
#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not setCONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=mCONFIG_NFS_V3=yCONFIG_NFS_V3_ACL=yCONFIG_NFS_V4=yCONFIG_NFSD=mCONFIG_NFSD_V2_ACL=yCONFIG_NFSD_V3=yCONFIG_NFSD_V3_ACL=y
# CONFIG_NFSD_V4 is not setCONFIG_LOCKD=mCONFIG_LOCKD_V4=yCONFIG_EXPORTFS=mCONFIG_NFS_ACL_SUPPORT=mCONFIG_NFS_COMMON=yCONFIG_SUNRPC=mCONFIG_SUNRPC_GSS=m
# CONFIG_SUNRPC_REGISTER_V4 is not setCONFIG_RPCSEC_GSS_KRB5=mCONFIG_RPCSEC_GSS_SPKM3=mCONFIG_SMB_FS=mCONFIG_SMB_NLS_DEFAULT=yCONFIG_SMB_NLS_REMOTE="cp437"
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not setCONFIG_IBM_PARTITION=y
# CONFIG_MAC_PARTITION is not setCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=y
# CONFIG_MINIX_SUBPARTITION is not set
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_UNIXWARE_DISKLABEL is not set
# CONFIG_LDM_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not setCONFIG_SUN_PARTITION=y
# CONFIG_KARMA_PARTITION is not set
# CONFIG_EFI_PARTITION is not set
# CONFIG_SYSV68_PARTITION is not setCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=m
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not setCONFIG_NLS_CODEPAGE_850=m
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not setCONFIG_NLS_ISO8859_1=mCONFIG_NLS_ISO8859_2=mCONFIG_NLS_ISO8859_3=mCONFIG_NLS_ISO8859_4=m
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not setCONFIG_NLS_ISO8859_15=y
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not setCONFIG_NLS_UTF8=mCONFIG_DLM=mCONFIG_DLM_DEBUG=y
#
# Kernel hacking
#CONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_PRINTK_TIME is not setCONFIG_ENABLE_WARN_DEPRECATED=yCONFIG_ENABLE_MUST_CHECK=yCONFIG_FRAME_WARN=2048CONFIG_MAGIC_SYSRQ=y
# CONFIG_UNUSED_SYMBOLS is not setCONFIG_DEBUG_FS=yCONFIG_HEADERS_CHECK=yCONFIG_DEBUG_KERNEL=yCONFIG_SCHED_DEBUG=yCONFIG_SCHEDSTATS=y
# CONFIG_TIMER_STATS is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_PREEMPT is not set
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not setCONFIG_DEBUG_SPINLOCK_SLEEP=y
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not setCONFIG_STACKTRACE=y
# CONFIG_DEBUG_KOBJECT is not setCONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_WRITECOUNT is not setCONFIG_DEBUG_MEMORY_INIT=yCONFIG_DEBUG_LIST=y
# CONFIG_DEBUG_SG is not setCONFIG_FRAME_POINTER=y
# CONFIG_RCU_TORTURE_TEST is not setCONFIG_KPROBES_SANITY_TEST=yCONFIG_BACKTRACE_SELF_TEST=m
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not setCONFIG_LKDTM=m
# CONFIG_FAULT_INJECTION is not setCONFIG_LATENCYTOP=yCONFIG_SYSCTL_SYSCALL_CHECK=yCONFIG_HAVE_FUNCTION_TRACER=y
#
# Tracers
#
# CONFIG_FUNCTION_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_PREEMPT_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_CONTEXT_SWITCH_TRACER is not set
# CONFIG_BOOT_TRACER is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_BUILD_DOCSRC is not set
# CONFIG_DYNAMIC_PRINTK_DEBUG is not set
# CONFIG_SAMPLES is not set
# CONFIG_DEBUG_PAGEALLOC is not set
#
# Security options
#
# CONFIG_KEYS is not setCONFIG_SECURITY=y
# CONFIG_SECURITYFS is not set
# CONFIG_SECURITY_NETWORK is not set
# CONFIG_SECURITY_FILE_CAPABILITIES is not setCONFIG_SECURITY_DEFAULT_MMAP_MIN_ADDR=0CONFIG_CRYPTO=y
#
# Crypto core or helper
#
# CONFIG_CRYPTO_FIPS is not setCONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=mCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_BLKCIPHER=yCONFIG_CRYPTO_BLKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=mCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=yCONFIG_CRYPTO_GF128MUL=mCONFIG_CRYPTO_NULL=m
# CONFIG_CRYPTO_CRYPTD is not setCONFIG_CRYPTO_AUTHENC=mCONFIG_CRYPTO_TEST=m
#
# Authenticated Encryption with Associated Data
#CONFIG_CRYPTO_CCM=mCONFIG_CRYPTO_GCM=mCONFIG_CRYPTO_SEQIV=m
#
# Block modes
#CONFIG_CRYPTO_CBC=yCONFIG_CRYPTO_CTR=m
# CONFIG_CRYPTO_CTS is not setCONFIG_CRYPTO_ECB=yCONFIG_CRYPTO_LRW=mCONFIG_CRYPTO_PCBC=mCONFIG_CRYPTO_XTS=m
#
# Hash modes
#CONFIG_CRYPTO_HMAC=yCONFIG_CRYPTO_XCBC=m
#
# Digest
#CONFIG_CRYPTO_CRC32C=mCONFIG_CRYPTO_MD4=mCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_MICHAEL_MIC=mCONFIG_CRYPTO_RMD128=mCONFIG_CRYPTO_RMD160=mCONFIG_CRYPTO_RMD256=mCONFIG_CRYPTO_RMD320=mCONFIG_CRYPTO_SHA1=mCONFIG_CRYPTO_SHA256=mCONFIG_CRYPTO_SHA512=mCONFIG_CRYPTO_TGR192=mCONFIG_CRYPTO_WP512=m
#
# Ciphers
#CONFIG_CRYPTO_AES=m
# CONFIG_CRYPTO_ANUBIS is not setCONFIG_CRYPTO_ARC4=mCONFIG_CRYPTO_BLOWFISH=mCONFIG_CRYPTO_CAMELLIA=mCONFIG_CRYPTO_CAST5=mCONFIG_CRYPTO_CAST6=mCONFIG_CRYPTO_DES=mCONFIG_CRYPTO_FCRYPT=mCONFIG_CRYPTO_KHAZAD=mCONFIG_CRYPTO_SALSA20=mCONFIG_CRYPTO_SEED=mCONFIG_CRYPTO_SERPENT=mCONFIG_CRYPTO_TEA=mCONFIG_CRYPTO_TWOFISH=mCONFIG_CRYPTO_TWOFISH_COMMON=m
#
# Compression
#CONFIG_CRYPTO_DEFLATE=yCONFIG_CRYPTO_LZO=m
#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not setCONFIG_CRYPTO_HW=yCONFIG_ZCRYPT=m
# CONFIG_ZCRYPT_MONOLITHIC is not setCONFIG_CRYPTO_SHA1_S390=mCONFIG_CRYPTO_SHA256_S390=mCONFIG_CRYPTO_SHA512_S390=mCONFIG_CRYPTO_DES_S390=mCONFIG_CRYPTO_AES_S390=mCONFIG_S390_PRNG=m
#
# Library routines
#CONFIG_BITREVERSE=yCONFIG_CRC_CCITT=mCONFIG_CRC16=mCONFIG_CRC_T10DIF=mCONFIG_CRC_ITU_T=yCONFIG_CRC32=yCONFIG_CRC7=mCONFIG_LIBCRC32C=mCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=yCONFIG_LZO_COMPRESS=mCONFIG_LZO_DECOMPRESS=mCONFIG_TEXTSEARCH=yCONFIG_TEXTSEARCH_KMP=mCONFIG_TEXTSEARCH_BM=mCONFIG_TEXTSEARCH_FSM=mCONFIG_PLIST=yCONFIG_HAVE_KVM=yCONFIG_VIRTUALIZATION=yCONFIG_KVM=yCONFIG_VIRTIO=yCONFIG_VIRTIO_RING=yCONFIG_VIRTIO_BALLOON=y
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 73 lines · Nick Piggin
Quoted 72 lines · On Tuesday 17 March 2009 21:28:42 Heiko Carstens wrote:
On Tue, 17 Mar 2009 11:17:38 +0100
Quoted 39 lines · Heiko Carstens
On Tue, 17 Mar 2009 02:46:05 -0700
Quoted 20 lines · Andrew Morton
Quoted 14 lines
Mar 16 21:40:40 t6360003 kernel: Active_anon:372 active_file:45inactive_anon:154 Mar 16 21:40:40 t6360003 kernel: inactive_file:152 unevictable:987 dirty:0 writeback:188 unstable:0 Mar 16 21:40:40 t6360003 kernel: free:146348 slab:875833 mapped:805 pagetables:378 bounce:0 Mar 16 21:40:40 t6360003 kernel: DMA free:467728kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:116kB unevictable:0kB present:2068480kB pages_scanned:0
all_unreclaimable? no Mar 16 21:40:40 t6360003
kernel: lowmem_reserve[]: 0 2020 2020 Mar 16 21:40:40 t6360003
kernel: Normal free:117664kB min:4064kB low:5080kB high:6096kB active_anon:1488kB inactive_anon:616kB active_file:188kB inactive_file:492kB unevictable:3948kB present:2068480kB pages_scanned:128all_unreclaimable? no Mar 16 21:40:40 t6360003
kernel: lowmem_reserve[]: 0 0 0The scanner has wrung pretty much all it can out of the reclaimable pages - the LRUs are nearly empty. There's a few hundred MB free and apparently we don't have four physically contiguous free pages anywhere. It's believeable.
Quoted 5 lines
The question is: where the heck did all your memory go? You have 2GB of
ZONE_NORMALmemory in that machine, but only a tenth of it is visible to the page reclaim code.Something must have allocated (and possibly leaked) it.
Looks like most of the memory went for dentries and inodes. slabtop output:
Active / Total Objects (% used) : 8172165 / 8326954 (98.1%) Active / Total Slabs (% used) : 903692 / 903698 (100.0%) Active / Total Caches (% used) : 91 / 144 (63.2%) Active / Total Size (% used) : 3251262.44K / 3281384.22K (99.1%)Minimum / Average / Maximum Object : 0.02K / 0.39K / 1024.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
Quoted 8 lines
3960036 3960017 99% 0.59K 660006 6 2640024K inode_cache 4137155 3997581 96% 0.20K 217745 19 870980K dentry 69776 69744 99% 0.80K 17444 4 69776K ext3_inode_cache 96792 92892 95% 0.10K 2616 37 10464K buffer_head 10024 9895 98% 0.54K 1432 7 5728K radix_tree_node 1093 1087 99% 4.00K 1093 1 4372K size-4096 14805 14711 99% 0.25K 987 15 3948K size-256 2400 2381 99% 0.80K 480 5 1920K shmem_inode_cacheFWIW, after "echo 3 >
/proc/sys/vm/drop_caches" it looks like this:Active / Total Objects (% used) : 7965003 / 8153578 (97.7%) Active / Total Slabs (% used) : 882511 / 882511 (100.0%) Active / Total Caches (% used) : 90 / 144 (62.5%) Active / Total Size (% used) : 3173487.59K / 3211091.64K (98.8%)Minimum / Average / Maximum Object : 0.02K / 0.39K / 1024.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
3960036 3960007 99% 0.59K 660006 6 2640024K inode_cache 4137155 3962636 95% 0.20K 217745 19 870980K dentry 1097 1097 100% 4.00K 1097 1 4388K size-4096 14805 14667 99% 0.25K 987 15 3948K size-256 2400 2381 99% 0.80K 480 5 1920K shmem_inode_cache 1404 1404 100% 1.00K 351 4 1404K size-1024 152 152 100% 5.59K 152 1 1216K task_struct 1302 347 26% 0.54K 186 7 744K radix_tree_node 370 359 97% 2.00K 185 2 740K size-2048 9381 4316 46% 0.06K 159 59 636K size-64 8 8 100% 64.00K 8 1 512K size-65536
Quoted 5 lines
Quoted 1 line
So, are we leaking dentries and inodes?
Yes, probably leaking dentries, which pin inodes. I don't know that slab leak debugging is going to help you because it won't find what is holding the refcount.
Heiko, what's the output of lsof?
The attached filecache patch may also help debugging.
Usage:
# run patched kernel, with CONFIG_PROC_FILECACHE and CONFIG_PROC_FILECACHE_EXTRAS
modprobe filecache
echo ls all > /proc/filecache
cp /proc/filecache filecache-`date +'%F'`This will dump all the cached inodes with their file name, refcount and creator.
Thanks,
Fengguang
include/linux/mm.h +1 -0
@@ -27,6 +27,7 @@ extern unsigned long max_mapnr;extern unsigned long num_physpages;extern void * high_memory;extern int page_cluster; +extern char *const zone_names[];#ifdef CONFIG_SYSCTL extern int sysctl_legacy_va_layout;
mm/page_alloc.c +1 -1
@@ -104,7 +104,7 @@ int sysctl_lowmem_reserve_ratio[MAX_NR_ZEXPORT_SYMBOL (totalram_pages); -static char *const zone_names[MAX_NR_ZONES ] = { +char *const zone_names[MAX_NR_ZONES ] = { #ifdef CONFIG_ZONE_DMA"DMA" , #endif
fs/dcache.c +4 -1
@@ -1943,7 +1943,10 @@ char *__d_path(const struct path *path,if (dentry == root->dentry && vfsmnt == root->mnt)break ; -if (dentry == vfsmnt->mnt_root ||IS_ROOT (dentry)) { +if (unlikely (!vfsmnt)) { +if (IS_ROOT (dentry)) +break ; + }else if (dentry == vfsmnt->mnt_root ||IS_ROOT (dentry)) {/* Global root? */ if (vfsmnt->mnt_parent == vfsmnt) { goto global_root;
lib/radix-tree.c +0 -2
@@ -564,7 +564,6 @@ out: }EXPORT_SYMBOL (radix_tree_tag_clear); -#ifndef __KERNEL__/* Only the test harness uses this at present */ /** * radix_tree_tag_get - get a tag on a radix tree node * @root: radix tree root
@@ -627,7 +626,6 @@ int radix_tree_tag_get(struct radix_tree } }EXPORT_SYMBOL (radix_tree_tag_get); -#endif /** * radix_tree_next_hole - find the next hole (not-present entry)
fs/inode.c +25 -0
@@ -82,6 +82,10 @@ static struct hlist_head *inode_hashtabl*/ DEFINE_SPINLOCK (inode_lock); +EXPORT_SYMBOL (inode_in_use); +EXPORT_SYMBOL (inode_unused); +EXPORT_SYMBOL (inode_lock); +/* * iprune_mutex provides exclusion between the kswapd or try_to_free_pages * icache shrinking path, and the umount path. Without this exclusion,
@@ -108,6 +112,14 @@ static void wake_up_inode(struct inode *wake_up_bit (&inode->i_state, __I_LOCK); } +static inline void inode_created_by (struct inode *inode,struct task_struct *task) +{ +#ifdef CONFIG_PROC_FILECACHE_EXTRAS + inode->i_cuid = task->uid; +memcpy (inode->i_comm, task->comm,sizeof (task->comm)); +#endif +} +static struct inode *alloc_inode (struct super_block *sb) {static const struct address_space_operations empty_aops;
@@ -183,6 +195,7 @@ static struct inode *alloc_inode(struct } inode->i_private =NULL ; inode->i_mapping = mapping; +inode_created_by (inode, current); }return inode; }
@@ -247,6 +260,8 @@ void __iget(struct inode * inode) inodes_stat.nr_unused--; } +EXPORT_SYMBOL (__iget); +/** * clear_inode - clear an inode * @inode: inode to clear
@@ -1353,6 +1368,16 @@ void inode_double_unlock(struct inode *i }EXPORT_SYMBOL (inode_double_unlock); + +struct hlist_head *get_inode_hash_budget (unsigned long index) +{ +if (index >= (1 << i_hash_shift)) +return NULL ; + +return inode_hashtable + index; +} +EXPORT_SYMBOL_GPL (get_inode_hash_budget); +static __initdata unsigned long ihash_entries;static int __init set_ihash_entries (char *str) {
fs/super.c +3 -0
@@ -45,6 +45,9 @@LIST_HEAD (super_blocks);DEFINE_SPINLOCK (sb_lock); +EXPORT_SYMBOL (super_blocks); +EXPORT_SYMBOL (sb_lock); +/** * alloc_super - create new superblock * @type: filesystem type superblock should belong to
mm/vmscan.c +1 -0
@@ -230,6 +230,7 @@ unsigned long shrink_slab(unsigned longup_read (&shrinker_rwsem);return ret; } +EXPORT_SYMBOL (shrink_slab);/* Called without lock on whether page is mapped, so answer is unstable */ static inline int page_mapping_inuse (struct page *page)
mm/swap_state.c +1 -0
@@ -44,6 +44,7 @@ struct address_space swapper_space = { .i_mmap_nonlinear = LIST_HEAD_INIT(swapper_space.i_mmap_nonlinear), .backing_dev_info = &swap_backing_dev_info, }; +EXPORT_SYMBOL_GPL (swapper_space);#define INC_CACHE_INFO (x) do { swap_cache_info.x++; } while (0)
Documentation/filesystems/proc.txt +83 -0
95 lines not on this page · raw message
fs/proc/filecache.c new file +1045 -0
1,045 lines not on this page · raw message
include/linux/fs.h +14 -0
@@ -685,6 +685,12 @@ struct inode {void *i_security;#endif void *i_private;/* fs or device private pointer */ + +#ifdef CONFIG_PROC_FILECACHE_EXTRAS +unsigned int i_access_count;/* opened how many times? */ +uid_t i_cuid;/* opened first by which user? */ +char i_comm[16 ];/* opened first by which app? */ +#endif };/*
@@ -773,6 +779,13 @@ static inline unsigned imajor(const strureturn MAJOR (inode->i_rdev); } +static inline void inode_accessed (struct inode *inode) +{ +#ifdef CONFIG_PROC_FILECACHE_EXTRAS + inode->i_access_count++; +#endif +} +extern struct block_device *I_BDEV (struct inode *inode);struct fown_struct {
@@ -1907,6 +1920,7 @@ extern void remove_inode_hash(struct inostatic inline void insert_inode_hash (struct inode *inode) {__insert_inode_hash (inode, inode->i_ino); } +struct hlist_head *get_inode_hash_budget (unsigned long index);extern struct file *get_empty_filp (void );extern void file_move (struct file *f,struct list_head *list);
fs/open.c +1 -0
@@ -828,6 +828,7 @@ static struct file *__dentry_open(struct goto cleanup_all; } +inode_accessed (inode); f->f_flags &= ~(O_CREAT |O_EXCL |O_NOCTTY |O_TRUNC );file_ra_state_init (&f->f_ra, f->f_mapping->host->i_mapping);
fs/Kconfig +30 -0
@@ -750,6 +750,36 @@ config CONFIGFS_FS Both sysfs and configfs can and should exist together on the same system. One is not a replacement for the other. +config PROC_FILECACHE + tristate "/proc/filecache support" + default m + depends on PROC_FS + help + This option creates a file /proc/filecache which enables one to + query/drop the cached files in memory. + + A quick start guide: + + # echo 'ls' > /proc/filecache + # head /proc/filecache + + # echo 'cat /bin/bash' > /proc/filecache + # head /proc/filecache + + # echo 'drop pagecache' > /proc/filecache + # echo 'drop slabcache' > /proc/filecache + + For more details, please check Documentation/filesystems/proc.txt . + + It can be a handy tool for sysadms and desktop users. + +config PROC_FILECACHE_EXTRAS + bool "track extra states" + default y + depends on PROC_FILECACHE + help + Track extra states that costs a little more time/space. + endmenu menu "Miscellaneous filesystems"
fs/proc/Makefile +2 -1
@@ -2,7 +2,8 @@ # Makefile for the Linux proc filesystem routines. # -obj-$(CONFIG_PROC_FS) += proc.o +obj-$(CONFIG_PROC_FS) += proc.o +obj-$(CONFIG_PROC_FILECACHE) += filecache.o proc-y := nommu.o task_nommu.o proc-$(CONFIG_MMU) := mmu.o task_mmu.o
Quoted 4 lines · Andrew Morton
Quoted 2 lines · On Tue, 17 Mar 2009 10:00:49 +0100 Heiko Carstens <[email protected]>…
Hi all,
Quoted 8 lines
Quoted 8 lines
the below looks like there is some bug in the memory management code. Even if there seems to be plenty of memory available the oom-killer kills processes.
The below happened after 27 days uptime, memory seems to be heavily fragmented, but there are stills larger portions of memory free that could satisfy an order 2 allocation. Any idea why this fails?
You are hitting the watermark code for the order-2 allocation in all liklihood. This looks like a GFP_KERNEL allocation so ordinarily it's a bit surprising.
Quoted 52 lines
Quoted 38 lines
[root@t6360003 ~]# uptime
09:33:41 up 27 days, 22:55, 1 user, load average: 0.00, 0.00, 0.00Mar 16 21:40:40 t6360003 kernel: basename invoked oom-killer: gfp_mask=0xd0, order=2, oomkilladj=0 Mar 16 21:40:40 t6360003 kernel: CPU: 0 Not tainted 2.6.28 #1 Mar 16 21:40:40 t6360003 kernel: Process basename (pid: 30555, task: 000000007baa6838, ksp: 0000000063867968) Mar 16 21:40:40 t6360003 kernel: 0700000084a8c238 0000000063867a90 0000000000000002 0000000000000000 Mar 16 21:40:40 t6360003 kernel: 0000000063867b30 0000000063867aa8 0000000063867aa8 000000000010534e Mar 16 21:40:40 t6360003 kernel: 0000000000000000 0000000063867968 0000000000000000 000000000000000a Mar 16 21:40:40 t6360003 kernel: 000000000000000d 0000000000000000 0000000063867a90 0000000063867b08 Mar 16 21:40:40 t6360003 kernel: 00000000004a5ab0 000000000010534e 0000000063867a90 0000000063867ae0 Mar 16 21:40:40 t6360003 kernel: Call Trace: Mar 16 21:40:40 t6360003 kernel: ([<0000000000105248>] show_trace+0xf4/0x144) Mar 16 21:40:40 t6360003 kernel: [<0000000000105300>] show_stack+0x68/0xf4 Mar 16 21:40:40 t6360003 kernel: [<000000000049c84c>] dump_stack+0xb0/0xc0 Mar 16 21:40:40 t6360003 kernel: [<000000000019235e>] oom_kill_process+0x9e/0x220 Mar 16 21:40:40 t6360003 kernel: [<0000000000192c30>] out_of_memory+0x17c/0x264 Mar 16 21:40:40 t6360003 kernel: [<000000000019714e>] __alloc_pages_internal+0x4f6/0x534 Mar 16 21:40:40 t6360003 kernel: [<0000000000104058>] crst_table_alloc+0x48/0x108 Mar 16 21:40:40 t6360003 kernel: [<00000000001a3f60>] __pmd_alloc+0x3c/0x1a8 Mar 16 21:40:40 t6360003 kernel: [<00000000001a802e>] handle_mm_fault+0x262/0x9cc Mar 16 21:40:40 t6360003 kernel: [<00000000004a1a7a>] do_dat_exception+0x30a/0x41c Mar 16 21:40:40 t6360003 kernel: [<0000000000115e5c>] sysc_return+0x0/0x8 Mar 16 21:40:40 t6360003 kernel: [<0000004d193bfae0>] 0x4d193bfae0 Mar 16 21:40:40 t6360003 kernel: Mem-Info: Mar 16 21:40:40 t6360003 kernel: DMA per-cpu: Mar 16 21:40:40 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: Normal per-cpu: Mar 16 21:40:40 t6360003 kernel: CPU 0: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 1: hi: 186, btch: 31 usd: 30 Mar 16 21:40:40 t6360003 kernel: CPU 2: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 3: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: CPU 4: hi: 186, btch: 31 usd: 0Quoted 8 lines
Mar 16 21:40:40 t6360003 kernel: CPU 5: hi: 186, btch: 31 usd: 0 Mar 16 21:40:40 t6360003 kernel: Active_anon:372 active_file:45 inactive_anon:154 Mar 16 21:40:40 t6360003 kernel: inactive_file:152 unevictable:987 dirty:0 writeback:188 unstable:0 Mar 16 21:40:40 t6360003 kernel: free:146348 slab:875833 mapped:805 pagetables:378 bounce:0 Mar 16 21:40:40 t6360003 kernel: DMA free:467728kB min:4064kB low:5080kB high:6096kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:116kB unevictable:0kB present:2068480kB pages_scanned:0 all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 2020 2020 Mar 16 21:40:40 t6360003 kernel: Normal free:117664kB min:4064kB low:5080kB high:6096kB active_anon:1488kB inactive_anon:616kB active_file:188kB inactive_file:492kB unevictable:3948kB present:2068480kB pages_scanned:128 all_unreclaimable? no Mar 16 21:40:40 t6360003 kernel: lowmem_reserve[]: 0 0 0The scanner has wrung pretty much all it can out of the reclaimable pages - the LRUs are nearly empty. There's a few hundred MB free and apparently we don't have four physically contiguous free pages anywhere. It's believeable.
Quoted 6 lines
The question is: where the heck did all your memory go? You have 2GB of
ZONE_NORMALmemory in that machine, but only a tenth of it is visible to the page reclaim code.Something must have allocated (and possibly leaked) it.
This looks like a memory leak all right. There used to be a patch that recorded a stack trace for every page allocation but it was dropped from -mm ages ago because of a merge conflict. I didn't revive it at the time because it wasn't of immediate concern.
Should I revive the patch or do we have preferred ways of tracking down memory leaks these days?
Signature · 9 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Andrew Morton
maintainer Acked-by Andy Whitcroft Acked-by Andy Whitcroft Acked-by Christoph Lameter Acked-by Andy WhitcroftQuoted 11 lines · On Fri, 20 Mar 2009 15:27:00 +0000 Mel Gorman <[email protected]> wrote:
Quoted 3 lines
Something must have allocated (and possibly leaked) it.
This looks like a memory leak all right. There used to be a patch that recorded a stack trace for every page allocation but it was dropped from -mm ages ago because of a merge conflict. I didn't revive it at the time because it wasn't of immediate concern.
Should I revive the patch or do we have preferred ways of tracking down memory leaks these days?
We know that a dentry is getting leaked but afaik we don't know which one or why.
We could get more info via the page-owner-tracking-leak-detector.patch approach, or by dumping the info in the cached dentries - I think Wu Fengguang prepared a patch which does that.
I'm not sure why I dropped page-owner-tracking-leak-detector.patch actually
- it was pretty useful sometimes and afaik we still haven't merged any tool which duplicates it.
Here's the latest version which I have:
From: Alexander Nyberg <[email protected]>
Introduces CONFIG_PAGE_OWNER that keeps track of the call chain under which a page was allocated. Includes a user-space helper in Documentation/page_owner.c to sort the enormous amount of output that this may give (thanks tridge).
Information available through /proc/page_owner
x86_64 introduces some stack noise in certain call chains so for exact output use of x86 && CONFIG_FRAME_POINTER is suggested. Tested on x86, x86 && CONFIG_FRAME_POINTER, x86_64
Output looks like:
4819 times:
Page allocated via order 0, mask 0x50
[0xc012b7b9] find_lock_page+25
[0xc012b8c8] find_or_create_page+152
[0xc0147d74] grow_dev_page+36
[0xc0148164] __find_get_block+84
[0xc0147ebc] __getblk_slow+124
[0xc0148164] __find_get_block+84
[0xc01481e7] __getblk+55
[0xc0185d14] do_readahead+100
We use a custom stack unwinder because using __builtin_return_address([0-7]) causes gcc to generate code that might try to unwind the stack looking for function return addresses and "fall off" causing early panics if the call chain is not deep enough. So in that case we could have had a depth of around 3 functions in all traces (I experimented a bit with this).
From: Dave Hansen <[email protected]>
make page_owner handle non-contiguous page ranges
From: Alexander Nyberg <[email protected]>
I've cleaned up the __alloc_pages() part to a simple set_page_owner() call.
DESC
Update page->order at an appropriate time when tracking PAGE_OWNER EDESC
From: [email protected] (Mel Gorman)
PAGE_OWNER tracks free pages by setting page->order to -1. However, it is set during __free_pages() which is not the only free path as __pagevec_free() and free_compound_page() do not go through __free_pages().
This leads to a situation where free pages are visible in /proc/page_owner
which is confusing and might be interpreted as a memory leak.
This patch sets page->owner when PageBuddy is set. It also prints a warning to the kernel log if a free page is found that does not appear free to PAGE_OWNER. This should be considered a fix to page-owner-tracking-leak-detector.patch.
This only applies to -mm as PAGE_OWNER is not in mainline.
DESC
Print out PAGE_OWNER statistics in relation to fragmentation avoidance EDESC
From: Mel Gorman <[email protected]>
When PAGE_OWNER is set, more information is available of relevance to fragmentation avoidance. A second line is added to /proc/page_owner showing the PFN, the pageblock number, the mobility type of the page based on its allocation flags, whether the allocation is improperly placed and the flags. A sample entry looks like
Page allocated via order 0, mask 0x1280d2
PFN 7355 Block 7 type 3 Fallback Flags LA
[0xc01528c6] __handle_mm_fault+598
[0xc0320427] do_page_fault+279
[0xc031ed9a] error_code+114
This information can be used to identify pages that are improperly placed. As the format of PAGE_OWNER data is now different, the comment at the top of Documentation/page_owner.c is updated with new instructions.
As PAGE_OWNER tracks the GFP flags used to allocate the pages, /proc/pagetypeinfo is enhanced to contain how many mixed blocks exist. The additional output looks like
Number of mixed blocks Unmovable Reclaimable Movable Reserve
Node 0, zone DMA 0 1 2 1 Node 0, zone Normal 2 11 33 0
DESC
Allow PAGE_OWNER to be set on any architecture
EDESC
From: Mel Gorman <[email protected]>
Currently PAGE_OWNER depends on CONFIG_X86. This appears to be due to pfn_to_page() being called in an inappropriate for many memory models and the presense of memory holes. This patch ensures that pfn_valid() and pfn_valid_within() is called at the appropriate places and the offsets correctly updated so that PAGE_OWNER is safe on any architecture.
In situations where CONFIG_HOLES_IN_ZONES is set (IA64 with VIRTUAL_MEM_MAP), there may be cases where pages allocated within a MAX_ORDER_NR_PAGES block of pages may not be displayed in /proc/page_owner if the hole is at the start of the block. Addressing this would be quite complex, perform slowly and is of no clear benefit.
Once PAGE_OWNER is allowed on all architectures, the statistics for grouping pages by mobility that declare how many pageblocks contain mixed page types becomes optionally available on all arches.
This patch was tested successfully on x86, x86_64, ppc64 and IA64 machines.
DESC allow-page_owner-to-be-set-on-any-architecture-fix EDESC
From: Andrew Morton <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Cc: Mel Gorman <[email protected]>
DESC allow-page_owner-to-be-set-on-any-architecture-fix fix EDESC
From: [email protected] (Mel Gorman)
Page-owner-tracking stores the a backtrace of an allocation in the struct page. How the stack trace is generated depends on whether CONFIG_FRAME_POINTER is set or not. If CONFIG_FRAME_POINTER is set, the frame pointer must be read using some inline assembler which is not available for all architectures.
This patch uses the frame pointer where it is available but has a fallback where it is not.
---
Documentation/page_owner.c | 141 ++++++++++++++++++++++++++++++++++ fs/proc/proc_misc.c | 145 +++++++++++++++++++++++++++++++++++ include/linux/mm_types.h | 5 + lib/Kconfig.debug | 10 ++ mm/page_alloc.c | 66 +++++++++++++++ mm/vmstat.c | 93 ++++++++++++++++++++++ 6 files changed, 460 insertions(+)
Documentation/page_owner.c new file +141 -0
@@ -0,0 +1,141 @@ +/* +* User-space helper to sort the output of /proc/page_owner +* +* Example use: +* cat /proc/page_owner > page_owner_full.txt +* grep -v ^PFN page_owner_full.txt > page_owner.txt +* ./sort page_owner.txt sorted_page_owner.txt +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <unistd.h> +#include <string.h> + +struct block_list { +char *txt; +int len; +int num; +}; + + +static struct block_list *list; +static int list_size; +static int max_size; + +struct block_list *block_head; + +int read_block (char *buf,FILE *fin) +{ +int ret =0 ; +int hit =0 ; +char *curr = buf; + +for (;;) { + *curr =getc (fin); +if (*curr ==EOF )return -1 ; + + ret++; +if (*curr =='\n' && hit ==1 ) +return ret -1 ; +else if (*curr =='\n' ) + hit =1 ; +else + hit =0 ; + curr++; + } +} + +static int compare_txt (struct block_list *l1,struct block_list *l2) +{ +return strcmp (l1->txt, l2->txt); +} + +static int compare_num (struct block_list *l1,struct block_list *l2) +{ +return l2->num - l1->num; +} + +static void add_list (char *buf,int len) +{ +if (list_size !=0 && + len == list[list_size-1 ].len && +memcmp (buf, list[list_size-1 ].txt, len) ==0 ) { + list[list_size-1 ].num++; +return ; + } +if (list_size == max_size) { +printf ("max_size too small??\n" ); +exit (1 ); + } + list[list_size].txt =malloc (len+1 ); + list[list_size].len = len; + list[list_size].num =1 ; +memcpy (list[list_size].txt, buf, len); + list[list_size].txt[len] =0 ; + list_size++; +if (list_size %1000 ==0 ) { +printf ("loaded %d\r" , list_size); +fflush (stdout); + } +} + +int main (int argc,char **argv) +{ +FILE *fin, *fout; +char buf[1024 ]; +int ret, i, count; +struct block_list *list2; +struct stat st; + + fin =fopen (argv[1 ],"r" ); + fout =fopen (argv[2 ],"w" ); +if (!fin || !fout) { +printf ("Usage: ./program <input> <output>\n" ); +perror ("open: " ); +exit (2 ); + } + +fstat (fileno (fin), &st); + max_size = st.st_size /100 ;/* hack ... */ + + list =malloc (max_size *sizeof (*list)); + +for (;;) { + ret =read_block (buf, fin); +if (ret <0 ) +break ; + + buf[ret] ='\0' ; +add_list (buf, ret); + } + +printf ("loaded %d\n" , list_size); + +printf ("sorting ....\n" ); + +qsort (list, list_size,sizeof (list[0 ]), compare_txt); + + list2 =malloc (sizeof (*list) * list_size); + +printf ("culling\n" ); + +for (i=count=0 ;i<list_size;i++) { +if (count ==0 || +strcmp (list2[count-1 ].txt, list[i].txt) !=0 ) { + list2[count++] = list[i]; + }else { + list2[count-1 ].num += list[i].num; + } + } + +qsort (list2, count,sizeof (list[0 ]), compare_num); + +for (i=0 ;i<count;i++) { +fprintf (fout,"%d times:\n%s\n" , list2[i].num, list2[i].txt); + } +return 0 ; +}
fs/proc/proc_misc.c renamed from fs/proc/proc_misc.c~page-owner-tracking-leak-detector +145 -0
155 lines not on this page · raw message
include/linux/mm_types.h renamed from include/linux/mm_types.h~page-owner-tracking-leak-detector +5 -0
@@ -101,6 +101,11 @@ struct page {#ifdef CONFIG_KMEMCHECK void *shadow;#endif +#ifdef CONFIG_PAGE_OWNER +int order; +unsigned int gfp_mask; +unsigned long trace[8 ]; +#endif };/*
lib/Kconfig.debug renamed from lib/Kconfig.debug~page-owner-tracking-leak-detector +10 -0
@@ -66,6 +66,16 @@ config UNUSED_SYMBOLS you really need it, and what the merge plan to the mainline kernel for your module is. +config PAGE_OWNER + bool "Track page owner" + depends on DEBUG_KERNEL + help + This keeps track of what call chain is the owner of a page, may + help to find bare alloc_page(s) leaks. Eats a fair amount of memory. + See Documentation/page_owner.c for user-space helper. + + If unsure, say N. + config DEBUG_FS bool "Debug Filesystem" depends on SYSFS
mm/page_alloc.c renamed from mm/page_alloc.c~page-owner-tracking-leak-detector +66 -0
90 lines not on this page · raw message
mm/vmstat.c renamed from mm/vmstat.c~page-owner-tracking-leak-detector +93 -0
111 lines not on this page · raw message
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 14 lines · Andrew Morton
Quoted 11 lines · On Fri, 20 Mar 2009 15:27:00 +0000 Mel Gorman <[email protected]> wrote:
Quoted 3 lines
Something must have allocated (and possibly leaked) it.
This looks like a memory leak all right. There used to be a patch that recorded a stack trace for every page allocation but it was dropped from -mm ages ago because of a merge conflict. I didn't revive it at the time because it wasn't of immediate concern.
Should I revive the patch or do we have preferred ways of tracking down memory leaks these days?
Quoted 7 lines
We know that a dentry is getting leaked but afaik we don't know which one or why.
We could get more info via the page-owner-tracking-leak-detector.patch approach, or by dumping the info in the cached dentries - I think Wu Fengguang prepared a patch which does that.
Looks like it
Quoted 4 lines
I'm not sure why I dropped page-owner-tracking-leak-detector.patch actually
- it was pretty useful sometimes and afaik we still haven't merged any tool which duplicates it.
The note I got at the time was "This patch was dropped because procfs changes broke it".
Quoted 2 lines
Here's the latest version which I have:
That matches what I have. I'll check and see can I figure out what broke with it.
Quoted 8 lines
From: Alexander Nyberg <[email protected]>
Introduces
CONFIG_PAGE_OWNERthat keeps track of the call chain under which a page was allocated. Includes a user-space helper inDocumentation/page_owner.cto sort the enormous amount of output that this may give (thanks tridge).<SNIP>
Signature · 9 lines
Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Mel Gorman
Acked-by Andy Whitcroft Acked-by Andy Whitcroft Acked-by Christoph Lameter Acked-by Andy WhitcroftQuoted 21 lines · Andrew Morton
Quoted 11 lines · On Fri, 20 Mar 2009 15:27:00 +0000 Mel Gorman <[email protected]> wrote:
Quoted 3 lines
Something must have allocated (and possibly leaked) it.
This looks like a memory leak all right. There used to be a patch that recorded a stack trace for every page allocation but it was dropped from -mm ages ago because of a merge conflict. I didn't revive it at the time because it wasn't of immediate concern.
Should I revive the patch or do we have preferred ways of tracking down memory leaks these days?
We know that a dentry is getting leaked but afaik we don't know which one or why.
We could get more info via the page-owner-tracking-leak-detector.patch approach, or by dumping the info in the cached dentries - I think Wu Fengguang prepared a patch which does that.
Quoted 6 lines
I'm not sure why I dropped page-owner-tracking-leak-detector.patch actually
- it was pretty useful sometimes and afaik we still haven't merged any tool which duplicates it.Here's the latest version which I have:
Here is a rebased reversion. Appears to work as advertised based on a quick test with qemu and builds without CONFIG_PROC_PAGEOWNER
============
From: Alexander Nyberg <[email protected]>
Subject: [PATCH] Introduces CONFIG_PAGE_OWNER that keeps track of the call chain under which a page was allocated
Introduces CONFIG_PROC_PAGEOWNER that keeps track of the call chain under which a page was allocated. Includes a user-space helper in Documentation/page_owner.c to sort the enormous amount of output that this may give (thanks tridge).
Information available through /proc/page_owner
x86_64 introduces some stack noise in certain call chains so for exact output use of x86 && CONFIG_FRAME_POINTER is suggested. Tested on x86, x86 && CONFIG_FRAME_POINTER, x86_64
Output looks like:
4819 times:
Page allocated via order 0, mask 0x50
[0xc012b7b9] find_lock_page+25
[0xc012b8c8] find_or_create_page+152
[0xc0147d74] grow_dev_page+36
[0xc0148164] __find_get_block+84
[0xc0147ebc] __getblk_slow+124
[0xc0148164] __find_get_block+84
[0xc01481e7] __getblk+55
[0xc0185d14] do_readahead+100
We use a custom stack unwinder because using __builtin_return_address([0-7]) causes gcc to generate code that might try to unwind the stack looking for function return addresses and "fall off" causing early panics if the call chain is not deep enough. So in that case we could have had a depth of around 3 functions in all traces (I experimented a bit with this).
From: Dave Hansen <[email protected]>
make page_owner handle non-contiguous page ranges
From: Alexander Nyberg <[email protected]>
I've cleaned up the __alloc_pages() part to a simple set_page_owner() call.
DESC
Update page->order at an appropriate time when tracking PAGE_OWNER EDESC
From: [email protected] (Mel Gorman)
PAGE_OWNER tracks free pages by setting page->order to -1. However, it is set during __free_pages() which is not the only free path as __pagevec_free() and free_compound_page() do not go through __free_pages().
This leads to a situation where free pages are visible in /proc/page_owner
which is confusing and might be interpreted as a memory leak.
This patch sets page->owner when PageBuddy is set. It also prints a warning to the kernel log if a free page is found that does not appear free to PAGE_OWNER. This should be considered a fix to page-owner-tracking-leak-detector.patch.
This only applies to -mm as PAGE_OWNER is not in mainline.
DESC
Print out PAGE_OWNER statistics in relation to fragmentation avoidance EDESC
From: Mel Gorman <[email protected]>
When PAGE_OWNER is set, more information is available of relevance to fragmentation avoidance. A second line is added to /proc/page_owner showing the PFN, the pageblock number, the mobility type of the page based on its allocation flags, whether the allocation is improperly placed and the flags. A sample entry looks like
Page allocated via order 0, mask 0x1280d2
PFN 7355 Block 7 type 3 Fallback Flags LA
[0xc01528c6] __handle_mm_fault+598
[0xc0320427] do_page_fault+279
[0xc031ed9a] error_code+114
This information can be used to identify pages that are improperly placed. As the format of PAGE_OWNER data is now different, the comment at the top of Documentation/page_owner.c is updated with new instructions.
As PAGE_OWNER tracks the GFP flags used to allocate the pages, /proc/pagetypeinfo is enhanced to contain how many mixed blocks exist. The additional output looks like
Number of mixed blocks Unmovable Reclaimable Movable Reserve
Node 0, zone DMA 0 1 2 1 Node 0, zone Normal 2 11 33 0
DESC
Allow PAGE_OWNER to be set on any architecture
EDESC
From: Mel Gorman <[email protected]>
Currently PAGE_OWNER depends on CONFIG_X86. This appears to be due to pfn_to_page() being called in an inappropriate for many memory models and the presense of memory holes. This patch ensures that pfn_valid() and pfn_valid_within() is called at the appropriate places and the offsets correctly updated so that PAGE_OWNER is safe on any architecture.
In situations where CONFIG_HOLES_IN_ZONES is set (IA64 with VIRTUAL_MEM_MAP), there may be cases where pages allocated within a MAX_ORDER_NR_PAGES block of pages may not be displayed in /proc/page_owner if the hole is at the start of the block. Addressing this would be quite complex, perform slowly and is of no clear benefit.
Once PAGE_OWNER is allowed on all architectures, the statistics for grouping pages by mobility that declare how many pageblocks contain mixed page types becomes optionally available on all arches.
This patch was tested successfully on x86, x86_64, ppc64 and IA64 machines.
DESC allow-page_owner-to-be-set-on-any-architecture-fix EDESC
From: Andrew Morton <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Cc: Mel Gorman <[email protected]>
DESC allow-page_owner-to-be-set-on-any-architecture-fix fix EDESC
From: [email protected] (Mel Gorman)
Page-owner-tracking stores the a backtrace of an allocation in the struct page. How the stack trace is generated depends on whether CONFIG_FRAME_POINTER is set or not. If CONFIG_FRAME_POINTER is set, the frame pointer must be read using some inline assembler which is not available for all architectures.
This patch uses the frame pointer where it is available but has a fallback where it is not.
From: Mel Gorman <[email protected]>
Rebase on top of procfs changes
Documentation/page_owner.c new file +144 -0
@@ -0,0 +1,144 @@ +/* +* User-space helper to sort the output of /proc/page_owner +* +* Example use: +* cat /proc/page_owner > page_owner_full.txt +* grep -v ^PFN page_owner_full.txt > page_owner.txt +* ./sort page_owner.txt sorted_page_owner.txt +*/ + +#include <stdio.h> +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <unistd.h> +#include <string.h> + +struct block_list { +char *txt; +int len; +int num; +}; + + +static struct block_list *list; +static int list_size; +static int max_size; + +struct block_list *block_head; + +int read_block (char *buf,FILE *fin) +{ +int ret =0 ; +int hit =0 ; +char *curr = buf; + +for (;;) { + *curr =getc (fin); +if (*curr ==EOF )return -1 ; + + ret++; +if (*curr =='\n' && hit ==1 ) +return ret -1 ; +else if (*curr =='\n' ) + hit =1 ; +else + hit =0 ; + curr++; + } +} + +static int compare_txt (const void *d1,const void *d2) +{ +struct block_list *l1 = (struct block_list *)d1; +struct block_list *l2 = (struct block_list *)d2; +return strcmp (l1->txt, l2->txt); +} + +static int compare_num (const void *d1,const void *d2) +{ +struct block_list *l1 = (struct block_list *)d1; +struct block_list *l2 = (struct block_list *)d2; +return l2->num - l1->num; +} + +static void add_list (char *buf,int len) +{ +if (list_size !=0 && + len == list[list_size-1 ].len && +memcmp (buf, list[list_size-1 ].txt, len) ==0 ) { + list[list_size-1 ].num++; +return ; + } +if (list_size == max_size) { +printf ("max_size too small??\n" ); +exit (1 ); + } + list[list_size].txt =malloc (len+1 ); + list[list_size].len = len; + list[list_size].num =1 ; +memcpy (list[list_size].txt, buf, len); + list[list_size].txt[len] =0 ; + list_size++; +if (list_size %1000 ==0 ) { +printf ("loaded %d\r" , list_size); +fflush (stdout); + } +} + +int main (int argc,char **argv) +{ +FILE *fin, *fout; +char buf[1024 ]; +int ret, i, count; +struct block_list *list2; +struct stat st; + + fin =fopen (argv[1 ],"r" ); + fout =fopen (argv[2 ],"w" ); +if (!fin || !fout) { +printf ("Usage: ./program <input> <output>\n" ); +perror ("open: " ); +exit (2 ); + } + +fstat (fileno (fin), &st); + max_size = st.st_size /100 ;/* hack ... */ + + list =malloc (max_size *sizeof (*list)); + +for (;;) { + ret =read_block (buf, fin); +if (ret <0 ) +break ; + + buf[ret] ='\0' ; +add_list (buf, ret); + } + +printf ("loaded %d\n" , list_size); + +printf ("sorting ....\n" ); + +qsort (list, list_size,sizeof (list[0 ]), compare_txt); + + list2 =malloc (sizeof (*list) * list_size); + +printf ("culling\n" ); + +for (i=count=0 ;i<list_size;i++) { +if (count ==0 || +strcmp (list2[count-1 ].txt, list[i].txt) !=0 ) + list2[count++] = list[i]; +else + list2[count-1 ].num += list[i].num; + } + +qsort (list2, count,sizeof (list[0 ]), compare_num); + +for (i=0 ;i<count;i++) { +fprintf (fout,"%d times:\n%s\n" , list2[i].num, list2[i].txt); + } +return 0 ; +}
fs/proc/Makefile +1 -0
@@ -22,6 +22,7 @@ proc-$(CONFIG_PROC_SYSCTL) += proc_sysctl.o proc-$(CONFIG_NET) += proc_net.o proc-$(CONFIG_PROC_KCORE) += kcore.o proc-$(CONFIG_PROC_VMCORE) += vmcore.o +proc-$(CONFIG_PROC_PAGEOWNER) += pageowner.o proc-$(CONFIG_PROC_DEVICETREE) += proc_devtree.o proc-$(CONFIG_PRINTK) += kmsg.o proc-$(CONFIG_PROC_PAGE_MONITOR) += page.o
include/linux/mm_types.h +6 -0
@@ -94,6 +94,12 @@ struct page {void *virtual;/* Kernel virtual address (NULL if not kmapped, ie. highmem) */ #endif /* WANT_PAGE_VIRTUAL */ + +#ifdef CONFIG_PROC_PAGEOWNER +int order; +unsigned int gfp_mask; +unsigned long trace[8 ]; +#endif };/*
lib/Kconfig.debug +10 -0
@@ -66,6 +66,16 @@ config UNUSED_SYMBOLS you really need it, and what the merge plan to the mainline kernel for your module is. +config PROC_PAGEOWNER + bool "Track page owner" + depends on DEBUG_KERNEL + help + This keeps track of what call chain is the owner of a page, may + help to find bare alloc_page(s) leaks. Eats a fair amount of memory. + See Documentation/page_owner.c for user-space helper. + + If unsure, say N. + config DEBUG_FS bool "Debug Filesystem" depends on SYSFS
mm/page_alloc.c +66 -0
90 lines not on this page · raw message
mm/vmstat.c +93 -0
111 lines not on this page · raw message
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>