Re: i4b on -current

[ Available lists | Index of freebsd-isdn | Month of May 2002 | Week of 19 May 2002 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Matthias Schuendehuette <msch@snafu.de>
Date
19 May 2002 14:05:00
Subject
Re: i4b on -current
Message-ID
E179Xqt-0002fX-00@smart.eusc.inter.net

In reply to
References to

[ Hide this part ]
Hi Gary,

Am Sonntag, 19. Mai 2002 21:51 schrieb Gary Jennejohn:
> Do you have any of the debugging options for -current turned on ?
> Things like INVARIANTS, INVARIANT_SUPPORT, WITNESS and
> WITNESS_SKIPSPIN ? This can kill performance.
>
> I remember seeing lousy performance under -current too, until I
> turned off _all_ the debugging stuff.
>
> In fact, unless you're doing development under -current, it's
> generally a good idea to just turn off all the debugging stuff.
> I do, even though I'm a committer and should have it enabled.

;-)

No, I haven't. (Secret Hacker Rule #11: Hackers read manuals. :-)
Really, I tried to do my best to find any mistake I made, especially
because I'm a new and unexperienced 'player' of -current, and so I read
the 'usual suspicious', where I found these hints to turn off debugging
code, compile with -DNO_WERROR and so on...

To be sure, I append my kernel config, but I would be surprised if
there's anything critical - maybe something unnecessary....

Anyway - thanks so far

Matthias

+++++++++++++++++++++++++ 8>< ++++++++++++++++++++
#
# CURRENT -- Specific kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
# http://www.FreeBSD.org/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the NOTES configuration file. If you
# are in doubt as to the purpose or necessity of a line, check first in
# NOTES.

machine i386
cpu I686_CPU
ident CURRENT
maxusers 0

#To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" #Default places to look for devices.

makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols

# Debugging for use in -current
#options DDB #Enable the kernel debugger
#options INVARIANTS #Enable calls of extra sanity checking
#options INVARIANT_SUPPORT #Extra sanity checks of internal
#structures, required by INVARIANTS
#options WITNESS #Enable mutex checks to detects deadlocks and cycles
#options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed

options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options UFS_DIRHASH #Improve performance on big directories
options MD_ROOT #MD is a potential root device
options NFSCLIENT #Network Filesystem Client
options NFSSERVER #Network Filesystem Server
options MSDOSFS #MSDOS Filesystem
options CD9660 #ISO 9660 Filesystem
options PROCFS #Process filesystem (requires PSEUDOFS)
options PSEUDOFS #Pseudo-filesystem framework

# Add support for the EXT2FS filesystem of Linux fame. Be a bit
# careful with this - the ext2fs code has a tendency to lag behind
# changes and not be exercised very much, so mounting read/write could
# be dangerous (and even mounting read only could result in panics.)
#
options EXT2FS

options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI
#
#options USERCONFIG #boot -c editor
#options VISUAL_USERCONFIG #visual boot -c editor
#
options KTRACE #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B #Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options KBD_INSTALL_CDEV # install a CDEV entry in /dev

options IPFIREWALL #firewall
options IPFIREWALL_VERBOSE #enable logging to syslogd(8)
options IPFIREWALL_FORWARD #enable transparent proxy
#support
options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity
options IPDIVERT #divert sockets

options INET #InterNETworking

# RANDOM_IP_ID causes the ID field in IP packets to be randomized
# instead of incremented by 1 with each packet generated. This
# option closes a minor information leak which allows remote
# observers to determine the rate of packet generation on the
# machine by watching the counter.
options RANDOM_IP_ID

options PCI_ALLOW_UNSUPPORTED_IO_RANGE

device isa
device eisa
device pci

# Floppy drives
device fdc

# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
#
#device atapicd # ATAPI CDROM drives
#device atapifd # ATAPI floppy drives
#device atapist # ATAPI tape drives
#
options ATA_STATIC_ID # Static device numbering

# SCSI Controllers
#device ahc # AHA2940 and onboard AIC7xxx devices
device sym # NCR/Symbios Logic

# SCSI peripherals
device scbus # SCSI bus (required)
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc 1 # At keyboard controller
device atkbd # at keyboard
device psm # psm mouse

device vga # VGA screen

# splash screen/screen saver
device splash

# syscons is the default console driver, resembling an SCO console
device sc 1

# The following options will let you change the default colors of
# syscons.
options SC_NORM_ATTR="(FG_GREEN|BG_BLACK)"
options SC_NORM_REV_ATTR="(FG_YELLOW|BG_GREEN)"
options SC_KERNEL_CONS_ATTR="(FG_RED|BG_BLACK)"
options SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_RED)"

# Floating point support - do not disable.
device npx

# Power management support (see NOTES for more options)
#device apm
# Add suspend/resume support for the i8254.
device pmtimer

# Serial (COM) ports
device sio # 8250, 16[45]50 based serial ports

# Parallel port
device ppc
device ppbus # Parallel port bus (required)
device lpt # Printer

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these
# NICs!
device miibus # MII bus support
device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')

# Pseudo devices - the number indicates how many units to allocate.
device random # Entropy device
device loop # Network loopback
device ether # Ethernet support
device ppp 1 # Kernel PPP
device sppp 2 # Generic Synchronous PPP
device pty # Pseudo-ttys (telnet etc)
device md # Memory "disks"
device speaker #Play IBM BASIC-style noises out your
speaker

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device bpf # Berkeley packet filter

# USB support
device uhci # UHCI PCI->USB interface
device usb # USB Bus (required)
device ugen # Generic
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
device uscanner # Scanners

# The 'pcm' Sound-driver
device pcm
device pca

#---------------------------------------------------------------------------
# ISDN4BSD
#
# isic driver (Siemens/Infineon chipsets)
device isic

# Teles S0/16.3
options TEL_S0_16_3

# ISDN Protocol Stack - mandatory for all hardware drivers
#
# Q.921 / layer 2 - i4b passive cards D channel handling
device "i4bq921"
#
# Q.931 / layer 3 - i4b passive cards D channel handling
device "i4bq931"
#
# layer 4 - i4b common passive and active card handling
device "i4b"

# ISDN devices - mandatory for all hardware drivers
#
# userland driver to do ISDN tracing (for passive cards only)
device "i4btrc" 4
#
# userland driver to control the whole thing
device "i4bctl"

# ISDN devices - optional
#
# userland driver for access to raw B channel
device "i4brbch" 2
#
# userland driver for telephony
device "i4btel" 2
#
# network driver for IP over raw HDLC ISDN
device "i4bipr" 2
# enable VJ header compression detection for ipr i/f
options IPR_VJ
# enable logging of the first n IP packets to isdnd (n=32 here)
options IPR_LOG=32
#
# network driver for sync PPP over ISDN; requires an equivalent
# number of sppp device to be configured
device "i4bisppp" 2


--
Ciao/BSD - Matthias

Matthias Schuendehuette <msch@snafu.de>, Berlin (Germany)
Powered by FreeBSD 4.5-STABLE

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message



Elapsed time: 0.201 seconds