Skip site navigation (1)Skip section navigation (2)
Date:      30 Oct 2002 08:59:34 -0000
From:      Przemyslaw Frasunek <venglin@freebsd.lublin.pl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/44741: Repetable mbufs related crash
Message-ID:  <20021030085934.12108.qmail@lagoon.freebsd.lublin.pl>

next in thread | raw e-mail | index | archive | help

>Number:         44741
>Category:       kern
>Synopsis:       Repetable mbufs related crash
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 30 01:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Przemyslaw Frasunek
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
czuby.net
>Environment:
FreeBSD riot.atman.pl 4.7-RELEASE FreeBSD 4.7-RELEASE #2: Tue Oct 29 21:38:09 CET 2002     root@riot.atman.pl:/usr/src/sys/compile/RIOT  i386

Hardware:

Compaq Proliant DL380
128 or 640 MB RAM (see problem description)
3x 36 GB, 18 GB SCSI HDD (SmartArray)
fxp NIC

dmesg:

Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 4.7-RELEASE #2: Tue Oct 29 21:38:09 CET 2002
    root@riot.atman.pl:/usr/src/sys/compile/RIOT
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 797477169 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (797.48-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 134201344 (131056K bytes)
avail memory = 126763008 (123792K bytes)
Preloaded elf kernel "kernel" at 0xc02b5000.
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <ServerWorks NB6635 3.0LE host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
ida0: <Compaq Integrated Array controller> port 0x2000-0x20ff mem 0xc5000000-0xc5ffffff,0xc6000000-0xc6ffffff irq 5 at device 1.0 on pci0
ida0: drives=4 firm_rev=1.42
idad0: <Compaq Logical Drive> on ida0
idad0: 17359MB (35553120 sectors), blocksize=512
idad1: <Compaq Logical Drive> on ida0
idad1: 34727MB (71122560 sectors), blocksize=512
idad2: <Compaq Logical Drive> on ida0
idad2: 34731MB (71130720 sectors), blocksize=512
idad3: <Compaq Logical Drive> on ida0
idad3: 34731MB (71130720 sectors), blocksize=512
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0x2400-0x243f mem 0xc4e00000-0xc4efffff,0xc4fff000-0xc4ffffff irq 10 at device 2.0 on pci0
fxp0: Ethernet address 00:50:8b:dd:00:d6
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <ATI Mach64-GV graphics accelerator> at 3.0
pci0: <unknown card> (vendor=0x0e11, dev=0xa0f0) at 4.0
isab0: <ServerWorks IB6566 PCI to ISA bridge> at device 15.0 on pci0
isa0: <ISA bus> on isab0
pci0: <Unknown PCI ATA controller> at 15.1
pcib3: <ServerWorks NB6635 3.0LE host to PCI bridge> on motherboard
pci3: <PCI bus> on pcib3
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcbfff,0xe8000-0xedfff,0xee000-0xeffff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
IP Filter: v3.4.29 initialized.  Default = pass all, Logging = enabled
Mounting root from ufs:/dev/idad0s1a

kernel config:

machine         i386
cpu             I686_CPU
ident           PRETTY
maxusers        256

options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         FFS                     #Berkeley Fast Filesystem
options         FFS_ROOT                #FFS usable as root device [keep this!]
options         SOFTUPDATES             #Enable FFS soft updates support
options         UFS_DIRHASH             #Improve performance on big directories
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
options         SCSI_DELAY=15000        #Delay (in ms) before probing SCSI
options         USERCONFIG              #boot -c editor
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         SHMMAXPGS=65536
options         SEMMNI=40
options         SEMMNS=240
options         SEMUME=40
options         SEMMNU=120
options         MAXDSIZ="(512*1024*1024)"
options         MAXSSIZ="(512*1024*1024)"
options         DFLDSIZ="(512*1024*1024)"
options         NMBCLUSTERS=131070

options         P1003_1B                #Posix P1003_1B real-time extensions
options         _KPOSIX_PRIORITY_SCHEDULING
options         ICMP_BANDLIM            #Rate limit bad replies
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev

options         IPFILTER
options         IPFILTER_LOG

device          isa
device          pci

device          fdc0    at isa? port IO_FD1 irq 6 drq 2
device          fd0     at fdc0 drive 0
device          fd1     at fdc0 drive 1

device          ida             # Compaq Smart RAID

device          atkbdc0 at isa? port IO_KBD
device          atkbd0  at atkbdc? irq 1 flags 0x1
device          psm0    at atkbdc? irq 12

device          vga0    at isa?

device          sc0     at isa? flags 0x100

device          npx0    at nexus? port IO_NPX irq 13

device          miibus          # MII bus support
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)

pseudo-device   loop            # Network loopback
pseudo-device   ether           # Ethernet support
pseudo-device   pty             # Pseudo-ttys (telnet etc)
pseudo-device   bpf             #Berkeley packet filter

>Description:
	After about half an hour of uptime, all network activity ends with
	ENOBUFS. It even stops responding to ICMP ECHO, but output from
	netstat -m is perfectly normal:

87/592/524280 mbufs in use (current/peak/max):
        87 mbufs allocated to data
83/350/131070 mbuf clusters in use (current/peak/max)
848 Kbytes allocated to network (0% of mb_map in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

	This problem is repetable, it occurs *every time* after about
	30 minutes of uptime, unless I decrease amount of RAM from 640 MB
	to 128 MB.

	NMBCLUSTERS and/or maxusers tuning doesn't help either. On GENERIC
	kernel, first ENOBUFS error occurs after 10 minutes of uptime.

>How-To-Repeat:
	Perfectly repetable on my hardware, occurs every time with 640 MB,
	doesn't occur on 128 MB RAM. 
>Fix:
	N/A



>Release-Note:
>Audit-Trail:
>Unformatted:

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021030085934.12108.qmail>