Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mcgrant@wheezer.Stanford.EDU (Michael C. Grant)
Subject: A Kinder, Gentler Kernel
Date: 1995/05/03	[thread overview]
Message-ID: <MCGRANT.95May2190733@wheezer.Stanford.EDU> (raw)
In-Reply-To: 3o6b5t$bmg@agate.berkeley.edu

In article <3o6b5t$bmg@agate.berkeley.edu> 
peterm@tonks.EECS.Berkeley.EDU (Peter Mardahl) writes:
   I noticed that the Makefile for the kernel has the
   flags -g3 and some defines having to do with profiling,
   can I obtain a kernel which doesn't have this stuff in it,
   but which is fully functional?

If you look in the config file for your kernel, you'll see a
couple of 'makeoptions' lines. One of them adds debugging info
to the kernel, the other adds profiling info (methinks). 

Anyway, I commented them both out and added

makeoptions	LDOPTS="-x"

and it seems to work just fine. My kernel's about 4MB.

For grins, I'll post my config file. Your mileage may
vary---DON'T USE IT unless you understand it REALLY well.
If anyone else out there has suggestions for trimming it
down in any significant fashion, I'd love to hear it.

Mike

P.S. This is for an AlphaStation 200.

ident		"WHEEZER"

options		GENERIC
options		UERF
options		OSF
options		_LMF_
options		ULT_BIN_COMPAT
options		BIN_COMPAT
options		COMPAT_43
options		MACH
options		MACH_IPC_TCACHE
options		MACH_IPC_WWA
options		MACH_IPC_XXXHACK 
options		STREAMS
options		BUFCACHE_STATS
options		INOCACHE_STATS
options		STAT_TIME
options		VAGUE_STATS
options		UFS
options		NFS
options		LDTTY
options		STRKINFO
options		INET
options		UIPC
options		SYSV_COFF
options		SYSV_ELF
options		QUOTA
options		LABELS
options		DLI
options		BSD_TTY
options		DLB
options		MSFS
options		PACKETFILTER
options		CDFS
#
# 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	LDOPTS="-x"
# makeoptions	CDEBUGOPTS="-g3"
# 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)
#
timezone	0 dst 0
dfldsiz		134217728
maxdsiz		1073741824
dflssiz		2097152
maxssiz		33554432
cpu		"DEC2100_A50"
maxusers	8
# maxusers	32
machine		alpha

config		vmunix	swap generic

bus             pci0       at nexus?    
callout after_c "../bin/mkdata pci"
bus             psiop0     at pci0      slot  6 vector    psiopintr 
controller      scsi0      at psiop0    slot  0 
device disk     rz0        at scsi0     drive     0 
device disk     rz4        at scsi0     drive     32 
bus             isa0       at pci0      slot  7 
callout after_c "../bin/mkdata isa"
controller      gpc0       at isa0      slot  0 vector    gpcintr 
controller      ace0       at isa0      slot  2 vector    aceintr 
controller      ace1       at isa0      slot  3 vector    aceintr 
controller      lp0        at isa0      slot  4 vector    lpintr 
controller      fdi0       at isa0      slot  5 vector    fdintr 
device disk     fd0        at fdi0      drive     0 
controller      msb0       at isa0      slot  6 vector    msbintr 
controller      tu0        at pci0      slot  11 vector    tuintr 
controller      tga0       at pci0      slot  13 vector    tgaintr 


scs_sysid	1
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	rpty	255
pseudo-device	ether
pseudo-device	sl	2
pseudo-device	loop
pseudo-device	strpush	16
#
# Max number of processors in the system (DO NOT CHANGE)
#
pseudo-device	cpus	16
pseudo-device	ws
--
Michael C. Grant           Information Systems Laboratory, Stanford University
mcgrant@isl.stanford.edu       <A HREF="http://www-isl.stanford.edu/~mcgrant">
------------------------------------------------------------------------------
"When you get right down to it, your           "Long hair, short hair---what's
average pervert is really quite                 the difference once the head's
thoughtful." (David Letterman)                    blowed off?" (Nat'l Lampoon)



  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 ` Daniel S. Riley
1995-05-03  4:00 ` Michael C. Grant [this message]
1995-05-03  4:00 ` Joerg Lehners
1995-05-03  4:00   ` Peter Mardahl
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