BusyBox dynamic linked on uClibc for init? [resources usage] (fwd)

Denys Vlasenko vda.linux at googlemail.com
Fri May 13 09:48:40 UTC 2011


On Friday 13 May 2011 06:00, Rich Felker wrote:
> On Fri, May 13, 2011 at 03:45:06AM +0200, Denys Vlasenko wrote:
> > IOW: static i686 build, running on 64-bit kernel, consumes 46 mb of RAM
> > per 1000 busybox sleep processes, or 46 kbytes per process.
> 
> This is pretty good, but in theory it could be as low as 8k per
> process (1 page data and 1 page stack). I wonder if there's a good way
> to get the number of dirty pages in BB down closer to 2, at least when
> trivial apps are run...

It is already down to 3 pages in userspace. (You need to build uclibc
carefully - with right options - to reach that, though...)

You forgot that kernel needs 2 pages for task_struct+stack,
and 2 pages minimum for page tables, per each task.

-- 
vda


More information about the busybox mailing list