[BusyBox] choice for reserving buffers

Tomi Ollila Tomi.Ollila at sonera.com
Sat Jan 27 04:25:46 UTC 2001


Friday Jan 26 14:01:16 -0600 2001 Manuel Novoa III <mnovoa3 at bellsouth.net> wrote:
> 
> Also, as mentioned in a follow-up post, if you're on a system with no MMU, you
> are already "paying" for the stack... it is allocated.  Why throw something in
> BSS or malloc it and require the system to allocate more memory to your app?
> 

I´d rather go with "pre-paid" small stack than a larger one and then
allocate from heap when necessary to get more. This way the applets that
doesn´t require so much memory doesn´t need to "pay" for the stack they
doesn´t need. If there are many concurrent processes all having big stacks
the memory may be eaten out pretty quick... I remember Amiga OS used to
have default stack size per process something like 4K in the early times
and that machine sure could run dozens of processes concurrently if needed...

> 
> Manuel
> 

Tomi





More information about the busybox mailing list