From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 3 17:40:23 2012 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 0F53210656D5; Wed, 3 Oct 2012 17:40:23 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 574BB8FC17; Wed, 3 Oct 2012 17:40:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id q93HeEKl008490; Thu, 4 Oct 2012 03:40:15 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 4 Oct 2012 03:40:14 +1000 (EST) From: Ian Smith To: Andriy Gapon In-Reply-To: <506C66A6.4070003@FreeBSD.org> Message-ID: <20121004031100.P43208@sola.nimnet.asn.au> References: <504EDBEB.6010104@FreeBSD.org> <1349198313.4246.3.camel@powernoodle.corp.yahoo.com> <506C38CE.4090400@FreeBSD.org> <1349281266.13749.0.camel@powernoodle.corp.yahoo.com> <506C66A6.4070003@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Sean Bruno , "freebsd-acpi@freebsd.org" Subject: Re: notify userland about C-state changes 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, 03 Oct 2012 17:40:23 -0000 On Wed, 3 Oct 2012, Andriy Gapon wrote: > on 03/10/2012 19:21 Sean Bruno said the following: > > On Wed, 2012-10-03 at 06:08 -0700, Andriy Gapon wrote: > >>> > >>> So quick question, does this happen a lot on a system with a > >> sporadic > >>> workload? Does this introduce overhead to the system to service the > >>> notification requests? > >> > >> I am not sure who can answer this question. It is up to ACPI platform > >> to decide > >> when it changes _available C-states_. OS doesn't have control over > >> that. If you give us the notification :) we could instrument behaviour on different systems, and check for correlation with your [?] .. > >> > > Hrm ... what changes to the machine would make this happen while the > > machine is running? things like the switching from battery to line > > power? > > Yes. Or something else [?] of similar nature/effect. Docking/undocking a laptop maybe? LAN/Wireless busy/not (re C3 anyway). As you say, up to ACPI code by vendor, modulo ASL tweaks. > >> P.S. I hope you haven't confused this notification for a notification > >> about > >> _current_ C-state changing. > > > > I did have it confused. Thanks for putting this note in. > > OK :-) Me too .. my first reaction was ooo, that could get really busy :) So are you talking about a devd notification to trigger activity like the AC/battery script, or a sysctl that scripts could poll, or? cheers, Ian