[uClinux-dev] running out of memory OR NOT???

Thomas Chen tchen at on-go.com
Mon Mar 3 20:55:07 EST 2003


Hmmm... the program does not allocate any memory?

this is happening when process A is vforking process B
(process B is the program task)....

i thought the kernel is trying to allocate space for the task?



on 3/3/03 2:13 PM, Bernhard Kuhn at bkuhn at metrowerks.com wrote:

> thomas chen wrote:
> 
>> Allocation of length 160522 from process 33 failed
> [...]
>> 43*4kB 11*8kB 1*16kB 1*32kB 0*64kB 1*128kB 0*256kB 0*512kB 0*1024kB
>> 0*2048kB = 436kB)
> 
> You application tries to allocate 160 KiB of memory, but the biggest
> contiguous junk of memory left at that moment is only 128 KiB.
> 
>> but then program task continues to run????
> 
> malloc() returns with an error value - you need to decide in
> your application what needs to be done, then.
> 
>> after the message and seems to work  just fine
> 
> Maybe your application doesn't use the newly allocated memory? :-)
> 
> Bernhard
> 
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> 




More information about the uClinux-dev mailing list