From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6ab64e3bca2c8d21 X-Google-Attributes: gidfee84,public From: Thierry Baillon Subject: Re: vmunix size on DU 4.0x Date: 1997/11/03 Message-ID: X-Deja-AN: 286727042 Sender: thierry@mimw31 References: <3458EEB5.ABD@dik.tu-darmstadt.de> Organization: S.N.C.F. (French Railways) Newsgroups: comp.unix.osf.osf1 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