From owner-freebsd-stable@FreeBSD.ORG Mon Feb 14 12:25:09 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BF4C16A4CE for ; Mon, 14 Feb 2005 12:25:09 +0000 (GMT) Received: from ux11.ltcm.net (ux11.ltcm.net [64.215.98.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C66443D31 for ; Mon, 14 Feb 2005 12:25:08 +0000 (GMT) (envelope-from mipam@ibb.net) Received: from ux11.ltcm.net (mipam@localhost.ltcm.net [IPv6:::1]) by ux11.ltcm.net (8.12.9/8.12.9/UX11TT) with ESMTP id j1ECOr95011120; Mon, 14 Feb 2005 13:24:53 +0100 (MET) Received: from localhost (mipam@localhost) by ux11.ltcm.net (8.12.9/8.12.9/Submit) with ESMTP id j1ECOpaa017571; Mon, 14 Feb 2005 13:24:52 +0100 (MET) X-Authentication-Warning: ux11.ltcm.net: mipam owned process doing -bs Date: Mon, 14 Feb 2005 13:24:51 +0100 (MET) From: Mipam X-X-Sender: mipam@ux11.ltcm.net To: freebsd-stable@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: mipam@ibb.net Subject: PREEMPTION problems with em driver on smp machine X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 12:25:09 -0000 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 real memory = 2147467264 (2047 MB) avail memory = 2095861760 (1998 MB) ACPI APIC Table: 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 irqs 16-31 on motherboard ioapic0 irqs 0-15 on motherboard npx0: on motherboard npx0: INT 16 interface acpi0: 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: on acpi0 cpu1: on acpi0 pcib0: on acpi0 pci0: on pcib0 ciss0: port 0x2000-0x20ff mem 0xf5ef0000-0xf5ef3fff,0xf7 dc0000-0xf7dfffff irq 16 at device 1.0 on pci0 fxp0: port 0x2400-0x243f mem 0xf7c00000-0xf7cffff f,0xf7db0000-0xf7db0fff irq 18 at device 2.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:02:a5:da:70:0d fxp1: port 0x2440-0x247f mem 0xf7a00000-0xf7affff f,0xf7bf0000-0xf7bf0fff irq 20 at device 4.0 on pci0 miibus1: on fxp1 inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: Ethernet address: 00:02:a5:da:70:0c pci0: at device 5.0 (no driver attached) pci0: at device 6.0 (no driver attached) isab0: at device 15.0 on pci0 atapci0: 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: 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: 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: on acpi0 pci1: on pcib1 pcib2: on acpi0 pci7: on pcib2 em0: 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: 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: at device 7.0 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 sio0: port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A fdc0: port 0x3f2-0x3f5 irq 6 drq 2 on acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 orm0: at iomem 0xee000-0xeffff,0xcc000-0xcd7ff,0xc8000-0xcbfff ,0xc0000-0xc7fff on isa0 pmtimer0 on isa0 ppc0: parallel port not found. sc0: 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: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec acd0: CDROM at ata0-master PIO4 SMP: AP CPU #1 Launched! da0 at ciss0 bus 0 target 0 lun 0 da0: 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