From nobody@FreeBSD.org  Wed Oct 13 12:49:35 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1549816A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Oct 2004 12:49:35 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E82B143D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Oct 2004 12:49:34 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9DCnW2w082378
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Oct 2004 12:49:32 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i9DCnWSn082377;
	Wed, 13 Oct 2004 12:49:32 GMT
	(envelope-from nobody)
Message-Id: <200410131249.i9DCnWSn082377@www.freebsd.org>
Date: Wed, 13 Oct 2004 12:49:32 GMT
From: John Engelhart <johne@zang.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 5.3-BETA7 ethernet freezes under load (SMP dual athlon, intel em)
X-Send-Pr-Version: www-2.3

>Number:         72638
>Category:       kern
>Synopsis:       5.3-BETA7 ethernet freezes under load (SMP dual athlon, intel em)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 13 12:50:26 GMT 2004
>Closed-Date:    Mon Dec 25 11:29:13 GMT 2006
>Last-Modified:  Mon Dec 25 11:29:13 GMT 2006
>Originator:     John Engelhart
>Release:        5.3-BETA7 on i386 (SMP, intel em)
>Organization:
>Environment:
FreeBSD new.zang.com 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Mon Oct 11 00:12:17 EDT 2004     johne@new.zang.com:/usr/src/sys/i386/compile/new  i386

File system is making use of snapshots.

Tunings of interest:

Scheduler = 4BSD

[kernel options that differ from 5.3-BETA7 GENERIC]

makeoptions     DEBUG=-g
options         MAXDSIZ=(2048UL*1024*1024)
options         MAXSSIZ=(256UL*1024*1024)
options         DFLDSIZ=(1024UL*1024*1024)
options         BLKDEV_IOSIZE=65536
options         PREEMPTION
maxusers        512
options         SHMMAXPGS=32768
options         SHMALL=32768
options         SHMSEG=1024
options         SHMMNI=512
options         SHMMIN=1
options         SEMMNI=256
options         SEMMNS=512
options         SEMMNU=256
options         SEMMAP=25
options         CPU_ATHLON_SSE_HACK
options         CPU_ENABLE_SSE
options         KDB, KDB_UNATTENDED, KDB_TRACE
options         ALT_BREAK_TO_DEBUGGER
options         PANIC_REBOOT_WAIT_TIME=300
options         IPFIREWALL
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         DUMMYNET
options         IPFILTER
options         IPFILTER_LOG

Kernel is built with -O and CPU is set to athlon-mp via make.conf.

Also, /etc/sysctl.conf has
kern.maxvnodes=262144
net.isr.enable=1

dmesg dump:

Copyright (c) 1992-2004 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 5.3-BETA7 #0: Mon Oct 11 00:12:17 EDT 2004
    johne@new.zang.com:/usr/src/sys/i386/compile/new
