From owner-freebsd-stable@FreeBSD.ORG Thu Apr 5 17:31:12 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 507911065672 for ; Thu, 5 Apr 2012 17:31:12 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from fsm2.ukr.net (fsm2.ukr.net [195.214.192.121]) by mx1.freebsd.org (Postfix) with ESMTP id 009158FC0A for ; Thu, 5 Apr 2012 17:31:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=fsm; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=y7PIKNYjv9rx76zA9hwYOk2Wxd4MTlqRb2PS4aRpwJU=; b=DeoWfFrhO6nvlQs85+4Qq43wGkidxxhCTveQIJhnpEODVORTUwXoPcuad87Me2Mid497aLXqKI5izP3OXW1nr2zKvggtwNGvV6C89VI8vIqTgXO6z1OocTF9h8NOn21Nzl10z/Pp88Vcp+HIYwrF1lWyci61E+kEPzc+YXbxi8I=; Received: from [178.137.138.140] (helo=nonamehost.) by fsm2.ukr.net with esmtpsa ID 1SFqWb-000HDc-SB ; Thu, 05 Apr 2012 20:31:09 +0300 Date: Thu, 5 Apr 2012 20:31:07 +0300 From: Ivan Klymenko To: =?UTF-8?B?0JvRjtCx0L7QvNC40YAg0JPRgNC40LPQvtGA0L7Qsg==?= Message-ID: <20120405203107.60cb3b79@nonamehost.> In-Reply-To: References: <4F7D70C7.60105@gmail.com> <4f7d73db.96e7d80a.509c.2afaSMTPIN_ADDED@mx.google.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Volodymyr Kostyrko , freebsd-stable@freebsd.org Subject: Re: lowest C-state changes 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: Thu, 05 Apr 2012 17:31:12 -0000 =D0=92 Thu, 5 Apr 2012 10:10:30 -0700 =D0=9B=D1=8E=D0=B1=D0=BE=D0=BC=D0=B8=D1=80 =D0=93=D1=80=D0=B8=D0=B3=D0=BE= =D1=80=D0=BE=D0=B2 =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > Have you checked http://wiki.freebsd.org/TuningPowerConsumption? > I have. It was kind of confusing and didn't know about: > > 1. For CX states to function correctly you better disable throttling > > and powerd. I also witnessed at least one machine that hitting any > > CX mode stops generate interrupts on APIC clock (I had to boot it > > with a mousee until I disabled APIC clocks). > So do you recommend I use throttling or C3? I think C3 runs slightly > cooler. I can't tell since I don't drop under 50C in X. Fan increases > at 60C and drops me back. >=20 > > 2. You don't need to set each processor CX value, you only need to > > set: > > > > hw.acpi.cpu.cx_lowest=3DC3 > > > > All cpu's will inherit default profile. > > > Thanks. >=20 > > First need to see what state the processor supports the current > > system > >sysctl -a | grep cx_ > This is before heavy load while it still remembers the C3: >=20 > hw.acpi.cpu.cx_lowest: C1 > dev.cpu.0.cx_supported: C1/1 C2/80 C3/109 > dev.cpu.0.cx_lowest: C3 > dev.cpu.0.cx_usage: 0.89% 0.77% 98.32% last 47us > dev.cpu.1.cx_supported: C1/1 C2/80 C3/109 > dev.cpu.1.cx_lowest: C3 > dev.cpu.1.cx_usage: 3.30% 3.18% 93.50% last 3852us > dev.cpu.2.cx_supported: C1/1 C2/80 C3/109 > dev.cpu.2.cx_lowest: C3 > dev.cpu.2.cx_usage: 2.95% 1.42% 95.61% last 293us > dev.cpu.3.cx_supported: C1/1 C2/80 C3/109 > dev.cpu.3.cx_lowest: C3 > dev.cpu.3.cx_usage: 2.73% 1.55% 95.71% last 8471us >=20 > After lowest becomes C1, all 4 cores are 100% C1. So I have to > manually set back, or disable powerd or C states. I prefer powerd, > tbh, so please recommend what I should use. >=20 > Cheers. >=20 sysctl hw.acpi.acline - changes its value when disconnecting the power supply to the laptop?