Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Joerg.Lehners@arbi.informatik.uni-oldenburg.de (Joerg Lehners)
Cc: peterm@langmuir.eecs.berkeley.edu
Subject: Re: Kernel stripping question
Date: 1995/05/03	[thread overview]
Message-ID: <1995May3.201127.4969@arbi.Informatik.Uni-Oldenburg.DE> (raw)
In-Reply-To: 3o6b5t$bmg@agate.berkeley.edu

In <3o6b5t$bmg@agate.berkeley.edu> peterm@tonks.EECS.Berkeley.EDU (Peter Mardahl) writes:
>DEC UNIX's (aka osf1) kernel is very huge and consumes
>lots of precious RAM--8M if you use an out-of-the-box
>kernel and 5M as I've configured the kernel.
>I've considered stripping the /vmunix binary to reduce
>its usage of RAM.

You can't reduce RAM usage by stripping (in the sense of /usr/bin/strip)
the kernel. You could free some RAM by removing unneeded device drivers
and optional features, although the installations procedures should have
done it for you (doconfig and friends).

You can free some disk space by not including all non global
symbols into the /vmunix symbol table: I got the /vmunix down
to around 3 MB disk space by using
makeoptions     LDOPTS="-x"
in the kernel config file. (This is for a DEC 3000 Model 300)
But beware: this might be unsupported by Digital and it makes some
kernel debugging tools useless.

>Screwing up the kernel is a big nightmare so I'm not
>going to experiment without asking first:

Either have /genvmunix around on the root file system or a bootable
CD and a CD ROM player.

>so here goes:
>Will a stripped kernel work?
>What besides ps, uptime will break?

Stripping in the sense of /usr/bin/strip: no, it won't work,
too much of /sbin/init.d/* depends on 'ps' to work.

>Is my theory that a smaller /vmunix on disk will cause
>the RAM used to be smaller correct?

No, the symbol table will not be loaded into memory and will
not consume RAM.

>[...]

  Joerg Lehners
-- 
Mail: Joerg.Lehners@arbi.Informatik.Uni-Oldenburg.DE
Real: Joerg Lehners, FB 10 Informatik ARBI, Uni Oldenburg, D-26111 Oldenburg



  parent reply	other threads:[~1995-05-03  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-05-02  4:00 Kernel stripping question Peter Mardahl
1995-05-03  4:00 ` A Kinder, Gentler Kernel Michael C. Grant
1995-05-03  4:00 ` Joerg Lehners [this message]
1995-05-03  4:00   ` Kernel stripping question Peter Mardahl
1995-05-03  4:00 ` Daniel S. Riley
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox