From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 07:01:36 2014 Return-Path: Delivered-To: hackers@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 9D64B1BA; Thu, 3 Apr 2014 07:01:36 +0000 (UTC) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 320EF133; Thu, 3 Apr 2014 07:01:36 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.72) (envelope-from ) id 1WVbeJ-0006sZ-7P; Thu, 03 Apr 2014 14:01:24 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id s3370ioh039815; Thu, 3 Apr 2014 14:00:54 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id s3370c6D039797; Thu, 3 Apr 2014 14:00:38 +0700 (NOVT) (envelope-from danfe) Date: Thu, 3 Apr 2014 14:00:38 +0700 From: Alexey Dokuchaev To: Kevin Oberman Subject: Re: Leaving the Desktop Market Message-ID: <20140403070038.GA31307@regency.nsu.ru> References: <20140401094044.GX44074@e-new.0x20.net> <083e01cf4db9$f8f4e040$eadea0c0$@FreeBSD.org> <20140401174302.GU44074@e-new.0x20.net> <20140401195006.GA1368@tiny-r255948> <20140403021417.GA50938@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 59181 [Apr 03 2014] X-KLMS-AntiSpam-Version: 5.3.6 X-KLMS-AntiSpam-Envelope-From: danfe@regency.nsu.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Moebius-Timestamps: 2857303, 2857323, 0 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server 8.0.0.455, not checked X-KLMS-AntiVirus-Status: NotChecked: not checked, skipped X-Mailman-Approved-At: Thu, 03 Apr 2014 11:17:48 +0000 Cc: Lars Engels , Matthias Apitz , Eitan Adler , hackers@freebsd.org, dteske@freebsd.org, Jordan Hubbard X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2014 07:01:36 -0000 On Wed, Apr 02, 2014 at 11:39:07PM -0700, Kevin Oberman wrote: > On Wed, Apr 2, 2014 at 7:14 PM, Alexey Dokuchaev wrote: > > [...] The setup is a bit ugly, but I only had to check the available PINs > > (ugly, ugly) and set up stuff once. It just works. > > > > Not always, unfortunately. I also had a working pin override configuration > > in /boot/loader.conf, but after r236750 (major snd_hda driver rewrite) it > > stopped working. I've reported it and tried to get some support from mav@ > > but he never replied. Since then, I have to carry pre-r236750 version of > > snd_hda(4) to have working sound. > > Is that just in head? Do I have more fun to look forward to? r236750 is MFC to stable/8 (yeah, it went pretty far; if I had been doing upgrades more often I would probably have caught it and vetoed MFC, but we are now here where we are, so I guess I have to live with it until I find time to sit down and figure out what went wrong with my setup). That said, if everything keeps working for you, then you probably should not worry. :) > The key problem with power, as I have written several times is the > conflation of TCC or throttling as power management tools. Mix them (they > really don't save power) with Cx states is often worse than what you are > seeing. It can cause many systems to lock up. > > Try setting: > powerd_enable="YES" > performance_cx_lowest="Cmax" > economy_cx_lowest="Cmax" > into /etc/rc.conf and putting: > # Disable CPU throttling > hint.p4tcc.0.disabled=1 > hint.acpi_throttle.0.disabled=1 > into /boot/loader.conf. That should work MUCH better and will really save > power (assuming that your system supports better than C2 as C2 usually is > a pretty minor power savings. C3 or higher is usually where things really > start to improve. Wow, that's great, thanks for your advice! I'll try these out and see how it will go. > I've read a paper from SDSC (San Diego Supercomputer Center) showing that > CX states are by far and away the most significant power saver and they > should cause only very trivial and unnoticeable impact on performance. > Number two is EST, but that is almost always enabled on FreeBSD, so I > assume that you have that running already (or the AMD equivalent). Noted. FWIW, I do have EST enabled; I'm also running it with modified DSDT file (patched _PSS table) for CPU undervolting (less heat, longer battery life). ./danfe