From owner-freebsd-current@FreeBSD.ORG Sat Nov 24 11:05:14 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD8D116A420 for ; Sat, 24 Nov 2007 11:05:14 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from mail.vx.sk (neo.vx.sk [213.239.219.9]) by mx1.freebsd.org (Postfix) with ESMTP id 481C013C43E for ; Sat, 24 Nov 2007 11:05:14 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by mail.vx.sk (Postfix) with ESMTP id 6CA4B398D0 for ; Sat, 24 Nov 2007 12:05:10 +0100 (CET) X-Virus-Scanned: amavisd-new at mail.vx.sk Received: from mail.vx.sk ([127.0.0.1]) by localhost (mail.vx.sk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id agZNosSrwJON for ; Sat, 24 Nov 2007 12:05:07 +0100 (CET) Received: from [10.2.0.1] (gw.radiolan.sk [193.93.72.6]) by mail.vx.sk (Postfix) with ESMTP id 508DC398CE for ; Sat, 24 Nov 2007 12:05:06 +0100 (CET) Message-ID: <47480574.5030106@FreeBSD.org> Date: Sat, 24 Nov 2007 12:05:24 +0100 From: Martin Matuska User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sk; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: freebsd-current@FreeBSD.org X-Enigmail-Version: 0.95.3 Content-Type: multipart/mixed; boundary="------------070605020107010606030204" Cc: Subject: 7.0-BETA3 (amd64): interrupt storm on atapci0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2007 11:05:14 -0000 This is a multi-part message in MIME format. --------------070605020107010606030204 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Hi, after ca. one day of operation I start experiencing an interrupt storm on my SB600 SATA controller. "systat -v" reports around 470k interrupts on atapci0 (irq22). Error messaage: interrupt storm detected on "irq22:"; throttling interrupt source. The interrupt rate shown in "vmstat -i" keeps increasing steadily at about 5 per second. I have already tried the following without positive results: 1. tried both of the two available timers, ACPI-Safe and HPET. 2. tried the latest ACPICA patch (acpica-import-20071114.diff) 3. I use the patch from kern/118193 ( http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/118193 ). Without that patch, the controller runs in UDMA33 mode, but this has no effect on the interrupt storm that occurs after ca. one day of operation. In the dmesg output there are unattached devices, if I attach USB, the problem is not solved. OS: FreeBSD 7.0-BETA3 amd64 as of today CPU: AMD Athlon X2 5600+ in SMP mode Mainboard: MSI MS-7368 (K9AG Neo2-Digital) with the AMD 690G chipset. "dmesg", "vmstat -i" and "systat -v" outputs are attached. What might be the cause? What should I do to debug this problem? --------------070605020107010606030204 Content-Type: text/plain; name="systat.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="systat.txt" 1 users Load 0.05 0.09 0.12 Nov 24 11:44 Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER Tot Share Tot Share Free in out in out Act 472716 36772 1107084 53808 1005348 count All 601696 113500 5910668 234920 pages Proc: Interrupts r p d s w Csw Trp Sys Int Sof Flt 159 cow 474k total 4 103 4243 393 471 470k 1012 375 156 zfod atkbd0 1 ozfod acpi0 irq9 2.9%Sys 0.4%Intr 0.2%User 0.0%Nice 96.5%Idle %ozfod 470k atapci0 22 | | | | | | | | | | | daefr 2001 cpu0: time =+ 134 prcfr 7 re0 irq256 31 dtbuf 389 totfr 2001 cpu1: time Namei Name-cache Dir-cache 200000 desvn react Calls hits % hits % 134476 numvn pdwak 937 937 100 24982 frevn pdpgs intrn Disks ad4 ad6 436196 wire KB/t 0.50 0.50 470504 act tps 0 0 2091520 inact MB/s 0.00 0.00 13484 cache %busy 0 0 991864 free 219632 buf --------------070605020107010606030204 Content-Type: text/plain; name="vmstat.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vmstat.txt" interrupt total rate irq1: atkbd0 11 0 irq9: acpi0 1 0 irq22: atapci0 2345651167 23043 cpu0: timer 199854076 1999 irq256: re0 459211 4 cpu1: timer 199853873 1999 Total 1871024631 18719 --------------070605020107010606030204 Content-Type: text/plain; name="dmesg.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dmesg.txt" Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-BETA3 #25: Thu Nov 22 19:32:43 CET 2007 root@somewhere:/usr/obj/usr/src/sys/KERNEL Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ (2800.68-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x40f33 Stepping = 3 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f Cores per package: 2 usable memory = 4252438528 (4055 MB) avail memory = 4097650688 (3907 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, ddf00000 (3) failed ACPI HPET table warning: Sequence is non-zero (2) Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_throttle0: CLK_VAL field overlaps THT_EN bit device_attach: acpi_throttle0 attach returned 6 powernow0: on cpu0 cpu1: on acpi0 powernow1: on cpu1 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xc000-0xc0ff mem 0xfc000000-0xfdffffff,0xfe9f0000-0xfe9fffff,0xfe800000-0xfe8fffff irq 18 at device 5.0 on pci1 pci1: at device 5.2 (no driver attached) pcib2: at device 7.0 on pci0 pci2: on pcib2 re0: port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff irq 19 at device 0.0 on pci2 re0: Using 2 MSI messages miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:19:db:f5:9c:ca re0: [FILTER] re0: [FILTER] atapci0: port 0xb000-0xb007,0xa000-0xa003,0x9000-0x9007,0x8000-0x8003,0x7000-0x700f mem 0xfe7ff800-0xfe7ffbff irq 22 at device 18.0 on pci0 atapci0: [ITHREAD] atapci0: AHCI Version 01.10 controller with 4 ports detected ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] pci0: at device 19.0 (no driver attached) pci0: at device 19.1 (no driver attached) pci0: at device 19.2 (no driver attached) pci0: at device 19.3 (no driver attached) pci0: at device 19.4 (no driver attached) pci0: at device 19.5 (no driver attached) pci0: at device 20.0 (no driver attached) atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 20.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] isab0: at device 20.3 on pci0 isa0: on isab0 pcib3: at device 20.4 on pci0 pci3: on pcib3 acpi_button0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] cryptosoft0: on motherboard orm0: at iomem 0xcd800-0xce7ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec Fast IPsec: Initialized Security Association Processing. ad4: 381554MB at ata2-master SATA300 ad6: 381554MB at ata3-master SATA300 SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad4s1a re0: link state changed to UP --------------070605020107010606030204--