From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 27 07:45:04 2010 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4128D10656A8; Wed, 27 Oct 2010 07:45:04 +0000 (UTC) (envelope-from takawata@init-main.com) Received: from sana.init-main.com (unknown [IPv6:2001:240:28::1]) by mx1.freebsd.org (Postfix) with ESMTP id 93AE68FC2D; Wed, 27 Oct 2010 07:45:02 +0000 (UTC) Received: from ns.init-main.com (localhost [127.0.0.1]) by sana.init-main.com (8.14.3/8.14.3) with ESMTP id o9R7b2aj093646; Wed, 27 Oct 2010 16:37:03 +0900 (JST) (envelope-from takawata@ns.init-main.com) Message-Id: <201010270737.o9R7b2aj093646@sana.init-main.com> To: Alexander Motin In-reply-to: Your message of "Tue, 26 Oct 2010 22:57:59 +0300." <4CC732C7.50409@FreeBSD.org> Date: Wed, 27 Oct 2010 16:37:02 +0900 From: Takanori Watanabe Cc: freebsd-acpi@FreeBSD.org Subject: Re: Event based scheduling and USB. X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2010 07:45:04 -0000 In message <4CC732C7.50409@FreeBSD.org>, Alexander Motin wrote: >Takanori Watanabe wrote: >> Is this behavior expected, or something wrong? >> I noticed one of usb host controller device shares HPET irq. >> When I implement interrupt filter in uhci driver, the load average >> goes to 0 as before. >> >> >> ==== >> % vmstat -i >> interrupt total rate >> irq1: atkbd0 398 2 >> irq9: acpi0 408 2 >> irq12: psm0 3 0 >> irq19: ehci1 37 0 >> irq20: hpet0 uhci0 35970 230 >> irq22: ehci0 2 0 >> irq256: em0 4 0 >> irq257: ahci0 1692 10 >> Total 38514 246 >> === > >I haven't noticed that issue and it is surely not expected for me. I >will try to reproduce it. > >Most likely you should be able to avoid interrupt sharing using some >additional HPET options, described at hpet(4). Try to disable using shared IRQ with uhci, the IRQ used by HPET become cpu: interrupt and certainly load average goes quite low, but never transit to C3 state. Using legacy route, it works quite well.