Date: Tue, 07 Jul 1998 09:54:34 -0700 From: Mike Smith <mike@smith.net.au> To: Andrzej Bialecki <abial@nask.pl> Cc: Mike Smith <mike@smith.net.au>, freebsd-current@FreeBSD.ORG Subject: Re: FreeBSD in less than 4MB RAM Message-ID: <199807071654.JAA00592@dingo.cdrom.com> In-Reply-To: Your message of "Tue, 07 Jul 1998 10:01:45 %2B0200." <Pine.NEB.3.95.980707095930.20507A-100000@korin.warman.org.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Mon, 6 Jul 1998, Mike Smith wrote: > > > > Hi, > > > > > > This is slightly more general question than in the Subject. > > > > > > First issue is: what would it take to squeeze any useful combination of > > > kernel, init plus two-three (small) user programs in 4MB? Which > > > (dispensable) parts of the kernel require so much space? After removing > > > all I could think of (leaving FFS, fd0, and ed0, though) the kernel size > > > is still about 700kB big, and quite another question is how this > > > translates into running size... > > > > try "du *.o | sort -n" in your compile directory. > > I did (Soren can be proud - he wins with syscons.o :-), but this really > doesn't tell anything about _running_ sizes of various data structures... vmstat -m gives you allocation statistics while the kernel is running, and 'size' will tell you how big the bss is in total. If you want to work out how big the various symbols in the bss are, use something like # nm -t kernel | sort | <bss-symbol-sizer-script> where <bss-symbol-sizer-script> looks for lines with a type field of 'b' or 'B', and calculates the distance between the current symbol and the next one. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807071654.JAA00592>
