From owner-freebsd-hackers@FreeBSD.ORG Sun May 4 11:01:03 2014 Return-Path: Delivered-To: freebsd-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 54A34B77; Sun, 4 May 2014 11:01:03 +0000 (UTC) Received: from mailout02.t-online.de (mailout02.t-online.de [194.25.134.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C0A8189E; Sun, 4 May 2014 11:01:02 +0000 (UTC) Received: from fwd26.aul.t-online.de (fwd26.aul.t-online.de [172.20.26.131]) by mailout02.t-online.de (Postfix) with SMTP id CAAE15D5D4E; Sun, 4 May 2014 12:54:34 +0200 (CEST) Received: from [192.168.119.11] (TnhODsZQwhAZHoc7DREn1G6uKdOdQGVA3SMKhwSQd20XvhRL9XUzKnZcS9rm6GlgEw@[84.154.114.101]) by fwd26.t-online.de with esmtp id 1Wgu4G-1nRkwa0; Sun, 4 May 2014 12:54:48 +0200 Message-ID: <53661C77.5030806@freebsd.org> Date: Sun, 04 May 2014 12:54:47 +0200 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: Leaving the Desktop Market References: <3F7430D7-3C0F-43E1-8EBD-8AA4F701497C@FreeBSD.org> <20140503155745.GA2457@La-Habana> <20140503192305.GA1847@La-Habana> <536592D1.7080403@freebsd.org> <20140504112807.1136d108@x23> In-Reply-To: <20140504112807.1136d108@x23> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ID: TnhODsZQwhAZHoc7DREn1G6uKdOdQGVA3SMKhwSQd20XvhRL9XUzKnZcS9rm6GlgEw X-TOI-MSGID: b7d8909f-79c5-42f3-b8e1-ee64bfc67cc8 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: Sun, 04 May 2014 11:01:03 -0000 Am 04.05.2014 11:28, schrieb Marko Zec: > On Sun, 4 May 2014 01:13:48 -0700 > Adrian Chadd wrote: > >> [snip] >> >> ok, how about this to start with: >> >> http://people.freebsd.org/~adrian/power/20140504-powerd-1.diff >> >> This defaults powerd to set minfreq to 50% of the hardware available >> maxfreq, unless minfreq is explicitly given on the command line. > > As already noted earlier in this thread, if you disable > > hint.p4tcc.0.disabled=1 > hint.acpi_throttle.0.disabled=1 > > then the kernel does not even expose expose those silly minimum > "frequencies", and your problem goes away without patching powerd. > > A more reasonable and simpler patch would be to disable the two > offending throttling drivers by default, I really cannot see a single > reason why do we need them at all, less why they are enabled. > > Marko Very true and this topic has come up so many times during for at least a decade (if not much longer). Throttling had its use at a time, but this time is long gone. Throttling is enabled unless probing of the "p4tcc" and "acpi_throttle" pseudo-devices is disabled by device hints. As a first step, these hints could be set in /boot/defaults/loader.conf. They could still be overridden in /boot/loader.conf, if they really are required (anybody still got P4 systems running -CURRENT?). A better fix would be to disable throttling depending on the CPU model identified (or on the presence of any other power management solution). Since the CPUs are probed before any device, adding a "disable" hint for both throttling methods would be kind of a hack, but should work. If there is an agreement, that we should move into that direction, I'll try to create a patch for review. Regards, STefan