Re: FreeBSD/alpha kern.flp flood

From: Ruslan Ermilov <ru_at_freebsd.org>
Date: Mon, 31 Mar 2003 18:03:48 +0300
On Sat, Mar 29, 2003 at 10:30:05PM +0200, Ruslan Ermilov wrote:
> On Sat, Mar 29, 2003 at 03:08:12AM -0800, Terry Lambert wrote:
> > Makoto Matsushita wrote:
> > > It seems that kern.flp for FreeBSD/alpha is flooded (tested on FreeBSD/i386).
> > > Maybe several kbytes should be removed from the kernel:
> > [ ... ]
> > > -r-xr-xr-x  1 root  wheel  1223388 Mar 28 00:57 kernel.gz
> > > -r-xr-xr-x  1 root  wheel  200864 Mar 28 00:57 loader
> > [ ... ]
> > > Anybody have an idea to reduce the size?
> > 
> > In theory, you could boot the kernel directly, without the
> > loader.  For that to work, though, you would need to do some
> > extra work, but that would get you 200K back.
> > 
> bde_at_ had patches for i386 that obviate the need of loader(8).
> 
> > You might also consider stripping the kernel, if it's not
> > stripped already; that will break some things, but probably
> > not things you care about when booting from a floppy.
> > 
> It's already stripped.  Stripping the .comment section
> saves me 400K for my i386 kernel.
> 
I was lying, only 12K or so.  I didn't know that "strip -R"
also does the usual stripping.

Anyway, I've committed the fix to release/Makefile that strips
the .comment section out from the BOOTMFS kernel.  If you have
time, you can exploit the effect of this by changing sweaping
over src/sys/ and changing rcsid = "$FreeBSD$" lines to be
__FBSDID() -- that would put these IDs in the .comment section,
thus reducing the size of the stripped kernel by a few more
kilobytes.


Cheers,
-- 
Ruslan Ermilov		Sysadmin and DBA,
ru_at_sunbay.com		Sunbay Software AG,
ru_at_FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

Received on Mon Mar 31 2003 - 05:04:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:02 UTC