From owner-freebsd-stable@FreeBSD.ORG Thu Apr 5 17:47:09 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5882E106566B for ; Thu, 5 Apr 2012 17:47:09 +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 C9A648FC0A for ; Thu, 5 Apr 2012 17:47:08 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so1922810bkc.13 for ; Thu, 05 Apr 2012 10:47:07 -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=qYShBwWpsvXcwMfsXlD00IY4rfZ273ts8z5oWspBmjk=; b=VR2OFXRcy4eAyD3C/Em2zkxPsPHMf5T/4LeVQVs85NAasQXTXxP/1e4CLxd83mv5vR GAksXKqi6Xub7XqIki3x7/ZQ/wEqJIT77AGYuEbSEihC+Kh2xll+j11LCipZk+wem2/H iFCPcyeAr327T1MbCm4l7VV1SfZcQZysRRB/Sh44eCBHAknnunPzC/8zu3VQ7EGxt9x5 B4Z8Ikc+6cjm54nBSxO+ulj+QitOKByS//VwsVVP10WHMJh8I5I+UWxem5lG9P1yeJUs CALDQM0p8wzyf42gKHjNOj2YR6uCOlTs+Tr27iXLIRVWMRUotuBy2eYWYKYI1ZPXZ8D6 ILvw== Received: by 10.204.151.89 with SMTP id b25mr1509453bkw.18.1333648027573; Thu, 05 Apr 2012 10:47:07 -0700 (PDT) Received: from limbo.lan ([195.225.157.86]) by mx.google.com with ESMTPS id cy11sm10138116bkb.7.2012.04.05.10.47.04 (version=SSLv3 cipher=OTHER); Thu, 05 Apr 2012 10:47:06 -0700 (PDT) Message-ID: <4F7DDA96.4010305@gmail.com> Date: Thu, 05 Apr 2012 20:47:02 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:11.0) Gecko/20120315 Firefox/11.0 SeaMonkey/2.8 MIME-Version: 1.0 To: =?UTF-8?B?0JvRjtCx0L7QvNC40YAg0JPRgNC40LPQvtGA0L7Qsg==?= References: <4F7D70C7.60105@gmail.com> <4f7d73db.96e7d80a.509c.2afaSMTPIN_ADDED@mx.google.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Cc: Ivan Klymenko , 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:47:09 -0000 =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: > > 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 C= X > > 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 a= t > 60C and drops me back. I wouldn't dare to recommend any particular configuration. Most times=20 throttling is safer and with CX states you can get cooler. But both of=20 them doesn't play nice together. If you want higher cooling you can try=20 to disable throttling (and you will not need powerd as powerd takes care = of frequencies) and enable CX but you will need to test everything=20 thoroughly as unepected bugs can show up. Remember, the default way=20 isn't the better one, just the safer one. > > 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: It's just about ability to set C3 or any other particular state. Some=20 processors show only C1 state as available. For example: > sysctl hw.model hw.model: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz > sysctl dev.cpu | grep cx dev.cpu.0.cx_supported: C1/1 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% last 293us dev.cpu.1.cx_supported: C1/1 dev.cpu.1.cx_lowest: C1 dev.cpu.1.cx_usage: 100.00% last 15us Setting lower CX on this machine results in: # sysctl hw.acpi.cpu.cx_lowest=3DC3 hw.acpi.cpu.cx_lowest: C1 sysctl: hw.acpi.cpu.cx_lowest: Invalid argument --=20 Sphinx of black quartz judge my vow.