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

[microblaze-uclinux] uclinux memory exhausted, unable to allocate RAM



Hi,

I build an application, where is run on microblaze linux, the application complaint of unable to allocate RAM and memory exhausted. My device has 64M RAM and the application is only 580K, I have also done mb-flthdr on the application. How does this not enough memory thing happen?

I have referred to this mailing list at: http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2004/03/msg00019.html

Thanks,
Victor

-------------------------------------------------------------------------
uclinux login: root
Password:
# cd home/
# ls -l
-rwxr--r--    1 root     0          580800 Jan  1 00:00 microblaze-target
# ./microblaze-target
Allocation of length 2534944 from process 33 failed
Free pages:       59064kB (     0kB HighMem)
Zone:DMA freepages: 59064kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 102, inactive: 80, free: 14766 )
0*4kB 1*8kB 1*16kB 1*32kB 0*64kB 1*128kB 0*256kB 1*512kB 1*1024kB 28*2048kB = 5)
= 0kB)
= 0kB)
Unable to allocate RAM for process text/data, errno 12
./microblaze-target: memory exhausted
# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  64331776  3858432 60473344        0        0   749568
Swap:        0        0        0
MemTotal:        62824 kB
MemFree:         59056 kB
MemShared:           0 kB
Buffers:             0 kB
Active:            420 kB
Inactive:          312 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        62824 kB
LowFree:         59056 kB
SwapTotal:           0 kB
SwapFree:            0 kB



[root@patricios home]# mb-flthdr microblaze-target
microblaze-target
    Magic:        bFLT
    Rev:          4
    Build Date:   Tue Jun 12 14:58:34 2007
    Entry:        0x44
    Data Start:   0x143240
    Data End:     0x1a45e0
    BSS End:      0x269d90
    Stack Size:   0x1000
    Reloc Start:  0x1a45e0
    Reloc Count:  0x477c
    Flags:        0x5 ( Load-to-Ram Gzip-Compressed )
                                   

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/