From owner-freebsd-current Mon Feb 9 03:09:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA10122 for current-outgoing; Mon, 9 Feb 1998 03:09:20 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from korin.warman.org.pl (korin.nask.waw.pl [148.81.160.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA10115; Mon, 9 Feb 1998 03:09:10 -0800 (PST) (envelope-from abial@korin.warman.org.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.8.8/8.8.5) with SMTP id MAA19291; Mon, 9 Feb 1998 12:09:53 +0100 (CET) Date: Mon, 9 Feb 1998 12:09:52 +0100 (CET) From: Andrzej Bialecki To: Mike Smith cc: Andrzej Bialecki , Terry Lambert , freebsd-current@FreeBSD.ORG, jkh@FreeBSD.ORG Subject: Re: Custom init(8) (and some ideas) In-Reply-To: <199802070332.TAA03469@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 6 Feb 1998, Mike Smith wrote: > > A bit of background, if you're interested: I'm working on the next version > > of PicoBSD, and after some shuffling with the layout and adding new > > features I found that I can no longer fit into 8MB RAM... I.e. it fits, > > but I can't start enough processes to make a dialup connection. > > What does the process listing look like? (use ddb and the 'ps' command > rather than try to squeeze 'ps' into the crunch image). I didn't have ddb in kernel - I thought it would take more space than mount_procfs and ls-like proggy (which I include anyway). But I'll try this. I have also sysctl(8) on the floppy, but I noticed that the most interesting thing for me (i.e. vmmeter) is unimplemented (I already sent PR on this, because this is actually vmtotal, not vmmeter). > Have you shrunk the kernel as much as possible? Yes. :-)) I even fiddled with NBUF and NMBCLUSTERS to save on buffer space. maxusers is 1, so that the various system tables become minimal. > For non-gzip binaries, execution starts by mmapping the entire text > section, and jumping to it. Nothing is "loaded" in any case. > > What you're suggesting really is "execute-in-place", which is quite a > tough thing to implement. I suppose that's what I was thinking about :-). The whole issue is a bit beyond my knowledge, but I'm learning... Andrzej Bialecki ---------------------+--------------------------------------------------------- abial@warman.org.pl | if(halt_per_mth > 0) { fetch("http://www.freebsd.org") } Research & Academic | "Be open-minded, but don't let your brains to fall out." Network in Poland | All of the above (and more) is just my personal opinion. ---------------------+--------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe current" in the body of the message