PREEMPTION problems with em driver on smp machine

Mipam mipam at ibb.net
Mon Feb 14 04:25:09 PST 2005


Hi,

I've noticed problems with PREEMPTION enabled in the kernel with the em 
driver on a smp machine. With preemption disabled, the problems don't 
arise.
I didn't notice problems with preemption with the bge driver.
The messages i get with preemption with the em driver active are these:

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 occur and /var/log/messages is full 
of it. This does not occur when i disable preemption.
Oh yes, the release is 5-stable (RELENG_5 source from feb 8.)
Btw, i use the 4bsd scheduler on this machine, not ule (yet).
dmesg output from the machine: (i only use the em card, the fxp cards are 
not used). Bye, Mipam.

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 mymachine.domain.com:/usr/obj/usr/src/sys/Mipam
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
  
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
OV,PAT,PSE36,MMX,FXSR,SSE>
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 
0xf5ef0000-0xf5ef3fff,0xf7
dc0000-0xf7dfffff irq 16 at device 1.0 on pci0
fxp0: <Intel 82559 Pro/100 Ethernet> port 0x2400-0x243f mem 
0xf7c00000-0xf7cffff
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 
0xf7a00000-0xf7affff
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 
0x2c00-0x2c0f,0x376,0x170-0x
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 
devic
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 
0x3000-0x303f
 mem 0xf7f80000-0xf7fbffff,0xf7fe0000-0xf7ffffff irq 28 at device 3.0 on 
pci7
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 
0x3040-0x307f
 mem 0xf7f00000-0xf7f3ffff,0xf7f60000-0xf7f7ffff irq 28 at device 3.1 on 
pci7
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 
0xee000-0xeffff,0xcc000-0xcd7ff,0xc8000-0xcbfff
,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




More information about the freebsd-stable mailing list