ACPI APIC Table: <PTLTD          APIC  >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) MP 2800+ (2133.42-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x6a0  Stepping = 0
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory  = 1073217536 (1023 MB)
avail memory = 1040560128 (992 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  1
 cpu1 (AP): APIC ID:  0
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD   RSDT> on motherboard
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x8080-0x80ff,0x8000-0x807f,0xcf8-0xcff iomem 0xd8000-0xdbfff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <AMD 762 host to AGP bridge> port 0x1050-0x1053 mem 0xd0400000-0xd0400fff,0xd4000000-0xd7ffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 768 UDMA100 controller> port 0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port 0x1000-0x103f mem 0xd0000000-0xd001ffff,0xd0020000-0xd003ffff irq 20 at device 8.0 on pci0
em0: Ethernet address: 00:07:e9:00:f3:c6
em0:  Speed:N/A  Duplex:N/A
pcib2: <ACPI PCI-PCI bridge> at device 16.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pci2: <display, VGA> at device 4.0 (no driver attached)
pcib3: <PCI-PCI bridge> at device 5.0 on pci2
pci3: <PCI bus> on pcib3
asr0: <Adaptec Caching SCSI RAID> mem 0xe0000000-0xefffffff irq 17 at device 5.1 on pci2
asr0: [GIANT-LOCKED]
asr0: ADAPTEC 3210S FW Rev. 370F, 2 channel, 256 CCBs, Protocol I2O
ahc0: <Adaptec 2930CU SCSI adapter> port 0x2400-0x24ff mem 0xd0105000-0xd0105fff irq 18 at device 6.0 on pci2
ahc0: [GIANT-LOCKED]
aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0x2800-0x287f mem 0xd0106000-0xd010607f irq 19 at device 8.0 on pci2
miibus0: <MII bus> on xl0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:e0:81:21:d9:63
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A, console
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
orm0: <ISA Option ROMs> at iomem 0xe0000-0xe3fff,0xcf800-0xcffff,0xc9800-0xcf7ff,0xc8800-0xc97ff,0xc8000-0xc87ff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
IP Filter: v3.4.35 initialized.  Default = pass all, Logging = enabled
ipfw2 initialized, divert disabled, rule-based forwarding disabled, default to accept, logging disabled
acd0: CDROM <ATAPI CD-ROM MAX 52X/Ver1.13D> at ata0-master UDMA33
Waiting 15 seconds for SCSI devices to settle
da0 at asr0 bus 0 target 0 lun 0
da0: <ADAPTEC RAID-5 370F> Fixed Direct Access SCSI-2 device 
da0: Tagged Queueing Enabled
da0: 87505MB (179210240 512 byte sectors: 255H 63S/T 11155C)
SMP: AP CPU #1 Launched!
Mounting root from ufs:/dev/da0s1a
Pre-seeding PRNG:
 kickstart
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: John Engelhart <johne@zang.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/72638: 5.3-BETA7 ethernet freezes under load (SMP dual athlon, intel em)
Date: Wed, 13 Oct 2004 16:37:15 -0700

 --4ZLFUWh1odzi/v6L
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, Oct 13, 2004 at 12:49:32PM +0000, John Engelhart wrote:
 
 > >Environment:
 > FreeBSD new.zang.com 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Mon Oct 11 00:12:17 =
 EDT 2004     johne@new.zang.com:/usr/src/sys/i386/compile/new  i386
 >=20
 
 > em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port 0x1000=
 -0x103f mem 0xd0000000-0xd001ffff,0xd0020000-0xd003ffff irq 20 at device 8.=
 0 on pci0
 > em0: Ethernet address: 00:07:e9:00:f3:c6
 > em0:  Speed:N/A  Duplex:N/A
 
 A bug in the em driver with these symptoms was fixed after 5.3-BETA7;
 please upgrade and try again.
 
 Kris
 
 --4ZLFUWh1odzi/v6L
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (FreeBSD)
 
 iD8DBQFBbbwqWry0BWjoQKURAuB6AJwOQffEnm0TbI3Dha65MbQtlFbQ7QCfXPss
 Yva+dCPAoG6r7+D4y6xMY9M=
 =DPd6
 -----END PGP SIGNATURE-----
 
 --4ZLFUWh1odzi/v6L--

From: Kris Kennaway <kris@obsecurity.org>
To: Kris Kennaway <kris@obsecurity.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/72638: 5.3-BETA7 ethernet freezes under load (SMP dual athlon, intel em)
Date: Wed, 13 Oct 2004 18:18:05 -0700

 On Wed, Oct 13, 2004 at 11:40:43PM +0000, Kris Kennaway wrote:
 
 >  > >Environment:
 >  > FreeBSD new.zang.com 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Mon Oct 11 00:12:17 =
 >  EDT 2004     johne@new.zang.com:/usr/src/sys/i386/compile/new  i386
 >  >=20
 >  
 >  > em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port 0x1000=
 >  -0x103f mem 0xd0000000-0xd001ffff,0xd0020000-0xd003ffff irq 20 at device 8.=
 >  0 on pci0
 >  > em0: Ethernet address: 00:07:e9:00:f3:c6
 >  > em0:  Speed:N/A  Duplex:N/A
 >  
 >  A bug in the em driver with these symptoms was fixed after 5.3-BETA7;
 >  please upgrade and try again.
 
 Actually, perhaps not - looks like the commit I was thinking of was
 contained in -BETA7.
 
 Kris
State-Changed-From-To: open->feedback 
State-Changed-By: bms 
State-Changed-When: Mon Sep 25 08:58:59 UTC 2006 
State-Changed-Why:  
Sounds like this got fixed, did it? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72638 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Mon Dec 25 11:29:11 UTC 2006 
State-Changed-Why:  
feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72638 
>Unformatted:
