FreeBSD Crashes

Михалыч mikh at vlad.ru
Sun Mar 7 02:24:32 PST 2004


Hello dear Subscribers!

I have mail-server (~ 20000 users, exim/cyrrus imap/webmail/LDAP auth)
under FreeBSD 5.2 box with last patches.
After 3 weeks of normal fly it`s crash twice a day.

systat -vmstat at ssh-console before crash shows this:

    1 users    Load  0.25  0.14  0.12                  Mar  7 19:27

Mem:KB    REAL            VIRTUAL                     VN PAGER  SWAP PAGER
        Tot   Share      Tot    Share    Free         in  out     in  out
Act  383248    5716  1355036     8340  713528 count
All 1309940   26832  2358124    67152         pages  
                                                     2824 zfod   Interrupts
Proc:r  p  d  s  w    Csw  Trp  Sys  Int  Sof  Flt   2470 cow    2007 total
    14   470486605  36239 701122723 2785  651 7136 280936 wire        1: atkb
                                                   342280 act     180 8: rtc
50.2%Sys   3.6%Intr  7.5%User  0.0%Nice 38.6%Idl   685692 inact       9: acpi
|    |    |    |    |    |    |    |    |    |            cache       13: npx
=========================++>>>>                    746492 free        stray 1
                                                          daefr       15: ata
Namei         Name-cache    Dir-cache                 741 prcfr  1452 30: em0
    Calls     hits    %     hits    %                     react   235 49: ahd
   173348   162134   94                                   pdwak       50: ahd
                                                          pdpgs   140 0: clk
Disks   da0   da1   da2 pass0 pass1 pass2 pass3           intrn
KB/t  10.81 11.37  0.00  0.00  0.00  0.00  0.00    204096 buf
tps     164     5     0     0     0     0     0      1094 dirtybuf
MB/s   1.73  0.06  0.00  0.00  0.00  0.00  0.00    161230 desiredvnodes
% busy   13     1     0     0     0     0     0     47511 numvnodes
                                                       37 freevnodes


Can you tell me, why system used so much name-cache and network card
interrupts, I think it`s a cause of crash :-(
Any comments ?

My system configuration:
FreeBSD mail.domain.com 5.2-RELEASE FreeBSD 5.2-RELEASE #10: Sun Mar  7
09:47:36 VLAT 2004     and at domain.com :/usr/src/sys/i386/compile/MAIL  i386

CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2392.29-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf25  Stepping = 5
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs
real memory  = 2147418112 (2047 MB)
avail memory = 2078699520 (1982 MB)
ACPI APIC Table: <INTEL  SWV25   >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
acpi0: <INTEL  SWV25   > on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 19 entries at 0x800f3630
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_cpu1: <CPU> on acpi0
acpi_cpu2: <CPU> on acpi0
acpi_cpu3: <CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <unknown> at device 0.1 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 3.0 on pci0
pcib1: could not get PCI interrupt routing table for \\_SB_.PCI0.P0P5 - AE_NOT_FOUND
pci2: <ACPI PCI bus> on pcib1
pci2: <base peripheral, interrupt controller> at device 28.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 29.0 on pci2
pci4: <ACPI PCI bus> on pcib2
ahd0: <Adaptec AIC7902 Ultra320 SCSI adapter> port 0x4000-0x40ff,0x3800-0x38ff mem 0xfe9d0000-0xfe9d1fff irq 50 at device 7.0 on pci4
aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs
ahd1: <Adaptec AIC7902 Ultra320 SCSI adapter> port 0x3400-0x34ff,0x3000-0x30ff mem 0xfe9e0000-0xfe9e1fff irq 49 at device 7.1 on pci4
aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs
pci2: <base peripheral, interrupt controller> at device 30.0 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 31.0 on pci2
pci3: <ACPI PCI bus> on pcib3
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.19> port 0x2040-0x207f mem 0xfe6c0000-0xfe6dffff irq 30 at device 7.0 on pci3
em0:  Speed:N/A  Duplex:N/A
em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.19> port 0x2000-0x203f mem 0xfe6e0000-0xfe6fffff irq 31 at device 7.1 on pci3
em1:  Speed:N/A  Duplex:N/A
pci0: <unknown> at device 3.1 (no driver attached)
pci0: <serial bus, USB> at device 29.0 (no driver attached)
pci0: <serial bus, USB> at device 29.1 (no driver attached)
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib4
pci1: <display, VGA> at device 12.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 UDMA100 controller> port 0x3a0-0x3af,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
acpi_ec0: <Embedded Controller: GPE 0x8> port 0xca7,0xca6 on acpi0
pmtimer0 on isa0
orm0: <Option ROMs> at iomem 0xd3800-0xd4fff,0xd2000-0xd37ff,0xc0000-0xc7fff on isa0
fdc0: cannot reserve I/O port range (6 ports)
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to accept, logging limited to 20 packets/entry by default
acd0: CDROM <SAMSUNG CD-ROM SN-124> at ata1-master PIO4
Waiting 5 seconds for SCSI devices to settle
GEOM: create disk da0 dp=0x875b4050
GEOM: create disk da1 dp=0x875b3c50
GEOM: create disk da2 dp=0x875b3850
ses0 at ahd1 bus 0 target 6 lun 0
ses0: <ESG-SHV SCA HSBP M16 0.05> Fixed Processor SCSI-2 device 
ses0: 3.300MB/s transfers
ses0: SAF-TE Compliant Device
da0 at ahd1 bus 0 target 0 lun 0
da0: <FUJITSU MAP3735NC 0108> Fixed Direct Access SCSI-3 device 
da0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Tagged Queueing Enabled
da0: 70103MB (143571316 512 byte sectors: 255H 63S/T 8936C)
da1 at ahd1 bus 0 target 1 lun 0
da1: <FUJITSU MAP3735NC 0108> Fixed Direct Access SCSI-3 device 
da1: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Tagged Queueing Enabled
da1: 70103MB (143571316 512 byte sectors: 255H 63S/T 8936C)
da2 at ahd1 bus 0 target 2 lun 0
da2: <FUJITSU MAP3735NC 0108> Fixed Direct Access SCSI-3 device 
da2: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Tagged Queueing Enabled
da2: 70103MB (143571316 512 byte sectors: 255H 63S/T 8936C)
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!

Kernel:
#cat KERNEL | grep -v "#device"
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.394.2.2 2003/12/07 23:52:53 scottl Exp $
machine         i386
#cpu            I486_CPU
#cpu            I586_CPU
cpu             I686_CPU
ident           GENERIC

maxusers        0
options         MAXFILES="(16*1024)" 
options         KVA_PAGES=512
options         SYSVSHM
options         SHMMAXPGS=199608
options         SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)
options         NMBCLUSTERS=16384
options         VM_KMEM_SIZE="(1024*1024*1024)"
options         VM_KMEM_SIZE_MAX="(1024*1024*1024)"


