vlc 1.1.3 on mips platform got oom-killer

*nix specific usage questions
zhangtower
Blank Cone
Blank Cone
Posts: 34
Joined: 04 Feb 2008 04:28

vlc 1.1.3 on mips platform got oom-killer

Postby zhangtower » 13 Dec 2010 11:00

i cross compile vlc on mips platform, when i input the command
vlc --sout '#udp{dst=225.1.1.40,port=1234}' /mnt/media/default.mpg
vlc runs very slowly, after 2-3 miniutes, omm-killer will occur.
the console print the following information.

Code: Select all

[ 2362.260000] printk: 31 messages suppressed. [ 2362.260000] klogd invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0 [ 2362.270000] Call Trace: [ 2362.270000] [<8400fd9c>] dump_stack+0x8/0x34 [ 2362.270000] [<84063728>] out_of_memory+0x2e0/0x358 [ 2362.280000] [<84065cd4>] __alloc_pages+0x3c8/0x3dc [ 2362.280000] [<840888b4>] cache_alloc_refill+0x37c/0x7d4 [ 2362.290000] [<8408850c>] kmem_cache_alloc+0x74/0xa0 [ 2362.290000] [<84096c40>] getname+0x24/0xf4 [ 2362.300000] [<8408a830>] do_sys_open+0x30/0xe8 [ 2362.300000] [<84012984>] stack_done+0x20/0x3c [ 2362.310000] [ 2362.310000] Mem-info: [ 2362.310000] DMA per-cpu: [ 2362.310000] CPU 0: Hot: hi: 42, btch: 7 usd: 6 Cold: hi: 14, btch: 3 usd: 2 [ 2362.320000] Active:19601 inactive:2445 dirty:0 writeback:0 unstable:0 [ 2362.320000] free:407 slab:1310 mapped:41 pagetables:70 bounce:0 [ 2362.330000] DMA free:1628kB min:1632kB low:2040kB high:2448kB active:78404kB inactive:9780kB present:166624kB pages_scanned:145762 all_unreclaimable? yes [ 2362.340000] lowmem_reserve[]: 0 0 [ 2362.340000] DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1628kB [ 2362.350000] Swap cache: add 0, delete 0, find 0/0, race 0+0 [ 2362.350000] Free swap = 0kB [ 2362.360000] Total swap = 0kB [ 2362.360000] Free swap: 0kB [ 2362.370000] vlc invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0 [ 2362.370000] Call Trace: [ 2362.370000] [<8400fd9c>]<4>vlc invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0 [ 2362.380000] Call Trace: [ 2362.390000] top invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0 [ 2362.390000] Call Trace: [ 2362.390000] [<8400fd9c>]41984 pages of RAM [ 2362.400000] 0 pages of HIGHMEM [ 2362.410000] dump_stack+0x8/0x34 [ 2362.410000] [<84063728>] out_of_memory+0x2e0/0x358 [ 2362.420000] [<8400fd9c>] dump_stack+0x8/0x34 [ 2362.420000] [<84063728>] out_of_memory+0x2e0/0x358 [ 2362.420000] [<84065cd4>] dump_stack+0x8/0x34 [ 2362.430000] [<84063728>] out_of_memory+0x2e0/0x358 [ 2362.430000] [<84065cd4>]17715 reserved pages [ 2362.440000] 40 pages shared [ 2362.440000] 0 pages swap cached [ 2362.440000] Out of memory: kill process 216 (sh) score 6972 or a child [ 2362.450000] Killed process 288 (vlc) [ 2362.450000] [<84065cd4>] __alloc_pages+0x3c8/0x3dc [ 2362.460000] [<840681cc>] __do_page_cache_readahead+0x15c/0x3a0 [ 2362.460000] [<8405fa44>] __alloc_pages+0x3c8/0x3dc [ 2362.470000] [<840888b4>] cache_alloc_refill+0x37c/0x7d4 [ 2362.470000] [<8408850c>] __alloc_pages+0x3c8/0x3dc [ 2362.480000] [<840681cc>] __do_page_cache_readahead+0x15c/0x3a0 [ 2362.490000] filemap_nopage+0x2a4/0x4d4 [ 2362.490000] [<84071eac>] __handle_mm_fault+0x178/0xe24 [ 2362.490000] [<84014154>] kmem_cache_alloc+0x74/0xa0 [ 2362.500000] [<84096c40>] getname+0x24/0xf4 [ 2362.500000] [<8408a830>][<8405fa44>] filemap_nopage+0x2a4/0x4d4 [ 2362.510000] [<84071eac>] __handle_mm_fault+0x178/0xe24 [ 2362.520000] klogd invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0 [ 2362.520000] Call Trace: [ 2362.520000] [<8400fd9c>] do_page_fault+0x144/0x3c0 [ 2362.530000] [<840097a4>] ret_from_exception+0x0/0x10 [ 2362.530000] [ 2362.540000] do_sys_open+0x30/0xe8 [ 2362.540000] [<84012984>] stack_done+0x20/0x3c [ 2362.540000] [ 2362.550000] [<84014154>] do_page_fault+0x144/0x3c0 [ 2362.550000] [<840097a4>] ret_from_exception+0x0/0x10 [ 2362.560000] dump_stack+0x8/0x34 [ 2362.560000] [<84063728>] out_of_memory+0x2e0/0x358 [ 2362.560000] [<84065cd4>]Mem-info: [ 2362.570000] DMA per-cpu: [ 2362.570000] CPU 0: Hot: hi: 42, btch: 7 usd: 5 Cold: hi: 14, btch: 3 usd: 2 [ 2362.580000] Mem-info: [ 2362.580000] DMA per-cpu: [ 2362.580000] CPU 0: Hot: hi: 42, btch: 7 usd: 5 Cold: hi: 14, btch: 3 usd: 2 [ 2362.590000] [ 2362.590000] Mem-info: [ 2362.590000] DMA per-cpu: [ 2362.600000] __alloc_pages+0x3c8/0x3dc [ 2362.600000] [<840888b4>] cache_alloc_refill+0x37c/0x7d4 [ 2362.610000] Active:19601 inactive:2445 dirty:0 writeback:0 unstable:0 [ 2362.610000] free:407 slab:1311 mapped:41 pagetables:70 bounce:0 [ 2362.620000] Active:19601 inactive:2445 dirty:0 writeback:0 unstable:0 [ 2362.620000] free:407 slab:1311 mapped:41 pagetables:70 bounce:0 [ 2362.630000] CPU 0: Hot: hi: 42, btch: 7 usd: 5 Cold: hi: 14, btch: 3 usd: 2 [ 2362.640000] [<8408850c>] kmem_cache_alloc+0x74/0xa0 [ 2362.640000] [<84096c40>]DMA free:1628kB min:1632kB low:2040kB high:2448kB active:78404kB inactive:9780kB present:166624kB pages_scanned:145762 all_unreclaimable? yes [ 2362.660000] DMA free:1628kB min:1632kB low:2040kB high:2448kB active:78404kB inactive:9780kB present:166624kB pages_scanned:145762 all_unreclaimable? yes [ 2362.670000] Active:19601 inactive:2445 dirty:0 writeback:0 unstable:0 [ 2362.670000] free:407 slab:1311 mapped:41 pagetables:70 bounce:0 [ 2362.680000] getname+0x24/0xf4 [ 2362.680000] [<8408a830>] do_sys_open+0x30/0xe8 [ 2362.680000] [<84012984>] stack_done+0x20/0x3c [ 2362.690000] lowmem_reserve[]: 0 0 [ 2362.690000] DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB lowmem_reserve[]: 0 0 [ 2362.700000] DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB DMA free:1628kB min:1632kB low:2040kB high:2448kB active:78404kB inactive:9780kB present:166624kB pages_scanned:145762 all_unreclaimable? yes [ 2362.720000] [ 2362.720000] Mem-info: [ 2362.720000] DMA per-cpu: [ 2362.720000] CPU 0: Hot: hi: 42, btch: 7 usd: 5 Cold: hi: 14, btch: 3 usd: 2 [ 2362.730000] 0*128kB 0*256kB 0*4096kB = 1628kB [ 2362.740000] Swap cache: add 0, delete 0, find 0/0, race 0+0 [ 2362.740000] Free swap = 0kB [ 2362.750000] lowmem_reserve[]: 0 0 [ 2362.750000] DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB Active:19601 inactive:2445 dirty:0 writeback:0 unstable:0 [ 2362.760000] free:407 slab:1311 mapped:41 pagetables:70 bounce:0 [ 2362.770000] 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1628kB [ 2362.770000] Swap cache: add 0, delete 0, find 0/0, race 0+0 [ 2362.780000] Total swap = 0kB [ 2362.780000] Free swap: 0kB [ 2362.790000] 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1628kB [ 2362.790000] Swap cache: add 0, delete 0, find 0/0, race 0+0 [ 2362.800000] DMA free:1628kB min:1632kB low:2040kB high:2448kB active:78404kB inactive:9780kB present:166624kB pages_scanned:145762 all_unreclaimable? yes [ 2362.810000] Free swap = 0kB [ 2362.810000] Total swap = 0kB [ 2362.820000] 41984 pages of RAM [ 2362.820000] 0 pages of HIGHMEM [ 2362.830000] Free swap = 0kB [ 2362.830000] Total swap = 0kB [ 2362.830000] Free swap: 0kB [ 2362.840000] lowmem_reserve[]: 0 0 [ 2362.840000] DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB Free swap: 0kB [ 2362.850000] 41984 pages of RAM [ 2362.860000] 17715 reserved pages [ 2362.860000] 40 pages shared [ 2362.860000] 0 pages swap cached [ 2362.870000] 41984 pages of RAM [ 2362.880000] 0*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1628kB [ 2362.880000] Swap cache: add 0, delete 0, find 0/0, race 0+0 [ 2362.890000] 0 pages of HIGHMEM [ 2362.890000] 17715 reserved pages [ 2362.890000] 40 pages shared [ 2362.900000] 0 pages of HIGHMEM [ 2362.900000] 17715 reserved pages [ 2362.900000] 40 pages shared [ 2362.910000] Free swap = 0kB [ 2362.910000] Total swap = 0kB [ 2362.910000] Free swap: 0kB [ 2362.920000] 0 pages swap cached [ 2362.920000] 0 pages swap cached [ 2362.920000] top invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0 [ 2362.940000] Call Trace: [ 2362.940000] [<8400fd9c>] dump_stack+0x8/0x34 [ 2362.940000] [<84063728>] out_of_memory+0x2e0/0x358 [ 2362.950000] vlc invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0 [ 2362.950000] Call Trace: [ 2362.960000] vlc invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0 [ 2362.960000] Call Trace: [ 2362.970000] 41984 pages of RAM [ 2362.970000] 0 pages of HIGHMEM [ 2362.970000] 17715 reserved pages [ 2362.980000] [<84065cd4>] __alloc_pages+0x3c8/0x3dc [ 2362.980000] [<840888b4>] cache_alloc_refill+0x37c/0x7d4 [ 2362.990000] [<8400fd9c>] dump_stack+0x8/0x34 [ 2362.990000] [<84063728>] out_of_memory+0x2e0/0x358 [ 2363.000000] [<8400fd9c>] dump_stack+0x8/0x34 [ 2363.000000] [<84063728>] out_of_memory+0x2e0/0x358 [ 2363.000000] [<84065cd4>]40 pages shared [ 2363.010000] 0 pages swap cached [ 2363.010000] [<8408850c>] kmem_cache_alloc+0x74/0xa0 [ 2363.020000] [<84065cd4>] __alloc_pages+0x3c8/0x3dc [ 2363.020000] [<840681cc>] __do_page_cache_readahead+0x15c/0x3a0 [ 2363.030000] __alloc_pages+0x3c8/0x3dc [ 2363.030000] [<840681cc>] __do_page_cache_readahead+0x15c/0x3a0 [ 2363.040000] [<84096c40>] getname+0x24/0xf4 [ 2363.040000] [<8408a830>] do_sys_open+0x30/0xe8 [ 2363.050000] klogd invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0 [ 2363.050000] Call Trace: [ 2363.060000] [<8405fa44>] filemap_nopage+0x2a4/0x4d4 [ 2363.060000] [<84071eac>] __handle_mm_fault+0x178/0xe24 [ 2363.070000] [<8405fa44>] filemap_nopage+0x2a4/0x4d4 [ 2363.070000] [<84071eac>] __handle_mm_fault+0x178/0xe24 [ 2363.080000] [<84012984>] stack_done+0x20/0x3c [ 2363.080000] [ 2363.080000] Mem-info: [ 2363.080000] DMA per-cpu: [ 2363.090000] [<8400fd9c>] dump_stack+0x8/0x34 [ 2363.090000] [<84063728>] out_of_memory+0x2e0/0x358 [ 2363.100000] [<84014154>] do_page_fault+0x144/0x3c0 [ 2363.100000] [<840097a4>] ret_from_exception+0x0/0x10 [ 2363.110000] [<84014154>] do_page_fault+0x144/0x3c0 [ 2363.110000] [<840097a4>] ret_from_exception+0x0/0x10 [ 2363.110000] [ 2363.120000] CPU 0: Hot: hi: 42, btch: 7 usd: 5 Cold: hi: 14, btch: 3 usd: 2 [ 2363.120000] Active:19570 inactive:2476 dirty:0 writeback:0 unstable:0 [ 2363.120000] free:407 slab:1311 mapped:41 pagetables:70 bounce:0 [ 2363.130000] [<84065cd4>] __alloc_pages+0x3c8/0x3dc [ 2363.130000] [<840888b4>] cache_alloc_refill+0x37c/0x7d4 [ 2363.140000] [ 2363.140000] Mem-info: [ 2363.140000] DMA per-cpu: [ 2363.140000] CPU 0: Hot: hi: 42, btch: 7 usd: 5 Cold: hi: 14, btch: 3 usd: 2 [ 2363.150000] Mem-info: [ 2363.150000] DMA per-cpu: [ 2363.150000] CPU 0: Hot: hi: 42, btch: 7 usd: 5 Cold: hi: 14, btch: 3 usd: 2 [ 2363.160000] DMA free:1628kB min:1632kB low:2040kB high:2448kB active:78280kB inactive:9904kB present:166624kB pages_scanned:145797 all_unreclaimable? yes [ 2363.170000] [<8408850c>] kmem_cache_alloc+0x74/0xa0 [ 2363.170000] [<84096c40>] getname+0x24/0xf4 [ 2363.170000] [<8408a830>]Active:19570 inactive:2476 dirty:0 writeback:0 unstable:0 [ 2363.180000] free:407 slab:1311 mapped:41 pagetables:70 bounce:0 [ 2363.190000] Active:19570 inactive:2476 dirty:0 writeback:0 unstable:0 [ 2363.190000] free:407 slab:1311 mapped:41 pagetables:70 bounce:0 [ 2363.200000] lowmem_reserve[]: 0 0 [ 2363.200000] DMA: do_sys_open+0x30/0xe8 [ 2363.210000] [<84012984>] stack_done+0x20/0x3c [ 2363.210000] [ 2363.210000] Mem-info: [ 2363.220000] DMA free:1628kB min:1632kB low:2040kB high:2448kB active:78280kB inactive:9904kB present:166624kB pages_scanned:145797 all_unreclaimable? yes [ 2363.230000] DMA free:1628kB min:1632kB low:2040kB high:2448kB active:78280kB inactive:9904kB present:166624kB pages_scanned:145797 all_unreclaimable? yes [ 2363.240000] 1*4kB DMA per-cpu: [ 2363.250000] CPU 0: Hot: hi: 42, btch: 7 usd: 5 Cold: hi: 14, btch: 3 usd: 2 [ 2363.250000] Active:19570 inactive:2476 dirty:0 writeback:0 unstable:0 [ 2363.250000] free:407 slab:1311 mapped:41 pagetables:70 bounce:0 [ 2363.260000] lowmem_reserve[]: 0 0 [ 2363.260000] DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 1*512kB lowmem_reserve[]: 0 0 [ 2363.270000] DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1628kB [ 2363.280000] Swap cache: add 0, delete 0, find 0/0, race 0+0 [ 2363.290000] DMA free:1628kB min:1632kB low:2040kB high:2448kB active:78280kB inactive:9904kB present:166624kB pages_scanned:145797 all_unreclaimable? yes [ 2363.300000] 1*1024kB 0*2048kB 0*4096kB = 1628kB [ 2363.310000] Swap cache: add 0, delete 0, find 0/0, race 0+0 [ 2363.310000] Free swap = 0kB [ 2363.320000] Free swap = 0kB [ 2363.320000] Total swap = 0kB [ 2363.320000] Free swap: 0kB [ 2363.330000] lowmem_reserve[]: 0 0 [ 2363.330000] DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 1*512kB 0*4096kB = 1628kB [ 2363.340000] Swap cache: add 0, delete 0, find 0/0, race 0+0 [ 2363.340000] Free swap = 0kB [ 2363.350000] Total swap = 0kB [ 2363.350000] Free swap: 0kB [ 2363.360000] 41984 pages of RAM [ 2363.360000] 0 pages of HIGHMEM [ 2363.370000] 1*1024kB 0*2048kB 0*4096kB = 1628kB [ 2363.370000] Swap cache: add 0, delete 0, find 0/0, race 0+0 [ 2363.380000] Total swap = 0kB [ 2363.380000] Free swap: 0kB [ 2363.390000] 41984 pages of RAM [ 2363.390000] 0 pages of HIGHMEM [ 2363.400000] 17715 reserved pages [ 2363.400000] 40 pages shared [ 2363.400000] 0 pages swap cached [ 2363.400000] Free swap = 0kB [ 2363.410000] 41984 pages of RAM [ 2363.420000] 17715 reserved pages [ 2363.420000] 40 pages shared [ 2363.420000] 0 pages swap cached [ 2363.430000] Total swap = 0kB [ 2363.430000] Free swap: 0kB [ 2363.440000] top invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0 [ 2363.440000] Call Trace: [ 2363.440000] [<8400fd9c>]0 pages of HIGHMEM [ 2363.450000] 17715 reserved pages [ 2363.450000] 40 pages shared [ 2363.450000] 0 pages swap cached [ 2363.460000] 41984 pages of RAM [ 2363.460000] 0 pages of HIGHMEM [ 2363.470000] dump_stack+0x8/0x34 [ 2363.470000] [<84063728>] out_of_memory+0x2e0/0x358 [ 2363.480000] 17715 reserved pages [ 2363.480000] 40 pages shared [ 2363.480000] 0 pages swap cached [ 2363.490000] [<84065cd4>] __alloc_pages+0x3c8/0x3dc [ 2363.490000] [<840888b4>] cache_alloc_refill+0x37c/0x7d4 [ 2363.500000] [<8408850c>] kmem_cache_alloc+0x74/0xa0 [ 2363.500000] [<84096c40>] getname+0x24/0xf4 [ 2363.500000] [<8408a830>] do_sys_open+0x30/0xe8 [ 2363.510000] [<84012984>] stack_done+0x20/0x3c [ 2363.510000] [ 2363.520000] Mem-info: [ 2363.520000] DMA per-cpu: [ 2363.520000] CPU 0: Hot: hi: 42, btch: 7 usd: 5 Cold: hi: 14, btch: 3 usd: 2 [ 2363.530000] Active:19534 inactive:2512 dirty:0 writeback:0 unstable:0 [ 2363.530000] free:407 slab:1311 mapped:41 pagetables:70 bounce:0 [ 2363.540000] DMA free:1628kB min:1632kB low:2040kB high:2448kB active:78024kB inactive:10160kB present:166624kB pages_scanned:145902 all_unreclaimable? yes [ 2363.550000] lowmem_reserve[]: 0 0 [ 2363.550000] DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1628kB [ 2363.560000] Swap cache: add 0, delete 0, find 0/0, race 0+0 [ 2363.560000] Free swap = 0kB [ 2363.570000] Total swap = 0kB [ 2363.570000] Free swap: 0kB [ 2363.580000] 41984 pages of RAM [ 2363.580000] 0 pages of HIGHMEM [ 2363.590000] 17715 reserved pages [ 2363.590000] 40 pages shared [ 2363.590000] 0 pages swap cached [ 2363.610000] Out of memory: kill process 216 (sh) score 1784 or a child [ 2363.610000] Killed process 293 (vlc) [ 2363.650000] Out of memory: kill process 294 (vlc) score 1729 or a child [ 2363.650000] Killed process 294 (vlc) Killed
when i input top command in another console, i found the cpu's io load is very heavy.
vlc 0.8.6i does not show this error, the upper version show it,
does vlc upper 0.8.6i on mips has memery leak problem?
anyone know how to solve it?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc 1.1.3 on mips platform got oom-killer

Postby Rémi Denis-Courmont » 14 Dec 2010 01:48

Kernel debug is totally useless to investigate memory leaks in VLC. The recommended method consists of running the 'massif' tool from valgrind.

That said, it seems your device has quite little memory (128 Mb?). This might simply not be enough.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

zhangtower
Blank Cone
Blank Cone
Posts: 34
Joined: 04 Feb 2008 04:28

Re: vlc 1.1.3 on mips platform got oom-killer

Postby zhangtower » 14 Dec 2010 02:23

i will try the 'massif' tool.
but i don't know why the io load is so heavy and vlc-0.8.6i is not? has the ts mux Algorithm changed?
BYT, the memory of my device is 256M, is it enough?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests