From owner-freebsd-hardware@FreeBSD.ORG Fri Apr 23 11:08:09 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBCDB16A4CE for ; Fri, 23 Apr 2004 11:08:09 -0700 (PDT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id B307343D4C for ; Fri, 23 Apr 2004 11:08:09 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 19374 invoked from network); 23 Apr 2004 18:08:09 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 23 Apr 2004 18:08:09 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id i3NI7v6C001779; Fri, 23 Apr 2004 14:08:06 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: "Artem Koutchine" Date: Fri, 23 Apr 2004 13:49:13 -0400 User-Agent: KMail/1.6 References: <010501c426db$cc281a10$0c00a8c0@artem> <200404220913.02440.jhb@FreeBSD.org> <009f01c42870$deadb230$0c00a8c0@artem> In-Reply-To: <009f01c42870$deadb230$0c00a8c0@artem> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Message-Id: <200404231349.13468.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: freebsd-hardware@FreeBSD.org Subject: Re: ACPI floods CPUs with interrupts X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2004 18:08:10 -0000 On Thursday 22 April 2004 09:51 am, Artem Koutchine wrote: > > On Tuesday 20 April 2004 09:31 am, Artem Koutchine wrote: > > > I have installed FreeBSd 5.2-RC2 on ASUS P2B-DS > > > with 3ware raid controller and DUAL PIII (slot2) 550Mhz. > > > Updated motherboard bios to > > > the latest bios and after patching the twe driver, so it does not > > > show the "PCI parity erro" several times a second. (I think > > > it is related to the fact that 3ware 7506 controller is pci 2.2 > > > while p2b is pci 2.1). After that i did top and saw that > > > 50% of cpu power is wasted on interrupts. I did > > > sysstat and :vmstat. It showed that 46700 interrupts per > > > second were generated by acpi on irq 20. So, i booted without > > > acpi and got 100% cpu idle. The question is: > > > How ACPI can generate IRQs? I thought it is just some kind > > > of interface and protocol standard, not > a real hardware part which > > > can rise irq. Why does it generate so many irqs? May it be related > > > to the PCI parity error on twe? > > > > It is because the ACPI interrupt is programmed incorrectly (due to a > > buggy BIOS) and is treated as edge triggered when it is actually level > > triggered. You can try updating to -current to see if that fixes it. > > Cvsupped -current today and built world and installed new kernel. Now it > actually detects the interrupt storm and does what it calles 'thottling' to > the source of the interrupts. Now i get only 9000 ints per second and it > eats abouts 10% of the CPU. I still do not consider it a good idea and i > cannot update bios because the latest update was in 2002 and since then > asus made no changed to it. So i just did hint.acpi.0.disabled="1" and > disabled acpi. Now i have all 100% of cpu to do something usefull. ACPI is > a good thing but it is totally broken on all motherboards. Too bad. ACPI is not totally broken on all motherboards. Can you try adding 'hw.acpi.force_sci_lo=1' to /boot/loader.conf and rebooting to see if it works better? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org