[uClibc]Uses a bigger busybox more mem for (f.i.) ash?

Stefan Soucek ssoucek at coactive.com
Mon Dec 3 18:58:22 UTC 2001


(snipp)
> Linux performs demand paging.  That means when an application is
> loaded, only the 4k-sized pages of the application that are being
> used will be loaded into memory.  All of the pages of memory for
> the .text segment of busybox (i.e. almost all of it) will be
> shared between successive invocations of busybox.

I don't think this statement is true for non-MMU systems. The current uClinux
kernel (for ARM) loads the complete .text segment into memory. A subsequent call
to busybox loads the .text segement again. To my understanding there is
no sharing of code pages possible on non-MMU systems, since the code is relocated each time. In this case the actual size of the busybox .text segment (and .data, .bss as well) does
matter.

-Stefan

--
Stefan Soucek, ssoucek at coactive.com
Coactive Networks, 28 Liberty Ship Way, Sausalito, CA 94965
Ph: (415) 289 7840, Fax: (415) 289 1320





More information about the uClibc mailing list