From owner-freebsd-stable@FreeBSD.ORG Wed Mar 19 20:34:17 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB54B1065672 for ; Wed, 19 Mar 2008 20:34:17 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 6E5888FC1B for ; Wed, 19 Mar 2008 20:34:17 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.2/8.14.2) with ESMTP id m2JKYGeY024589; Wed, 19 Mar 2008 16:34:16 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id m2JKYFmL087217 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 Mar 2008 16:34:15 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200803192034.m2JKYFmL087217@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 19 Mar 2008 16:32:13 -0400 To: Jeremy Chadwick , freebsd-stable@freebsd.org, root@ha-web1.hockeyarena.net From: Mike Tancsa In-Reply-To: <20080319180629.GA29308@eos.sc1.parodius.com> References: <669936444.20080319100148@rulez.sk> <200803191753.m2JHraI5092556@lurza.secnetix.de> <20080319180629.GA29308@eos.sc1.parodius.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: Weird system cpu usage X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 20:34:17 -0000 At 02:06 PM 3/19/2008, Jeremy Chadwick wrote: >On Wed, Mar 19, 2008 at 06:53:36PM +0100, Oliver Fromme wrote: > > Charlie Root wrote: > > > root@[ha-web1 ~]# vmstat -i > > > interrupt total rate > > > irq1: atkbd0 12 0 > > > irq16: ohci0 1 0 > > > irq17: ohci1 ohci3 1 0 > > > irq18: ohci2 ohci4 1 0 > > > irq20: em0 86255835 1361 > > > irq22: em1 atapci0 18611379049 293795 > > > > Now that looks unusual indeed. Do you get that rate > > on irq22 right after boot, before the services have > > started? It looks like either hardware or driver > > problems. Do you have polling enabled on em1? > >Also, I believe there was a report from another user who saw similar >issues with em(4), and found that disabling MSI fixed the storm in >question. I believe you can disable MSI/MSIX by placing the following >in /boot/loader.conf, then reboot: > >hw.pci.enable_msi="0" >hw.pci.enable_msix="0" When MSI is enabled, the irq will be a strangely high number. e.g. % vmstat -i interrupt total rate irq4: sio0 76 0 irq17: em3 360 0 irq19: atapci1 2901 0 cpu0: timer 33719800 1999 irq257: em1 56571 3 irq258: em2 4 0 cpu1: timer 33717664 1999 Total 67497376 4003 If anything, I found enabling MSI helped matters where I saw strange IRQ issues. However, not sure if the original poster's hardware supports it. One thing it does remind me of is some strange IRQ issues I had on an AMD board where a USB setting for "legacy handoff" (something like that) would really slow down the machine with an in inordinate amount of IRQs firing. I forget if I had to enable it or disable it to fix the problem. If anything, I would try disabling USB all together if its not being used even though its not figuring in the above really high rate of IRQs. ---Mike