From owner-freebsd-stable@FreeBSD.ORG Tue Mar 20 13:33:31 2012 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 1DE391065670; Tue, 20 Mar 2012 13:33:31 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id DB2A98FC0C; Tue, 20 Mar 2012 13:33:30 +0000 (UTC) Received: from gjp by noop.in-addr.com with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1S9zBS-000FUE-RY; Tue, 20 Mar 2012 09:33:06 -0400 Date: Tue, 20 Mar 2012 09:33:06 -0400 From: Gary Palmer To: Matt Thyer Message-ID: <20120320133306.GA5044@in-addr.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on noop.in-addr.com); SAEximRunCond expanded to false Cc: freebsd-stable@freebsd.org, Ivan Voras Subject: Re: 157k interrupts per second causing 60% CPU load on idle system 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: Tue, 20 Mar 2012 13:33:31 -0000 On Tue, Mar 20, 2012 at 11:10:10PM +1030, Matt Thyer wrote: > On 20 March 2012 22:24, Ivan Voras wrote: > > > On 20 March 2012 12:52, Matt Thyer wrote: > > > On 20 March 2012 21:12, Ivan Voras wrote: > > >> > > >> On 20/03/2012 06:26, Matt Thyer wrote: > > >> > I've upgraded my FreeBSD-STABLE NAS from r225723 (22nd Sept 2011) to > > >> > r232477 (4th Mar 2012) and am finding that a system process called > > >> > "intr" > > >> > is now constantly using about 60% of 1 CPU starting a short time after > > >> > reboot (possibly triggered by use of the samba server). > > >> > > > >> > When this starts, systat -vm 1 says that the system is 85% idle and > > 14% > > >> > interrupt handling. > > >> > It says that there's around 157k interrupts per second. > > >> > > > >> > > >> Ok, but *which* interrupt is getting triggered? Please send the output > > >> of "vmstat -i". > > >> > > >> > > > interrupt total rate > > > irq16: uhci0+ 3392184862 126692 > > > > Ok, something's probably wrong with USB. Can you disable it in BIOS? > > > > > > > cpu0: timer 53549677 1999 > > > irq256: mps0 2643187 98 > > > irq257: re0 5508108 205 > > > irq258: ahci0 160717 6 > > > cpu1: timer 53525300 1999 > > > cpu2: timer 53525300 1999 > > > cpu3: timer 53525296 1999 > > > Total 3614622447 134999 > > > > > > > I did just update the BIOS at about the same time so the difference may be > due to that change. > > I'll try a few things such as: > > - Unplugging any USB things (I've only got a keyboard plugged in). > - Downgrade BIOS. > > I'll get back to you all soon. It would be interesting to know if there are other devices on irq16 also. grep 'irq 16' /var/run/dmesg.boot I think the '+' on the irq16 line from vmstat means the interrupt is shared, but the man page doesn't mention it so I'm not 100% sure Thanks, Gary