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

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



Hi,

After I increase the program size to 700KB, I get a different error, which says BINFMT_FLAT: reloc outside program.

I have compressed the program, and use "permit large allocations" setting in the kernel. I searched the mailing list, but I could not get an answer.

Thanks,
Victor
--------------------------------------------------------------------
# ./microblaze-target &
BINFMT_FLAT: reloc outside program 0xfe05290c (0 - 0x2ddd64/0x1772a0), killing !
BINFMT_FLAT: reloc outside program 0xfe05290c (0 - 0x2ddd64/0x1772a0), killing !
45

# ls -l
45: SIGSEGV
-rwxr--r--    1 root     0          737657 Jan  1 00:01 microblaze-target

[root@patricios nodefw]# mb-flthdr microblaze-target
microblaze-target
    Magic:        bFLT
    Rev:          4
    Build Date:   Mon Jun 18 11:16:04 2007
    Entry:        0x44
    Data Start:   0x1772e0
    Data End:     0x218130
    BSS End:      0x2ddda0
    Stack Size:   0x1000
    Reloc Start:  0x218130
    Reloc Count:  0x536a
    Flags:        0x5 ( Load-to-Ram Gzip-Compressed )
You have new mail in /var/spool/mail/root
                               

-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of John Williams
Sent: Thursday, June 14, 2007 12:56 PM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: Re: [microblaze-uclinux] uclinux memory exhausted, unable to allocate RAM

Hi Victor,

victor-sv_yeo@xxxxxxxxxxx wrote:

> 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?

In menuconfig -> kernel settings -> general settings, try enabling 
either the "Permit large allocations" setting, or the "non-power-of-2" 
allocator.

Regards,

John

> 
> 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/
> 
> 

___________________________
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/


___________________________
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/