Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* vmunix size on DU 4.0x
@ 1997-10-30  5:00 Thierry Baillon
  1997-10-30  5:00 ` Robert Graeb
  0 siblings, 1 reply; 7+ messages in thread
From: Thierry Baillon @ 1997-10-30  5:00 UTC (permalink / raw)



	Hi netters,

I run a DU 4.0b on a Dec Station 3300 with 64Mb.
I tried to recompile my kernel to have a smaller kernel. The generic one is
quite bigger than I want.

# ls -al /genvmunix 
-rwxr-xr-x   1 root     system   13737136 Jul  4 15:48 /genvmunix
# ls -la /vmunix
-rwxr-xr-x   1 root     system   13896784 Oct 28 09:36 /vmunix
#

So I used doconfig, and selected the only packages that seemed to be
needed. I got a kernel of 9Mb, it was better. 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.

I'd like to know if it is possible to normally have a light kernel because 3Mb
stripped and 9Mb not stripped, means there is 6Mb Debugging Symbols. Can you
turn of systematic debugging ( like a -g compiler option to remove ). Or does
the kernel debugging package generates 6Mb of debbugging information.

How may I have a 3/4/5 Mb kernel that just works fine?

-- 
Thierry Baillon (System Manager)|"Emacs makes your life easier"
E-mail: Thierry.Baillon@sncf.fr | -- Me



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vmunix size on DU 4.0x
  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   ` Daniel S. Riley
  1997-10-31  5:00   ` Andrew Duane USG/PE
  0 siblings, 2 replies; 7+ messages in thread
From: Robert Graeb @ 1997-10-30  5:00 UTC (permalink / raw)



> I run a DU 4.0b on a Dec Station 3300 with 64Mb.
> I tried to recompile my kernel to have a smaller kernel. The generic one is
> quite bigger than I want.
> 
> # ls -al /genvmunix
> -rwxr-xr-x   1 root     system   13737136 Jul  4 15:48 /genvmunix
> # ls -la /vmunix
> -rwxr-xr-x   1 root     system   13896784 Oct 28 09:36 /vmunix
> #
> 
> So I used doconfig, and selected the only packages that seemed to be
> needed. I got a kernel of 9Mb, it was better. 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.

The big question is: 

How safe is it to strip the kernel /vmunix ???

I would also like to have a smaller one than our 9 MB
thing or even 15 MB thing with the DFS included... 

Robert



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vmunix size on DU 4.0x
  1997-10-30  5:00 ` Robert Graeb
  1997-10-31  5:00   ` Daniel S. Riley
@ 1997-10-31  5:00   ` Andrew Duane USG/PE
  1997-10-31  5:00     ` root
  1 sibling, 1 reply; 7+ messages in thread
From: Andrew Duane USG/PE @ 1997-10-31  5:00 UTC (permalink / raw)



In article <3458EEB5.ABD@dik.tu-darmstadt.de> Robert Graeb <graeb@dik.tu-darmstadt.de> writes:
>> So I used doconfig, and selected the only packages that seemed to be
>> needed. I got a kernel of 9Mb, it was better. 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.
>
>The big question is: 
>
>How safe is it to strip the kernel /vmunix ???
>
>I would also like to have a smaller one than our 9 MB
>thing or even 15 MB thing with the DFS included... 

It is not safe at all to strip the kernel. The 6MB that disappeared
has no effect whatsoever on performance. Only the 3MB that is left over
gets loaded into memory when you boot.

Do *not* strip the kernel.

--

Andrew L. Duane (JOT-7)			duane@zk3.dec.com
Digital Equipment Corporation		(603)-884-1294
110 Spit Brook Road
M/S ZKO3-3/U14
Nashua, NH    03062-2698




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vmunix size on DU 4.0x
  1997-10-30  5:00 ` Robert Graeb
@ 1997-10-31  5:00   ` Daniel S. Riley
  1997-11-03  5:00     ` Thierry Baillon
  1997-10-31  5:00   ` Andrew Duane USG/PE
  1 sibling, 1 reply; 7+ messages in thread
From: Daniel S. Riley @ 1997-10-31  5:00 UTC (permalink / raw)



>> 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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vmunix size on DU 4.0x
  1997-10-31  5:00   ` Andrew Duane USG/PE
@ 1997-10-31  5:00     ` root
  0 siblings, 0 replies; 7+ messages in thread
From: root @ 1997-10-31  5:00 UTC (permalink / raw)



Andrew Duane USG/PE (duane@hunch.zk3.dec.com) wrote:
: In article <3458EEB5.ABD@dik.tu-darmstadt.de> Robert Graeb <graeb@dik.tu-darmstadt.de> writes:
: >> So I used doconfig, and selected the only packages that seemed to be
                                                             ^^^^^^
: >> needed. I got a kernel of 9Mb, it was better. 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.

I'd suggest You do remove LVM (support for an old product), LSM (I don't think
You use it) and ATM (I don't think You use it). The rest should not eat up too
much space.

Are You really sure that performance was higher?

You should purchase some more MBytes of RAM, 64 MB is a bit short. 

--
------------------------------------------------------------------------------
Ruediger Schuetz                                  Phone/Fax: 00 49-89-65 81 92
Edlinger Platz 4
81543 Muenchen                              Ruediger.Schuetz@Munich.Netsurf.DE
Germany
------------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vmunix size on DU 4.0x
  1997-10-31  5:00   ` Daniel S. Riley
