kern/77588: PREEMPTION problems in combination with em driver on 5-stable

Mipam root at
Tue Feb 15 23:30:16 PST 2005

>Number:         77588
>Category:       kern
>Synopsis:       PREEMPTION problems in combination with em driver on 5-stable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 16 07:30:15 GMT 2005
>Originator:     Mipam
>Release:        FreeBSD 5.3-STABLE i386
System: FreeBSD relay3.ordina.local 5.3-STABLE FreeBSD 5.3-STABLE #5: Fri Feb 11 12:33:26 CET 2005 root at relay3.ordina.local:/usr/obj/usr/src/sys/Mipam i386

On a SMP machine with a kernel compiled with options PREEMPTION and a network
card that is supported by the em driver I am noticing problems.
When the bge driver is used for other cards, the problem does not occur.
I also noticed that when disabling PREEMPTION the problem also doesn't occur
when using the em driver.
The messages i receive are:

calcru: negative runtime of -891485461 usec for pid 45 (swi5: clock sio)

Output of ps waux:
root        45  0.0  0.0     0    8  ??  WL   Tue03PM -2341058:-22.07 
[swi5: clock sio]

Lots and lots of messages like these are being generated.
/var/log/messages is full of it.
The scheduler im using is 4bsd.
dmesg output:

Copyright (c) 1992-2005 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-STABLE #4: Tue Feb  8 14:41:10 CET 2005
    root at
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) III CPU family      1133MHz (1125.78-MHz 
686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6b1  Stepping = 1
real memory  = 2147467264 (2047 MB)
avail memory = 2095861760 (1998 MB)
ACPI APIC Table: <COMPAQ 00000083>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  3
 cpu1 (AP): APIC ID:  0
MADT: Forcing active-low polarity and level trigger for SCI
ioapic1 <Version 1.1> irqs 16-31 on motherboard
ioapic0 <Version 1.1> irqs 0-15 on motherboard
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <COMPAQ P24> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x240-0x243 on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> on acpi0
pci0: <ACPI PCI bus> on pcib0
ciss0: <Compaq Smart Array 5i> port 0x2000-0x20ff mem 
dc0000-0xf7dfffff irq 16 at device 1.0 on pci0
fxp0: <Intel 82559 Pro/100 Ethernet> port 0x2400-0x243f mem 
f,0xf7db0000-0xf7db0fff irq 18 at device 2.0 on pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:02:a5:da:70:0d
fxp1: <Intel 82559 Pro/100 Ethernet> port 0x2440-0x247f mem 
f,0xf7bf0000-0xf7bf0fff irq 20 at device 4.0 on pci0
miibus1: <MII bus> on fxp1
inphy1: <i82555 10/100 media interface> on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:02:a5:da:70:0c
pci0: <display, VGA> at device 5.0 (no driver attached)
pci0: <base peripheral> at device 6.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 15.0 on pci0
atapci0: <ServerWorks ROSB4 UDMA33 controller> port 
177,0x3f6,0x1f0-0x1f7 at device 15.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
ohci0: <OHCI (generic) USB controller> mem 0xf5fd0000-0xf5fd0fff irq 22 at 
e 15.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
pcib1: <ACPI Host-PCI bridge> on acpi0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI Host-PCI bridge> on acpi0
pci7: <ACPI PCI bus> on pcib2
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> port 
 mem 0xf7f80000-0xf7fbffff,0xf7fe0000-0xf7ffffff irq 28 at device 3.0 on 
em0: Ethernet address: 00:04:23:ab:a1:3c
em0:  Speed:N/A  Duplex:N/A
em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> port 
 mem 0xf7f00000-0xf7f3ffff,0xf7f60000-0xf7f7ffff irq 28 at device 3.1 on 
em1: Ethernet address: 00:04:23:ab:a1:3d
em1:  Speed:N/A  Duplex:N/A
pci7: <base peripheral> at device 7.0 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
sio0: <Standard PC COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
fdc0: <floppy drive controller> port 0x3f2-0x3f5 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
orm0: <ISA Option ROMs> at iomem 
,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
acd0: CDROM <Compaq CRN-8241B/2.23> at ata0-master PIO4
SMP: AP CPU #1 Launched!
da0 at ciss0 bus 0 target 0 lun 0
da0: <COMPAQ RAID 5  VOLUME OK> Fixed Direct Access SCSI-0 device
da0: 135.168MB/s transfers
da0: 104183MB (213367680 512 byte sectors: 255H 32S/T 26148C)
Mounting root from ufs:/dev/da0s1a

Use an gig intel card that is supported by the em driver.
Compile a kernel with options PREEMPTION and run.
I am not sure whether this problems only occurs on smp machines or also
on single cpu machines, i think it'll appear on both.	
Don't know, is it something in the em driver or with PREEMPTION?

More information about the freebsd-bugs mailing list