From owner-freebsd-current@FreeBSD.ORG Tue Oct 26 19:12:49 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F90A1065696; Tue, 26 Oct 2010 19:12:49 +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 869F18FC08; Tue, 26 Oct 2010 19:12:48 +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 o9QJ4iwq089834; Wed, 27 Oct 2010 04:04:45 +0900 (JST) (envelope-from takawata@ns.init-main.com) Message-Id: <201010261904.o9QJ4iwq089834@sana.init-main.com> To: mav@freebsd.org Date: Wed, 27 Oct 2010 04:04:44 +0900 From: Takanori Watanabe Cc: acpi@freebsd.org, current@freebsd.org, hselasky@c2i.net Subject: Event based scheduling and USB. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2010 19:12:49 -0000 I updated my FreeBSD tree on laptop, to the current as of 18 Oct.2010, it works fine with CPU C3 state enabled, I think this is your achievement of event time scheduler, thanks! But when USB driver is enabled, the load average is considerablly high (0.6 to 1.0) if sysctl oid kern.eventtimer.periodic is set to 0. Then kern.eventtimer.periodic is set to 1, the load average goes to 0 quickly as before, but almost never transit to C3. 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 === BTW, when USB port is enabled C3 transition rate gets lower. I think it is likely to occur. But how can I supress power consumption? It's time to implement powertop for freebsd, isn't it?