@ 1997-11-03  5:00     ` Thierry Baillon
  1997-11-05  5:00       ` Andrew Duane USG/PE
  0 siblings, 1 reply; 7+ messages in thread
From: Thierry Baillon @ 1997-11-03  5:00 UTC (permalink / raw)



Daniel S. Riley writes:

> >> 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.

nop. ps & vmstat worked fine. :
(mimw31 ~) id
uid=0(root) gid=1(daemon) groups=0(system),3(kmem),7(terminal),9(opr),10(staff)
,12(lp),74(ingres)
(mimw31 ~) ls -al /vmunix.SMALL
-rwxr-xr-x   1 root     system   8847424 Nov  3 10:07 /vmunix.SMALL
(mimw31 ~) ls -al /vmunix
-rwxr-xr-x   1 root     system   3638304 Nov  3 10:09 /vmunix
(mimw31 ~) file  /vmunix
/vmunix:  COFF format alpha executable or object module stripped - version 
3.11-10 
(mimw31 ~) netstat -nr
 no namelist
(mimw31 ~) vmstat
Virtual Memory Statistics: (pagesize = 8192)
  procs    memory         pages                          intr        cpu      
  r  w  u  act  free wire fault cow zero react pin pout  in  sy  cs  us  sy  id
  2 65 18  5150  390 4892  32K 9447 7334  220 7036    0  84 204 141   4   5  92
(mimw31 ~) vmstat -D
vmstat: kmem_debug is not
(mimw31 ~) iostat
      tty     rz2      rz3      dk2      dk3     cpu
 tin tout bps tps  bps tps  bps tps  bps tps  us ni sy id
   0    6   8   1   44   4    0   0    0   0   4  0  5 92
(mimw31 ~) ps
  PID TTY      S           TIME CMD
  515 console  I  +     0:00.29 /usr/sbin/getty console console vt100
  617 ttyp4    S        0:00.51 -tcsh (tcsh)
  621 ttyp4    I        0:00.36 xterm
  622 ttyp4    I        0:00.36 xterm
  638 ttyp4    R  +     0:00.08 ps
  623 ttyp5    I  +     0:00.27 -csh (tcsh)
  626 ttyp6    I  +     0:00.24 -csh (tcsh)
(mimw31 ~) 

This is my config file:
-----------------------

# "SMALL" config file for doconfig

ident		"SMALL"

options		UERF
options		OSF
options		_LMF_
options		BIN_COMPAT
options		COMPAT_43
options		MACH
options		MACH_IPC_TCACHE
options		MACH_IPC_WWA
options		MACH_IPC_XXXHACK 
options		BUFCACHE_STATS
options		INOCACHE_STATS
options		STAT_TIME
options		VAGUE_STATS
options		UFS
options		NFS
options		NFS_SERVER
options		STRKINFO
options		STREAMS
options		LDTTY
options		RPTY
options		INET
options		UIPC
options		SYSV_COFF
options		QUOTA
options		LABELS
options	SL
options SNMPINFO
options		DLI
options		BSD_TTY
options	BPARM
options		DLB
options	PROCFS
options         FFM_FS
options	NTP_TIME
options   PPP
options   PCKT
options		CDFS
options		MSFS

#
# Standard options.
#
options		UNIX_LOCKS
options		SER_COMPAT
options		RT_PREEMPT
options		RT_SCHED
options		RT_SCHED_RQ
options		RT_PML
options		RT_TIMER
options		RT_SEM
options		RT_CSEM
options		RT_IPC
#
makeoptions	CDEBUGOPTS="-g3"
makeoptions	CCOMPRESS="-compress"
makeoptions	PROFOPTS="-DPROFILING -DPROFTYPE=4"

#
# Max number of processors in the system (DO NOT CHANGE)
#
processors	16

#
# Special options (see configuring the kernel chapter
# in the Guide to System Administration)
#
dfldsiz		134217728
maxdsiz		1073741824
dflssiz		2097152
maxssiz		33554432
cpu		"DEC3000_300"
maxusers	32
config		vmunix	swap generic

bus             tc0        at nexus?    
callout after_c "../bin/mkdata tc"
bus             tcds0      at tc0       slot  4 vector    tcdsintr 
controller      scsi0      at tcds0     slot  0 
controller      ln0        at tc0       slot  5 
controller      scc0       at tc0       slot  5 vector    sccintr 
controller      bba0       at tc0       slot  5 vector    bbaintr 
controller      fb0        at tc0       slot  6 vector    fbint 