options         SC_DISABLE_REBOOT
options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_VERBOSE_LIMIT=20
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         TCP_DROP_SYNFIN
#options         DUMMYNET

#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

options         SCHED_4BSD              #4BSD scheduler
options         INET                    #InterNETworking
#options        INET6                   #IPv6 communications protocols
options         FFS                     #Berkeley Fast Filesystem
options         SOFTUPDATES             #Enable FFS soft updates support
options         UFS_ACL                 #Support for access control lists
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         NFS_ROOT                #NFS usable as /, requires NFSCLIENT
options         MSDOSFS                 #MSDOS Filesystem
options         CD9660                  #ISO 9660 Filesystem
options         PROCFS                  #Process filesystem (requires PSEUDOFS)
options         PSEUDOFS                #Pseudo-filesystem framework
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
options         COMPAT_FREEBSD4         #Compatible with FreeBSD4
options         SCSI_DELAY=5000        #Delay (in ms) before probing SCSI
options         KTRACE                  #ktrace(1) support
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~128k to driver.
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~215k to driver.

# To make an SMP kernel, the next two are needed
options         SMP                     # Symmetric MultiProcessor Kernel
device          apic                    # I/O APIC

device          isa
device          eisa
device          pci

# Floppy drives
device          fdc

# ATA and ATAPI devices
device          ata
device          atadisk                 # ATA disk drives
device          ataraid                 # ATA RAID 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          ahd             # AHA39320/29320 and onboard AIC79xx devices
device          sym             # NCR/Symbios Logic (newer chipsets + those of `ncr')

device          adv             # Advansys SCSI adapters
device          adw             # Advansys wide SCSI adapters
device          aha             # Adaptec 154x SCSI adapters
device          aic             # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
device          bt              # Buslogic/Mylex MultiMaster SCSI adapters

device          ncv             # NCR 53C500
device          nsp             # Workbit Ninja SCSI-3
device          stg             # TMC 18C30/18C50

# SCSI peripherals
device          scbus           # SCSI bus (required for SCSI)
device          ch              # SCSI media changers
device          da              # Direct Access (disks)
device          sa              # Sequential Access (tape etc)
device          cd              # CD
device          pass            # Passthrough device (direct SCSI access)
device          ses             # SCSI Environmental Services (and SAF-TE)

# RAID controllers interfaced to the SCSI subsystem
device          iir             # Intel Integrated RAID

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

device          vga             # VGA video card driver

device          splash          # Splash screen and screen saver support

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

# Enable this for the pcvt (VT220 compatible) console driver
#options        XSERVER                 # support for X server on a vt console
#options        FAT_CURSOR              # start with block cursor

device          agp             # support several AGP chipsets

# Floating point support - do not disable.
device          npx

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

# PCI Ethernet NICs.
device          em              # Intel PRO/1000 adapter Gigabit Ethernet Card

# 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

# Pseudo devices - the number indicates how many units to allocate.
device          random          # Entropy device
device          loop            # Network loopback
device          ether           # Ethernet support
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"

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

PS.Sorry, it`s my 1st post.

-- 
Best regards,
mailto:mikh at vlad.ru




More information about the freebsd-questions mailing list