From owner-freebsd-hardware@FreeBSD.ORG Thu Apr 22 06:54:07 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 0035416A4CE; Thu, 22 Apr 2004 06:54:06 -0700 (PDT) Received: from osiris.ipform.ru (osiris.itlegion.ru [212.248.52.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFB7843D5D; Thu, 22 Apr 2004 06:54:05 -0700 (PDT) (envelope-from matrix@itlegion.ru) Received: from artem (artem.office.ipform.ru [192.168.0.12]) by osiris.ipform.ru (8.12.6/8.12.6) with ESMTP id i3MDs3Xg092253; Thu, 22 Apr 2004 17:54:04 +0400 (MSD) (envelope-from matrix@itlegion.ru) X-AntiVirus: Checked by Dr.Web (http://www.drweb.net) Message-ID: <009f01c42870$deadb230$0c00a8c0@artem> From: "Artem Koutchine" To: "John Baldwin" , References: <010501c426db$cc281a10$0c00a8c0@artem> <200404220913.02440.jhb@FreeBSD.org> Date: Thu, 22 Apr 2004 17:51:09 +0400 Organization: IT Legion MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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: Thu, 22 Apr 2004 13:54:07 -0000 > 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. Artem