pseudo-device	sysv_hab
pseudo-device	svid_three_hab
pseudo-device	svr_four_hab
pseudo-device	soe_two_hab
pseudo-device	rt_hab
pseudo-device	ether
pseudo-device	loop
pseudo-device   prf    6
pseudo-device	ws

# End of "SMALL"

A short glimpse of /var/adm/messages:

Nov  3 10:12:53 mimw31 vmunix: Alpha boot: available memory from
0x742000 to 0x4000000 
Nov  3 10:12:53 mimw31 vmunix: Digital UNIX V4.0B  (Rev. 564); Mon Nov
3 10:09:16 MET 1997  
Nov  3 10:12:53 mimw31 vmunix: physical memory = 64.00 megabytes.
Nov  3 10:12:53 mimw31 vmunix: available memory = 56.74 megabytes.
Nov  3 10:12:53 mimw31 vmunix: using 238 buffers containing 1.85
megabytes of memory 
Nov  3 10:12:53 mimw31 vmunix: tc0 at nexus
Nov  3 10:12:54 mimw31 vmunix: tcds0 at tc0 slot 4
Nov  3 10:12:54 mimw31 vmunix: scsi0 at tcds0 slot 0
Nov  3 10:12:54 mimw31 vmunix: rz0 at scsi0 target 0 lun 0 (LID=0)
(DEC     RRD40     TM DEC 280E)
Nov  3 10:12:54 mimw31 vmunix: rz2 at scsi0 target 2 lun 0 (LID=1)
(MICROP  1528-15MD1066702 DD24)
Nov  3 10:12:54 mimw31 vmunix: rz3 at scsi0 target 3 lun 0 (LID=2)
(DEC     RZ26L    (C) DEC 440C) 
Nov  3 10:12:54 mimw31 vmunix: ln0: DEC LANCE Module Name: PMAD-BA 
Nov  3 10:12:54 mimw31 vmunix: ln0 at tc0 slot 5
Nov  3 10:12:54 mimw31 vmunix: ln0: DEC LANCE Ethernet Interface,
hardware address: 08-00-2B-3F-BA-FE  
Nov  3 10:12:54 mimw31 vmunix: scc0 at tc0 slot 5
Nov  3 10:12:54 mimw31 vmunix: bba0 at tc0 slot 5
Nov  3 10:12:54 mimw31 vmunix: fb0 at tc0 slot 6
Nov  3 10:12:54 mimw31 vmunix:  1280X1024
Nov  3 10:12:54 mimw31 vmunix: DEC 3000 - M300LX system
Nov  3 10:12:54 mimw31 vmunix: Firmware revision: 6.9
Nov  3 10:12:54 mimw31 vmunix: PALcode: OSF version 1.45
Nov  3 10:12:54 mimw31 vmunix: dli: configured
Nov  3 10:12:54 mimw31 vmunix: vm_swap_init: warning /sbin/swapdefault
swap device not found 
Nov  3 10:12:54 mimw31 vmunix: vm_swap_init: swap is set to lazy (over
commitment) mode 
Nov  3 10:12:54 mimw31 vmunix: ADVFS: using 566 buffers containing
4.42 megabytes of memory 


It's great to see "available memory = 56.74 megabytes."

So there's only netstat in the list you gave me that doesn't work.
If you have any ideas for further tests, let me know.

Thierry Baillon
-- 
Thierry Baillon (System Manager)|"Emacs makes your life easier"
E-mail: Thierry.Baillon@sncf.fr | -- Me



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vmunix size on DU 4.0x
  1997-11-03  5:00     ` Thierry Baillon
@ 1997-11-05  5:00       ` Andrew Duane USG/PE
  0 siblings, 0 replies; 7+ messages in thread
From: Andrew Duane USG/PE @ 1997-11-05  5:00 UTC (permalink / raw)



In article <x7sotel2uk.fsf@sncf.fr> Thierry Baillon <Thierry.Baillon@sncf.fr> writes:
>Daniel S. Riley writes:
>
>> >> 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.
>
>nop. ps & vmstat worked fine. :
>
>It's great to see "available memory = 56.74 megabytes."
>
>So there's only netstat in the list you gave me that doesn't work.
>If you have any ideas for further tests, let me know.

PS and VMSTAT do not use the kernel name list.

Some things that likely won't work: crash dumps. dbx -k. kloadsrv
(loadable drivers). netstat. nfsstat. route. arp. rarpd. pfstat.
strsetup. trpt.


Let me repeat my original statement:

Stripping the kernel has absolutely no effect on available memory, or
system performance. The only thing it will do is stop some utilities
and daemons from running (which may help performance since they are
not there....)

--

Andrew L. Duane (JOT-7)			duane@zk3.dec.com
Digital Equipment Corporation		(603)-884-1294
110 Spit Brook Road
M/S ZKO3-3/U14
Nashua, NH    03062-2698




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1997-11-05  5:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` Daniel S. Riley
1997-11-03  5:00     ` Thierry Baillon
1997-11-05  5:00       ` Andrew Duane USG/PE
1997-10-31  5:00   ` Andrew Duane USG/PE
1997-10-31  5:00     ` root

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