From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,70b177c8d641d622 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,70b177c8d641d622 X-Google-Attributes: gidfee84,public From: Joerg.Lehners@arbi.informatik.uni-oldenburg.de (Joerg Lehners) Subject: Re: Kernel stripping question Date: 1995/05/03 Message-ID: <1995May3.201127.4969@arbi.Informatik.Uni-Oldenburg.DE>#1/1 X-Deja-AN: 101996789 sender: news@arbi.Informatik.Uni-Oldenburg.DE references: <3o6b5t$bmg@agate.berkeley.edu> organization: University of Oldenburg, Germany cc: peterm@langmuir.eecs.berkeley.edu newsgroups: comp.sys.dec,comp.unix.osf.osf1 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