[uClinux-dev] memory allocation / task space....

David McCullough davidm at snapgear.com
Mon Mar 3 18:43:08 EST 2003


Jivin thomas chen lays it down ...
> 
> in my application, i spawn (vfork) a child process to do some work
> (over and over again).... and after a while... i got an message
> from kernel
> 
> "Unable to allocate RAM for process data"
> 
> and the memory map seems to be a bit fragmented...
> 
> 51 * 4kb
> 19* 8kb
> 12 * 16kb
> 1 * 32kb
> 1 * 64kb
> 1 * 128kb
> = 772kb
> 
> is there anyway to have some kind of "de-fragmentation" for 
> space????  is there anyway to keep the process in ram instead
> of being loaded/reallocated from romfs???

Yes,  it's called XIP,  if you platform supports it you can dramatically
reduce your RAM requirements (arm and m68k both do it),

Cheers,
Davidm

-- 
David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm at snapgear.com  Fx: +61 7 3891 3630  Custom Embedded Solutions + Security



More information about the uClinux-dev mailing list