From owner-freebsd-stable@FreeBSD.ORG Thu Apr 5 10:15:40 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 ED78C1065670 for ; Thu, 5 Apr 2012 10:15:40 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 32CEE8FC0A for ; Thu, 5 Apr 2012 10:15:40 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so1457736bkc.13 for ; Thu, 05 Apr 2012 03:15:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=1kSLpl13Lq6ejCfNX87Dtk0gDLxkLqmw/HCsLhF1eII=; b=WtgCoAcuO0g7Irk+DU9ho4TXUlOgzWO9EfvHP5XvAWxwqpgxNYRMdl/n5jjym6ip90 vxQ6C3zItABILnoybzi3OF3Yxzl8mH22LADmal5xBkN0jekv4rdAFieZtuclyfwKfccs p+SKgEYOHdoisA7aIluTE4iXIG9UpcLbg5hBc7dmC4KeDmbU4l1Tt9q9pCHTyCJp+XsR NJpWF7FHWsqSJ8dkRwKey0P1K+fyvOgPSsomR2rImaHjWs3IiyovKqC3FX/j6+wkxR9b IIxxM7/9c0RNd8wIT2SlUDlawXE2ZM8huReLFkbzKu5NQf8r0BNMBCWi8fPB7qsrqqCO leaA== Received: by 10.204.141.8 with SMTP id k8mr900418bku.24.1333620939199; Thu, 05 Apr 2012 03:15:39 -0700 (PDT) Received: from green.tandem.local (13-34-132-95.pool.ukrtel.net. [95.132.34.13]) by mx.google.com with ESMTPS id r8sm7766306bki.2.2012.04.05.03.15.36 (version=SSLv3 cipher=OTHER); Thu, 05 Apr 2012 03:15:37 -0700 (PDT) Message-ID: <4F7D70C7.60105@gmail.com> Date: Thu, 05 Apr 2012 13:15:35 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:11.0) Gecko/20120315 Firefox/11.0 SeaMonkey/2.8 MIME-Version: 1.0 To: =?UTF-8?B?0JvRjtCx0L7QvNC40YAg0JPRgNC40LPQvtGA0L7Qsg==?= References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: 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:15:41 -0000 Любомир Григоров 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=C3 > dev.cpu.1.cx_lowest=C3 > dev.cpu.2.cx_lowest=C3 > dev.cpu.0.cx_lowest=C3 > > In /etc/rc.conf > powerd_enable="YES" > powerd_flags="-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? > Have you checked http://wiki.freebsd.org/TuningPowerConsumption? 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). 2. You don't need to set each processor CX value, you only need to set: hw.acpi.cpu.cx_lowest=C3 All cpu's will inherit default profile. -- Sphinx of black quartz judge my vow.