From owner-freebsd-stable@FreeBSD.ORG Thu Apr 5 10:28:50 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 26CC9106566B for ; Thu, 5 Apr 2012 10:28:50 +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 CC0888FC14 for ; Thu, 5 Apr 2012 10:28:49 +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=7FB1rU/uoARmKLNxsKzUgZidz0RjhW1Dq+RYUzNRdnY=; b=s2cyTDRtWKEJsDt7SL5cdk8fNJPo0pJs1T00VX6477cSJplVCZpoCDuUDSXOwUKe+nHPJaps9QFD4+pKqDmwF9poePeZjgbsd4d0xMWKsXJzPd5M1McP5C5hPgVcNo6OXfYLfXEp4g7SGrHtRxvQSjE4BJ5Jj6Exnw9pboPaZuQ=; Received: from [178.137.138.140] (helo=nonamehost.) by fsm2.ukr.net with esmtpsa ID 1SFjvm-000Jdv-6R ; Thu, 05 Apr 2012 13:28:42 +0300 Date: Thu, 5 Apr 2012 13:28:41 +0300 From: Ivan Klymenko To: Volodymyr Kostyrko Message-ID: <20120405132841.3c14625f@nonamehost.> In-Reply-To: <4F7D70C7.60105@gmail.com> References: <4F7D70C7.60105@gmail.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: =?UTF-8?B?0JvRjtCx0L7QvNC40YAg0JPRgNC40LPQvtGA0L7Qsg==?= , 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 10:28:50 -0000 =D0=92 Thu, 05 Apr 2012 13:15:35 +0300 Volodymyr Kostyrko =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > =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 wrote: > > Hello all, I am using FreeBSD 9.0-STABLE with Konstantin's patch > > from March 22nd. Everything else is stock. However, after heavy > > load, or compiling, C-states go to C1 as lowest. I think once they > > pass the threshold, they don't go back. > > > > ThinkPad X220 > > i5 2520M with integrated Intel video > > > > In /etc/sysctl.conf > > dev.cpu.0.cx_lowest=3DC3 > > dev.cpu.1.cx_lowest=3DC3 > > dev.cpu.2.cx_lowest=3DC3 > > dev.cpu.0.cx_lowest=3DC3 > > > > In /etc/rc.conf > > powerd_enable=3D"YES" > > powerd_flags=3D"-a hiadaptive -b adaptive -i 85 -r 60 -p 100" > > > > However, once the cores go to C1, they stay there forever, unless I > > manually set them all back. > > > > Any idea on this? > > >=20 > Have you checked http://wiki.freebsd.org/TuningPowerConsumption? >=20 > 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). >=20 > 2. You don't need to set each processor CX value, you only need to > set: >=20 > hw.acpi.cpu.cx_lowest=3DC3 >=20 > All cpu's will inherit default profile. >=20 First need to see what state the processor supports the current system sysctl -a | grep cx_