AnsweredAssumed Answered

memory alloc failed

Question asked by kenny on Aug 29, 2012
Latest reply on Sep 18, 2012 by lliubbo

hello,

     我们从blackfin.uclinux.org上下载的最新源码包进行项目开发,web server使用的是lighttpd,有专门的cgi部分。项目基本完成时发现在使用时经常会出现内存分配失败问题,只要是有分配内存时就有可能出现,下面是在页面刷新时,出现的错误信息,好像内存也是足够的,但就是分配不到,请帮忙分析一下,谢谢!

 

 

apbxgui.cgi: page allocation failure. order:5, mode:0xd0

Stack info:

SP: [0x011dfc60] ?

Memory from 0x011dfc60 to 011e0000

011dfc60:[00000000] 00035a82  022bdc60  00000000  000000d0  022bde40  00000005  000000d0

011dfc80: 00000001  00000040  001da378  00000000  011de008  00000010  00000050  00000040

011dfca0: 011de000  011de000  011bec98  000200d0  001dada8  00000020  0000002b  022bdc60

011dfcc0: 0000002b  00000040  00000010  00000000  001da378  00000000  00000000  00000000

011dfce0: 001da378  022ed63c  0003d9d4  00020000  022ecb8c  022ecb8c  00000005  00000173

011dfd00: 00000000  00020000  0006b326  0000005c  02acdd18  00000000  00ce6da0  04000122

011dfd20: 022ed63c  0003dd3a  01223380  022ecb8c  00000000  00000003  00000173  00000000

011dfd40: 00020000  011dfdb0  00ce6da0  00020000  00000004  04000122  00000000  011dfd64

011dfd60: 00ce6da0  00000004  011de000  0006bef6  01223380  00000000  002b1e00  00000000

011dfd80: 00000000  00020000  016bc960  ffa00c24  ffc00014  00000000  00000003  04000122

011dfda0: 00000000  011dfdb0  00020000  00000001  464c457f  00010101  00000000  00000000

011dfdc0: 006a0003  00000001  00000c60  00000034  00004d7c  00000002  00200034  00280004

011dfde0: 000d000e  02032740  016bcb20  002c0000  002c0034  00000000  002c0c60  00020000

011dfe00: 02acdb14  00000000  80000010  464c457f  00010101  00000000  00000000  006a0002

011dfe20: 00000001  00002d04  00000034  0002431c  00000002  00200034  00280006  00210024

011dfe40: 013303a0  016bca00  02680000  02680034  00000000  02682d04  00020000  0290864c

011dfe60: 00000000  80000060  011dff24  000459d4  001d27d0  002b1e00  001d2418  fffffff8

011dfe80: fffffffe  00000000  00000000  0297e604  011dff24  01fdc000  002b1e02  005df458

011dfea0: 00046696  0297e604  0297e8e8  019a1628  00000000  002b1e00  011de000  00000001

011dfec0: 00001000  02141000  00332be0  00000000  000018ae  00001878  0000000b  02141000

011dfee0: 0297e8e8  0297e604  00000003  00332be0  ffffe000  011dfef8  011dff24  ffa008ce

011dff00: 00000000  ffffe000  005dff50  024b70a0  022bdc60  00000001  0000002f  00000003

011dff20: 005dff50  010cd3d2  00008000  00060000  00000000  011e0000  010cd3d2  010cd3d2

011dff40: 01b5bc16  ffa00e74  02001004  0191a331  010e04a1  0191a330  010e049e  00000000

011dff60: 00000000  00000089  00000000  00000089  00000000  00000000  7ffff000  000000c0

011dff80: 00000137  00000000  00000000  00000000  00000000  0000005b  00001802  00000001

011dffa0: 000000b4  00000004  00000002  019a1628  025141e4  005df44c  005df458  019a1628

011dffc0: 0193e790  019a1628  0297e8e8  010cd3c8  0000000b  01bfc87c  005dff30  005dff50

011dffe0: 00000003  0000002f  0297e604  0297e8e8  024b70a0  024b70a0  0000000b  00000006

Return addresses in stack:

Mem-Info:

DMA per-cpu:

CPU    0: hi:    0, btch:   1 usd:   0

active_anon:0 inactive_anon:0 isolated_anon:0

active_file:13 inactive_file:6 isolated_file:0

unevictable:1 dirty:8 writeback:0 unstable:0

free:4585 slab_reclaimable:129 slab_unreclaimable:622

mapped:0 shmem:0 pagetables:0 bounce:0

DMA free:18340kB min:836kB low:1044kB high:1252kB active_anon:0kB inactive_anon:0kB active_file:52kB inactive_file:24kB

unevictable:4kB

isolated(anon):0kB isolated(file):0kB present:43688kB mlocked:0kB dirty:32kB writeback:0kB mapped:0kB shmem:0kB

slab_reclaimable:516kB s

lab_unreclaimable:2488kB kernel_stack:392kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0

all_unreclaimable?

no

lowmem_reserve[]: 0 0 0

DMA: 237*4kB 228*8kB 243*16kB 171*32kB 43*64kB 19*128kB 4*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB

= 18340k

B

20 total pagecache pages

11008 pages RAM

620 pages reserved

8 pages shared

5746 pages non-shared

Allocation of length 131072 from process 1035 (apbxgui.cgi) failed

DMA per-cpu:

CPU    0: hi:    0, btch:   1 usd:   0

active_anon:0 inactive_anon:0 isolated_anon:0

active_file:13 inactive_file:6 isolated_file:0

unevictable:1 dirty:8 writeback:0 unstable:0

free:4585 slab_reclaimable:129 slab_unreclaimable:622

mapped:0 shmem:0 pagetables:0 bounce:0

DMA free:18340kB min:836kB low:1044kB high:1252kB active_anon:0kB inactive_anon:0kB active_file:52kB inactive_file:24kB

unevictable:4kB

isolated(anon):0kB isolated(file):0kB present:43688kB mlocked:0kB dirty:32kB writeback:0kB mapped:0kB shmem:0kB

slab_reclaimable:516kB s

lab_unreclaimable:2488kB kernel_stack:392kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0

all_unreclaimable?

no

lowmem_reserve[]: 0 0 0

DMA: 237*4kB 228*8kB 243*16kB 171*32kB 43*64kB 19*128kB 4*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB

= 18340k

B

20 total pagecache pages

Outcomes