From: dsr@mail.lns.cornell.edu (Daniel S. Riley)
Subject: Re: vmunix size on DU 4.0x
Date: 1997/10/31 [thread overview]
Message-ID: <shaffq6kxf.fsf@lns100.lns.cornell.edu> (raw)
In-Reply-To: 3458EEB5.ABD@dik.tu-darmstadt.de
>> Then I tried to strip it and I got a new one of 3Mb!, It worked
>> fine but netstat didn't worked any more with a "No symbols found"
>> message or the like. But performances were higher, it was very
>> pleasant.
Have you got any measurements showing that performance was improved
by stripping the kernel?
> How safe is it to strip the kernel /vmunix ???
Anything that has to go grovelling through the kernel namelists (like
netstat, vmstat, ps, etc.) will stop working, since they rely on the
symbol table to find some of the things they look at.
> I would also like to have a smaller one than our 9 MB
> thing or even 15 MB thing with the DFS included...
All stripping should do is save some disk space--stripping any binary,
including the kernel, should have *no* impact on system performance,
because the symbol tables removed by strip do not get loaded into
memory. When some program (like netstat) wants to look at the symbol
table, it goes to the image on disk to find it (which is why replacing
/vmunix on a running system will break the same sorts of things that
stripping /vmunix will).
A corollary to this is that if you want to compare the sizes of
kernels (or any executables), use the size command--'ls -l' is not
a good measure of anything but bytes on disk occupied.
--
Dan Riley dsr@mail.lns.cornell.edu
Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr)
http://www.lns.cornell.edu/~dsr/ "Distance means nothing/To me" -Kate Bush
next prev parent reply other threads:[~1997-10-31 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-30 5:00 vmunix size on DU 4.0x Thierry Baillon
1997-10-30 5:00 ` Robert Graeb
1997-10-31 5:00 ` Andrew Duane USG/PE
1997-10-31 5:00 ` root
1997-10-31 5:00 ` Daniel S. Riley [this message]
1997-11-03 5:00 ` Thierry Baillon
1997-11-05 5:00 ` Andrew Duane USG/PE
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