From owner-freebsd-arch@FreeBSD.ORG Mon May 5 09:16:55 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 06BAFC91; Mon, 5 May 2014 09:16:55 +0000 (UTC) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.94]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B3E7A1308; Mon, 5 May 2014 09:16:54 +0000 (UTC) Received: from [78.35.164.35] (helo=fabiankeil.de) by smtprelay05.ispgateway.de with esmtpsa (SSLv3:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1WhEeX-0004tS-0W; Mon, 05 May 2014 10:53:37 +0200 Date: Mon, 5 May 2014 10:53:45 +0200 From: Fabian Keil To: "freebsd-acpi@freebsd.org" Subject: Re: proposal: set default lid state to S3, performance/economy Cx states to Cmax Message-ID: <20140505105345.099e4503@fabiankeil.de> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/gPHa/TvqAC+pMJ9jm174mKD"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 Cc: "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2014 09:16:55 -0000 --Sig_/gPHa/TvqAC+pMJ9jm174mKD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Warren Block wrote: > On Sun, 4 May 2014, Adrian Chadd wrote: > > The easy-to-run test is "sysctl dev.cpu.0.cx_lowest=3DCmax" and then us= e stuff. >=20 > It's that "use stuff" step that would preferably be automated. Is the=20 > failure mode a lockup, or could a program detect problems? The idea=20 > is to get lots of feedback, fast. One possible failure mode is that timers tick unreliably which can be detected automatically (in some cases), for example by using the DTrace script timestamp-test.d: http://www.fabiankeil.de/gehacktes/dtrace-timestamp-tests/ It should also be possible to let the kernel do this itself and log an error message and maybe optionally disable Cx states that cause problems: sysctl dev.cpu.0.cx_lowest=3DCmax-as-long-as-it-appears-to-be-working Fabian --Sig_/gPHa/TvqAC+pMJ9jm174mKD Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlNnUZoACgkQBYqIVf93VJ3mbACfR/oMz44RrrpDrxX5dsJDQSxt cccAoMmC0JQIeUVcSqTgfZIwGheO7RoN =Qn19 -----END PGP SIGNATURE----- --Sig_/gPHa/TvqAC+pMJ9jm174mKD--